- Log in to post comments
# configure DNS to resolve "puppet" to your puppetmaster
# install
apt-get install -y puppetmaster
# allow acces to files (TODO)
sed -i 's|\# allow \*.example.com| allow \*|g' /etc/puppet/fileserver.conf
cat <> /etc/puppet/fileserver.conf
[modules]
allow *
EOF
# configure clients
cat < /etc/puppet/manifests/site.pp
node default {
notify { "Your are connected to puppet.lab": }
}
node "dev2.lab" inherits default {
include ntp
include apache
include php5
include icinga_ssh_client
}
EOF
# configure client autosign in
echo "*.lab" >> /etc/puppet/autosign.conf
#
# certificates
#
# view warting clients
puppet cert list
# assign client
puppet cert sign dev2.lab
# view all accepted clients
puppet cert --all list
# remove client
puppet cert clean dev2.lab
# view version
puppetd --version
# restart puppet server
/etc/init.d/puppetmaster restart
#
# test (puppetlabs repositorty)
http://docs.puppetlabs.com/guides/puppetlabs_package_repositories.html#on-debian-and-ubuntu
http://developer.rackspace.com/blog/using-puppet-with-cloud-servers.html
echo "deb http://apt.puppetlabs.com $(lsb_release -cs) main" > /etc/apt/sources.list.d/puppetlabs.list
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 4BD6EC30 1054B7A24BD6EC30
apt-get update
apt-get install -y puppetmaster