First, set the host name
[[email protected] ~]# vi/etc/sysconfig/network Hostname=puppet.ewin.com[[email protected] ~] #echo "10.99.1.30 Puppet.ewp.com ">>/etc/hosts
Second, installation puppet
1. Installation
[Email protected] ~]# RPM-IVH http://yum.puppetlabs.com/puppetlabs-release-el-6.noarch.rpm [[email protected] ~]# Yum Install-y Http://mirrors.163.com/centos/6/os/x86_64/packages/rubygems-1.3.7-5.el6.noarch.rpm[[email protected] ~] # yum Install-y puppet-server-3.7.3
2. Start the service
[[Email protected] ~]# service puppetmaster start[[email protected] ~]# Ps-ef | grep puppet[[email protected] ~]# netstat-lnpt|grep 8140
3. Firewall
[[email protected] ~]# iptables-i input-p TCP--dport 8140-j accept[[email protected] ~]# service Iptables Save
4. Testing
[[Email protected] ~]# puppet agent--server puppet.ewp.com--testinfo:retrieving pluginfactsinfo:retrieving plugininfo : Caching Catalog for puppet.ewp.comInfo:Applying configuration version ' 1438758233 ' notice:finished catalog run in 0.12 Seconds[[email protected] ~]# puppet cert--list--all+ "puppet.ewp.com" (SHA256) Ac:db:b2:8b:09:76:5f:aa:22:7a:1d:d2: F2:1b:25:71:d0:44:32:f0:64:c3:28:2d:6b:bc:cc:a7:f8:b9:ec:10 (alt names: "Dns:puppet", "DNS:puppet.ewp.com")
This article is from the "Moon Ching Xing Fei" blog, please be sure to keep this source http://ywzhou.blog.51cto.com/2785388/1681899
Puppet integration Foreman (ii): Installation puppet