mirror of
https://github.com/mbirth/wiki.git
synced 2024-11-09 13:16:45 +00:00
1.7 KiB
1.7 KiB
created | layout | layout_old | redirect_to | tags | title | toc | updated | |||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
2015-04-14 13:33:59 +0200 | redirect | default | https://blog.mbirth.de/archives/2015/04/14/puppet-on-centos-7.html |
|
Puppet on CentOS 7 | false | 2015-04-14 13:33:59 +0200 |
To install Puppet on CentOS 7, you can basically follow these instructions.
Notes:
-
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
permissive
mode to allow Apache read theconfig.ru
owned bypuppet
.
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
/etc/puppet/puppet.conf
:[agent] server = mypuppetmaster.example.org
-
Finally, add the cronjob1:
puppet resource cron puppet-agent ensure=present user=root minute=30 command='/usr/bin/puppet agent --onetime --no-daemonize --splay'