• Archives

  • Categories


 
Installing Puppet Open Source on RHEL 6 Notes Posted on 07.15.2015 by greg.kuchyt

We’re just starting to get our feet wet with Puppet and we found the documentation woefully underwhelming. Here are our notes for getting a basic master/agent setup going with a “Hello world” manifest.

Basic Assumptions: SELinux is disabled

On your master

  • Install puppet and puppetserver packages
        yum install puppet puppetserver
  • Create the Puppet Master CA by running
        sudo puppet master --verbose --no-daemonize

    Once Notice: Starting Puppet master version appears, CTRL+C

  • Configure the following in the main/master section of /etc/puppet/puppet.conf
        dns_alt_names = host.fqdn.tld,alt_name
        environment_timeout = unlimited
        environmentpath = $confdir/environments
    
  • Create the following directories
    • /etc/puppet/environments/production
    • /etc/puppet/environments/production/manifests
    • /etc/puppet/environments/production/modules
  • Create /etc/puppet/environments/production/manifests/site.pp with the following
    notify {"Hello world!":}
  • Run service puppetserver start
  • Open 8140 on firewall rules

On your agent

  • Install puppet
  • Configure /etc/puppet/puppet.conf with the following
        server = hostname.fqdn.tld
        environment = production
    
  • Run puppet agent --test or start the puppet agent via service puppet start

On Master

  • Run puppet cert sign agenthostname.fqdn.tld

On agent

  • Run puppet agent --test and look for Hello world notice