码迷,mamicode.com
首页 > 其他好文 > 详细

RHEL6.5配置安装puppet-server和puppet(一)

时间:2016-09-29 22:15:52      阅读:210      评论:0      收藏:0      [点我收藏+]

标签:puppet配置安装(全)

RHEL6.5配置安装puppet-server和puppet

——配置YUM 源并安装puppet-server

一、服务器端配置安装

    

1 环境配置:

[root@master /]# less /etc/hosts
127.0.0.1       localhost 
192.168.1.100   master.linux.com master
192.168.1.111   client.linux.com client

2 安装过程:

2.1 设置YUM源

1、[root@master /]#rpm -ivh http://yum.puppetlabs.com/el/6Server/products/x86_64/puppetlabs-release-6-6.noarch.rpm

2、cat /etc/yum.repos.d/puppetlabs.repo 
[puppetlabs-products]
name=Puppet Labs Products El 6 - $basearch
baseurl=http://yum.puppetlabs.com/el/6/products/x86_64    -----delete  $basearch    add x86_64
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-puppetlabs
enabled=1
gpgcheck=1

[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

[puppetlabs-devel]
name=Puppet Labs Devel El 6 - $basearch
baseurl=http://yum.puppetlabs.com/el/6/devel/$basearch
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-puppetlabs
enabled=0
gpgcheck=1

[puppetlabs-products-source]
name=Puppet Labs Products El 6 - $basearch - Source
baseurl=http://yum.puppetlabs.com/el/6/products/SRPMS
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-puppetlabs
failovermethod=priority
enabled=0
gpgcheck=1

[puppetlabs-deps-source]
name=Puppet Labs Source Dependencies El 6 - $basearch - Source
baseurl=http://yum.puppetlabs.com/el/6/dependencies/SRPMS
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-puppetlabs
enabled=0
gpgcheck=1

[puppetlabs-devel-source]
name=Puppet Labs Devel El 6 - $basearch - Source
baseurl=http://yum.puppetlabs.com/el/6/devel/SRPMS
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-puppetlabs
enabled=0
gpgcheck=1


3、cat /etc/yum.repos.d/puppet.repo 
[puppet]
name=puppet
baseurl=http://mirrors.163.com/centos/6/os/x86_64
gpgcheck=0
enable=1

2.2 利用更新的YUM源:

[root@master /]# yum clean all

2.3 安装ruby:

[root@master /]#yum install ruby ruby-libs ruby-shadow

[root@master /]# ruby -v
ruby 1.8.7 (2013-06-27 patchlevel 374) [x86_64-linux]
 

2.4 安装puppet:

[root@master /]# yum install puppet-server


2.5 验证

[root@master /]# puppet  -V
3.8.1
 
[root@master /]# facter -v
2.4.4


本文出自 “kingson” 博客,请务必保留此出处http://81703069.blog.51cto.com/5524831/1857833

RHEL6.5配置安装puppet-server和puppet(一)

标签:puppet配置安装(全)

原文地址:http://81703069.blog.51cto.com/5524831/1857833

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!