安裝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