PuppetMaster and slaves on Ubuntu 12.04
I am writing this post as part of course Linuxin keskitetty hallinta held by Tero Karvinen. In this post I will be install PuppetMaster and I share my puppet configures to my slaves computers (virtual machines). This is very important part of centralized management because after that you will be able to manage your managed computers software in one place.
In this instructions I use multiple virtual machines by vagrant. If you want to use vagrant too, I have getting started post here: http://nikokiuru.com/2013/11/vagrant-boot-multiple-virtual-machines/
Preinstall PuppetMaster I was getting up two virtual machines master and slave with same hostnames.
In Ubuntu 12.04 is not default installed avahi-daemon, so .local (mDNS) domains are not available. We would like to use .local domains with puppet, so we install avahi-daemon:
I ping master computer by slave to verify that everything working as well:
Install PuppetMaster
Configure PuppetMaster
In some cases is better first delete puppet ssl certificates. Puppet genereta it to back when we start PuppetMaster again.
Modify Puppet config-file:
Add master's host under [master] -tag
Start PuppetMaster:
Connecting slaves
Install puppet:
And modify config-file:
Add master DNS name under [agent] -tag:
Modify puppet to start automatically:
Change start to yes:
Start puppet:
Accept Slave certificate
Create new Puppet module
Create site manifest
Add next code line in site.pp:
Test
If hello file is no there immediately, wait some time and try again.
Source:
http://terokarvinen.com/2012/puppetmaster-on-ubuntu-12-04