yum install ruby ruby-libs ruby-shadow
yum install puppet puppet-server facter
RHEL7之前版本:chkconfig --level 3 5 on puppetmaster
RHEL7: systemctl enable puppetmaster.service
服务器:
vi /etc/puppet/puppet.conf
[master]
certname=服务器主机名
touch -R /etc/puppet/manifests/site.pp(这个是否需要可测试)
客户端:
yum install puppet
vi /etc/puppet/puppet.conf
[agent]
certname=客户端主机名
server=服务器主机名
report=true
systemctl start puppet
时间: 2024-10-12 12:29:17