Puppet Masterinstallation
Note: Puppet Master not supported Windows platform, Puppet Agent Support Windows , but it's not ideal. .
because Foreman Minimum Requirements CentOS 6 , so it is recommended to use 6 The above version or use Ubuntu Ten The above version.
this article to CentOS 7 Install for example Puppet Master
1. System Preparation work:
Minimized installation CentOS 7 ,
# yum update #更新系统包至最新 # hostnamectl --staticset-hostname johnpuppet #设置主机名 # yum -y install ntp #安装ntp包 # ntpdate $NTP _server_ip #时间同步 # systemctl stopfirewalld.service #关闭防火墙 # systemctl disable firewall #禁用防火墙开机启动 # sed -i ' s/\=enforcing/\=disabled/g '/etc/ selinux/config # Turn off SELinux
Master End
# cat <<eof >>/etc/hosts #配置hosts解析 (test environment does not have DNS) >192.168.1.189 johnpuppet>192.168.1.198 puppetagent1.test.com>eof
Agent End
# cat <<EOF>>/etc/hosts # configure hosts parsing (test environment does not have dns )
>192.168.1.189 Johnpuppet
>192.168.1.198 puppetagent1.test.com
> EOF
2. Install puppetmaster using the official YUM source :
# rpm-ivhhttp://yum.puppetlabs.com/puppetlabs-release-el-7.noarch.rpm
# yum-y Install Puppet-server
3. Configure puppet.conf
# vim/etc/puppet/puppet.conf
in the Agent Field Additions:
Server = Johnpuppet
in the Master Field Additions:
Report = True
reports = Log
4. start puppetmaster
# systemctl Enablepuppetmaster.service #puppetmaster Boot up
# Systemctl Enable Puppet.service #puppet Boot up
# Systemctl Start puppetmaster # Span style= "font-family: ' The song body '; color: #FF0000;" > start puppetmaster
# Systemctl start puppet # Start puppet
5. Agent request Certificate Verification
in the Agent on,
# puppet Agent–test
in the Master on,
# Puppet cert list–all # View the list of certificates
# Puppet cert sign–all # issue all Request Certificates
Master Certificate auto-Issuance
Puppet master Installation Manual (CentOS 7)