前段时间通过源码的方式来对Puppet进行安装,发现还是有点过于麻烦了,没有Yum直接安装起来方便,google了一下,发现PuppetLabs有提供一个RPM包下载地址:,通过这个这东西我们还是可以做成Yum源,如下为我创建的一个Puppet的repo文件:

# cat CentOS-Puppet.repo[PuppetLabs-Products]name=Puppet Labs Products $releasever - $basearchbaseurl=http://yum.puppetlabs.com/el/$releasever/products/$basearchgpgkey=http://yum.puppetlabs.com/RPM-GPG-KEY-puppetlabsenabled=1gpgcheck=1                                                                [PuppetLabs-Deps]name=Puppet Labs Dependencies $releasever - $basearchbaseurl=http://yum.puppetlabs.com/el/$releasever/dependencies/$basearchgpgkey=http://yum.puppetlabs.com/RPM-GPG-KEY-puppetlabsenabled=1gpgcheck=1                                                                [PuppetLabs-Products-Source]name=Puppet Labs Products $releasever - $basearch - Sourcebaseurl=http://yum.puppetlabs.com/el/$releasever/products/SRPMSgpgkey=http://yum.puppetlabs.com/RPM-GPG-KEY-puppetlabsfailovermethod=priorityenabled=0gpgcheck=1                                                                [PuppetLabs-Deps-Source]name=Puppet Labs Source Dependencies $releasever - $basearch - Sourcebaseurl=http://yum.puppetlabs.com/el/$releasever/dependencies/SRPMSgpgkey=http://yum.puppetlabs.com/RPM-GPG-KEY-puppetlabsenabled=0gpgcheck=1

repo文件配置好之后,安装Puppet就很简单了。

1、Puppet Server安装

# yum -y install puppet-server

2、Pupper Agent安装

# yum -y install puppet

就这样很简单,Puppet的Server就安装完成了。使用Yum来进行安装的话,以后升级也很方便。

安装完成之后相应的配置以及SSL验证请参考。