1-puppet Installation

Source: Internet
Author: User

First, Server -End Installation

1 , installation puppet Yum Source

Yum - y install http://yum.puppetlabs.com/el/6/products/x86_64/ puppetlabs-release-6-7.noarch.rpm

sed-i-E "s/enabled=1/enabled=0/g"/etc/yum.repos.d/puppetlabs.repo

yum--enablerepo=puppetlabs-products,puppetlabs-deps-y Install puppet-server

2 , modify Configuration

vim /etc/sysconfig/puppetmaster

puppetmaster_manifest=/etc/puppet/manifests/site.pp # Open Comment

  puppetmaster_log=syslog                                                             # logging

touch/etc/puppet/manifests/site.pp # Creating a file

3 , start service, boot up

/etc/rc.d/init.d/puppetmasterstart

Chkconfig puppetmaster on

Second, Client installation

1 , installation Pupp et yum Source

Yum - y install http://yum.puppetlabs.com/el/6/products/x86_64/ puppetlabs-release-6-7.noarch.rpm

sed-i-E "s/enabled=1/enabled=0/g"/etc/yum.repos.d/puppetlabs.repo

yum--enablerepo=puppetlabs-products,puppetlabs-deps-y install puppet

2 , modify Configuration

Vi/etc/sysconfig/puppet

  puppet_server= server .puppet.com    # specify server end

puppet_log=/var/log/puppet/puppet.log # logging

3 , start service, boot up

/etc/rc.d/init.d/puppetstart

chkconfig puppet on

Third, registration

Server End:

P uppet cert List # View registration Information

Puppet cert sign client1.puppet.com # Consent to registration

Iv. Testing

Server End:

vim/etc/puppet/manifests/site.pp # Edit the host configuration file

            

Group {' Testgroup ':

ensure=> present ,

gid = ,

          }

Pupp et apply/etc/puppet/manifests/site.pp # To run the master configuration file

Client End:

/etc/init.d/puppetreload # Reload configuration file

grep Testgroup/etc/group # See if there are any Testgroup Group


This article is from the "It's a Long Way" blog, make sure to keep this source http://longgege.blog.51cto.com/6740519/1763494

1-puppet Installation

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.