Puppet学习手册:Puppet Yum安装

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

# cat CentOS-Puppet.repo
[PuppetLabs-Products]
name=Puppet Labs Products $releasever - $basearch
baseurl=http://yum.puppetlabs.com/el/$releasever/products/$basearch
gpgkey=http://yum.puppetlabs.com/RPM-GPG-KEY-puppetlabs
enabled=1
gpgcheck=1
                                                                
[PuppetLabs-Deps]
name=Puppet Labs Dependencies $releasever - $basearch
baseurl=http://yum.puppetlabs.com/el/$releasever/dependencies/$basearch
gpgkey=http://yum.puppetlabs.com/RPM-GPG-KEY-puppetlabs
enabled=1
gpgcheck=1
                                                                
[PuppetLabs-Products-Source]
name=Puppet Labs Products $releasever - $basearch - Source
baseurl=http://yum.puppetlabs.com/el/$releasever/products/SRPMS
gpgkey=http://yum.puppetlabs.com/RPM-GPG-KEY-puppetlabs
failovermethod=priority
enabled=0
gpgcheck=1
                                                                
[PuppetLabs-Deps-Source]
name=Puppet Labs Source Dependencies $releasever - $basearch - Source
baseurl=http://yum.puppetlabs.com/el/$releasever/dependencies/SRPMS
gpgkey=http://yum.puppetlabs.com/RPM-GPG-KEY-puppetlabs
enabled=0
gpgcheck=1

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

1、Puppet Server安装

# yum -y install puppet-server

2、Pupper Agent安装

# yum -y install puppet

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


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

你可能感兴趣的:(安装,yum,puppet,puppet安装)