安装puppetmaster 2.6.9
如何获取最新的puppet 2.6.9并使用yum在CentOS 5.5安装。参照我的做法,大家可以稳步就班的完成。
配置yum源
如果想在客户端和服务端安装的话,可以这样来做
将下列的文件保存到/etc/yum.repos.d/
rpm -Uvh http://download.elff.bravenet.com/5/x86_64/elff-release-5-3.noarch.rpm #安装elff源,以便于升级ruby 到1.8.6(puppet-dashboard 需要ruby 1.8.6版)
puppet.repo
[puppetlabs]
name=Puppet Labs Packages
baseurl=http://yum.puppetlabs.com/base/
enabled=0
gpgcheck=0
epel.repo
[epel]
name=Extra Packages for Enterprise Linux 5 - $basearch
#baseurl=http://download.fedoraproject.org/pub/epel/5/$basearch
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=epel-5&arch=$basearch
failovermethod=priority
enabled=0
gpgcheck=0
[epel-puppet]
name=epel puppet
baseurl=http://tmz.fedorapeople.org/repo/puppet/epel/5/$basearch/
enabled=0
gpgcheck=0
请注意,我们将会在下一个步骤将配置的puppet和安装puppet-dashboard。ruby升级到1.8.6的才能运行的puppet-dashboard,现在这样做会为您节省下来的一些时间。
升级ruby 到1.8.6
如果想在客户端和服务端升级的话,可以这样来做
如上所述, 使用 ruby的 repo 可以完成升级.
# yum --enablerepo="elff" update ruby
[...]
================================================================================
Package Arch Version Repository Size
================================================================================
Updating:
libsndfile x86_64 1.0.17-5.el5 epel 210 k
ruby x86_64 1.8.6.399-2.el5 elff 536 k
ruby-devel i386 1.8.6.287-2.el5 elff 792 k
ruby-devel x86_64 1.8.6.399-2.el5 elff 299 k
ruby-docs x86_64 1.8.6.399-2.el5 elff 1.4 M
ruby-irb x86_64 1.8.6.399-2.el5 elff 296 k
ruby-libs i386 1.8.6.287-2.el5 elff 1.7 M
ruby-libs x86_64 1.8.6.399-2.el5 elff 1.7 M
ruby-rdoc x86_64 1.8.6.399-2.el5 elff 364 k
ruby-ri x86_64 1.8.6.399-2.el5 elff 2.1 M
Transaction Summary
================================================================================
Install 0 Package(s)
Upgrade 10 Package(s)
Total download size: 9.3 M
Is this ok [y/N]: y
[...]
安装 puppet 服务端
在puppet 服务器上
# yum --enablerepo=epel,epel-puppet install puppet-server
[...]
Installing:
puppet-server noarch 2.6.1-0.3.rc3.el5 epel-puppet 20 k
Installing for dependencies:
facter noarch 1.5.8-0.2.rc2.el5 epel-puppet 55 k
libselinux-ruby i386 1.33.4-5.5.el5 base 60 k
puppet noarch 2.6.1-0.3.rc3.el5 epel-puppet 818 k
ruby-augeas i386 0.3.0-1.el5 epel 19 k
ruby-shadow i386 1.4.1-7.el5 epel 9.5 k
Install 6 Package(s)
Upgrade 0 Package(s)
Total download size: 981 k
Is this ok [y/N]: y
[...]
在puppet 客户端上
client# yum --enablerepo="epel,epel-puppet" install puppet
[...]
Installing:
puppet noarch 2.6.1-0.3.rc3.el5 epel-fedora 818 k
Installing for dependencies:
facter noarch 1.5.8-0.2.rc2.el5 epel-fedora 55 k
libselinux-ruby i386 1.33.4-5.5.el5 base 60 k
ruby-augeas i386 0.3.0-1.el5 epel 19 k
ruby-shadow i386 1.4.1-7.el5 epel 9.5 k
Install 5 Package(s)
Upgrade 0 Package(s)
Total download size: 961 k
Is this ok [y/N]: y
全部安装好了,在第二部分和第三部分,我们将在我们的客户端和服务端安装dashboard
©著作权归作者所有:来自51CTO博客作者coralzd的原创作品,如需转载,请注明出处,否则将追究法律责任
运维yumcentospuppet
共同学习,写下你的评论
评论加载中...
作者其他优质文章