Centos6.4 under puppet yum source configuration

Source: Internet
Author: User
Tags gpg pack puppet labs

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.