Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Current »

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.
  1. Install the Puppet Agent packages in all agent nodes using the following command:
    $apt-get install puppet
  2. Change the /etc/puppet/puppet.conf file 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

     

  3. Add puppet master host entry to /etc/hosts file.

    192.168.18.161 puppet.wso2.example.com

     

  4. Execute the following commands:

    • puppet agent --enable
    • puppet agent -vt (this executes all commands in Puppet Masters /etc/puppet/appfactory/manifests/nodes.pp under the node definition that matches the host name or the cert name of that instance)
    • puppet agent --disable
  • No labels