After configuring the Puppet Master and changing the puppet scripts as explained in the previous section, proceed to installing the products.
|Execute step 1 and 2 on all Puppet Agent nodes.|
- Install the Puppet Agent packages in all agent nodes using the following command:
$apt-get install puppet
/etc/puppet/puppet.conffile in all nodes as follows. The parts in bold are the changes you must make.
[main] logdir=/var/log/puppet vardir=/var/lib/puppet ssldir=/var/lib/puppet/ssl rundir=/var/run/puppet factpath=$vardir/lib/facter templatedir=$confdir/templates prerun_command=/etc/puppet/etckeeper-commit-pre postrun_command=/etc/puppet/etckeeper-commit-post [master] # These are needed when the puppetmaster is run by passenger # and can safely be removed if webrick is used. ssl_client_header = SSL_CLIENT_S_DN ssl_client_verify_header = SSL_CLIENT_VERIFY [agent] environment=appfactory server=puppet.wso2.example.com
If the instance host name does not match the regular expression of any of the node configuration, please change the agent configuration as follows. Please note that the "certname" parameter specifies the name to use when handling certificates. Defaults to the fully qualified domain name of the instance. Change this "certname" accordingly in all Puppet Agents
[agent] environment=appfactory server=puppet.wso2.example.com certname=appfactory
Add puppet master host entry to /etc/hosts file.
Execute the following commands:
- puppet agent --enable
- puppet agent -vt (this executes all commands in Puppet Masters
/etc/puppet/appfactory/manifests/nodes.ppunder the node definition that matches the host name or the cert name of that instance)
- puppet agent --disable