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:
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
And modify config-file:
Add master DNS name under [agent] -tag:
Modify puppet to start automatically:
Change start to yes:
Accept Slave certificate
Create new Puppet module
Create site manifest
Add next code line in site.pp:
If hello file is no there immediately, wait some time and try again.