Create puppet yum source 2.7.25

Source: Internet
Author: User

Create puppet yum source 2.7.25

1. Install and create the yum repository package and yum-priorities Management Package

[root@master ~]# yum install createrepo yum-plugin-priorities[root@master ~]# rpm -qa | egrep  "createrepo|priorities"createrepo-0.9.9-24.el6.noarchyum-plugin-priorities-1.1.30-37.el6.noarch

2. Enable the YUM priority Function

[root@master ~]# sed -i 's/0/1/g' /etc/yum/pluginconf.d/priorities.conf[root@master ~]# cat /etc/yum/pluginconf.d/priorities.conf[main]enabled = 1

3. Download the corresponding puppet installation package to your local device.
Puppetlabs http://yum.puppetlabs.com/

[root@master puppet]# wget http://yum.puppetlabs.com/el/6.4/products/x86_64/puppet-2.7.25-1.el6.noarch.rpm[root@master puppet]# wget http://yum.puppetlabs.com/el/6.4/products/x86_64/puppet-server-2.7.25-1.el6.noarch.rpm[root@master puppet]# wget http://yum.puppetlabs.com/el/6.4/products/x86_64/facter-1.7.6-1.el6.x86_64.rpm


4. Locally create a puppet Source

5. Add a puppet repo File

[Root @ master yum. repos. d] # cat puppet. repo [puppet] name = puppet for CentOS6.4 baseurl = file: // home/puppetenabled = 1 gpgcheck = 0 priority = 1 # set the highest priority

6. Install the official puppetlabs Source

[root@master puppet]# wget http://yum.puppetlabs.com/el/6.4/products/x86_64/puppetlabs-release-6-12.noarch.rpm[root@master puppet]# rpm -ivh puppetlabs-release-6-12.noarch.rpm warning: puppetlabs-release-6-12.noarch.rpm: Header V4 RSA/SHA1 Signature, key ID 4bd6ec30: NOKEYPreparing...                ########################################### [100%]   1:puppetlabs-release     ########################################### [100%][root@master puppet]# ll /etc/yum.repos.d/puppet*-rw-r--r-- 1 root root 1250 Apr 13 02:01 /etc/yum.repos.d/puppetlabs.repo-rw-r--r-- 1 root root   97 Jul  2 16:40 /etc/yum.repos.d/puppet.repo

7. Modify the puppetlabs source and epel source priority.

priority=3

8. Modify yum to save the downloaded installation package as a local cache.

[Root @ master ~] # Vi/etc/yum. confkeepcache = 1 # Set to save the downloaded software Cache

9. Install puppet Software

[root@master ~]#yum clean all[root@master ~]#yum install puppet

10. Copy the yum cached installation package to the original puppet source, and then update the repo.

Puppet Learning Series:

Puppet Learning 1: Installation and simple instance applications

Puppet 2: simple module configuration and application

Research on three Backup Recovery solutions for Puppet agent
Register your Puppet node in a safer way
Deep understanding of Puppet syntax and working mechanism through SSH Configuration
Puppet uses Nginx multiple ports for Load Balancing
C/S mode instance of Puppet in CentOS (5 and 6)

For more information about Puppet, click here.
Puppet: click here

This article permanently updates the link address:

Related Article

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.