To install Puppet on CentOS 7, you can basically follow these instructions.
- Don’t forget to open the firewall:
firewall-cmd --zone=public --add-port=8140/tcp --permanent firewall-cmd --reload
- You may have to put SELinux into
permissivemode to allow Apache read the
To permanently switch from WEBrick to Apache, configure systemd like this:
systemctl disable puppetmaster systemctl enable httpd
Install client agent on RedHat/CentOS
- Pick the correct repository for your version from PuppetLabs.
- Install it:
yum install puppet
- If needed, configure the Puppetmaster server name in
server = mypuppetmaster.example.org
- Finally, add the cronjob1There’s also a way to let the puppet agent run as a service described here, but this can have an impact on cpu and memory usage.:
puppet resource cron puppet-agent ensure=present user=root minute=30 command='/usr/bin/puppet agent --onetime --no-daemonize --splay'
- 1There’s also a way to let the puppet agent run as a service described here, but this can have an impact on cpu and memory usage.