1. Configure the CD as a Yum local source
2, install the production of Yum warehouse packages and Yum-priorities Management Pack
3, to http://yum.puppetlabs.com/el/6.4/products/x86_64/this address to download puppet installation package
[Root@python-geek ~]# wget http://yum.puppetlabs.com/el/6.4/products/x86_64/facter-1.7.4-1.el6.x86_64.rpm
[Root@python-geek ~]# wget http://yum.puppetlabs.com/el/6.4/products/x86_64/puppet-2.7.25-1.el6.noarch.rpm
[Root@python-geek ~]# wget http://yum.puppetlabs.com/el/6.4/products/x86_64/puppet-server-2.7.25-1.el6.noarch.rpm
4. Make puppet source
In the use of Createrepo. When the command creates a source, the following error is indicated importerror:no module named Createrepo
The reason is that the change Management Pack was not found after upgrading Python
Change the new Python command to another name and createrepo the source python2.6 command to Python. Command Normal
5, the preparation of puppet repo documents
[Puppet]
Name=puppet for CentOS6.4
Baseurl=file:///root/setup/puppet
Enabled=1
Gpgcheck=0
priority=2 #修改优先级别
6, the installation of official Puppetlabs source
[Root@python-geek ~]# wget http://yum.puppetlabs.com/el/6.4/products/x86_64/puppetlabs-release-6-10.noarch.rpm
7, modify the Puppetlabs priority level
[Root@python-geek ~]# Cat/etc/yum.repos.d/puppetlabs.repo
[Puppetlabs-products]
Name=puppet Labs Products El 6-$basearch
baseurl=http://yum.puppetlabs.com/el/6/products/$basearch
Gpgkey=file:///etc/pki/rpm-gpg/rpm-gpg-key-puppetlabs
Enabled=1
Gpgcheck=1
Priority=3 # Modify Level
[Puppetlabs-deps]
Name=puppet Labs Dependencies El 6-$basearch
Baseurl=http://yum.puppetlabs.com/el/6/dependencies/$basearch
Gpgkey=file:///etc/pki/rpm-gpg/rpm-gpg-key-puppetlabs
Enabled=1
Gpgcheck=1
Priority=3 # Modify Level
8, modify Yum save downloaded installation package for the local cache
[Root@python-geek ~]# vim/etc/yum.conf
[Main]
cachedir=/var/cache/yum/$basearch/$releasever
Keepcache=1 #设置保存下载的缓存
debuglevel=2
Logfile=/var/log/yum.log
Exactarch=1
Obsoletes=1
Gpgcheck=1
Plugins=1
Installonly_limit=5
9. Installation Puppet
[Root@python-geek ~]# yum-y Install puppet