Configuration Management Puppet

Source: Internet
Author: User
Tags rsync

Directory:

1 , Function

2 , Server

3 , managing the corresponding configuration file

4 , script-related

5 , puppet configuration related

6 , puppet client Installation scripts

7 , host configuration File new node details

8 , add File Project

9 , puppet Manage Commands

First, configuration management puppet

1 , Features:

Manage rsync profiles and scribe configuration files

2 , server:

PUPPET MASTER:

10.39.1.41

PUPPET CLIENT :

RSYNC :

10.39.0.95, 10.39.0.96, 10.39.0.97, 10.39.0.98

SCRIBE Relay Pool:

Http://general.wiki.erp.sina.com.cn/ScribeRelay

Suda Relay Pool:

Http://general.wiki.erp.sina.com.cn/ScribeRelay

SCRIBE Receive cluster:

Http://general.wiki.erp.sina.com.cn/ScribeReceiveCluster_ScribeCompactNg

3 , managing the corresponding configuration file

MASTER End

/etc/puppet/manifests/scribe/scribe.server.conf_zhj

/etc/puppet/manifests/scribe/scribe_calligraphus.conf_java_scribe08

/etc/puppet/manifests/scribe/suda/beixian_scribe.conf

/etc/puppet/manifests/scribe/suda/qinzhou_scribe.conf

/etc/puppet/manifests/scribe/suda/saier_scribe.conf

/etc/puppet/manifests/scribe/suda/yongfeng_scribe.conf

/etc/puppet/manifests/scribe/suda/jingan_scribe.conf

/etc/puppet/manifests/scribe/suda/qixinggang_scribe.conf

/etc/puppet/manifests/scribe/suda/shaxi_scribe.conf

/etc/puppet/manifests/scribe/suda/xidan_scribe.conf

/etc/puppet/manifests/rsync/rsyncd.conf_yz_94-98

Client

Scribe:/usr/local/calligraphus-release/conf/calligraphus.conf

Rsync:/etc/init.d/rsyncd.conf

4 , script-related

Rsync actively updates the script

/etc/puppet/manifests/rsync/run_rsync.sh

scribe actively issued an update script

/etc/puppet/manifests/scribe/puppet_scribe.sh

5 , puppet Configuration Related

Puppet configuration file:

/etc/puppet/puppet.conf

Puppet Host configuration file:

/etc/puppet/manifests/site.pp

6 , puppet Client Installation script:

Rsync 10.39.1.41::backupnew/puppet/

centos5.4-6.0 ==> puppet_client_install_20140610.tar.gz

centos6.0-6.5 ==> puppet_client_install_centos65_20150606.tar.gz

7 , host profile new node details:

Node ' 75-6-36-yf-core.jpool.sinaimg.cn ' {+ = defines a

file {"/data0/scribe/bin/scribe.server.conf": = + Client file location

ensure = present, \ = file does not exist automatically created

Group = "root", + = File group

Owner = "root", "=" file owner

mode = "0644", + = File permissions

Source = "Puppet:///scribe/scribe.server.conf_zhj" = File source

}

exec {"/data0/scribe/bin/scribe.server.conf": = + define Name

Path = ["/usr/sbin", "/usr/bin", "/bin", "/sbin"],/= command environment variable

Command = "/usr/bin/scribe_ctrl Reload", + = commands executed

Subscribe = file["/data0/scribe/bin/scribe.server.conf"], + = Monitored files

Refreshonly = True = Update whether the command is executed

}

8 , add File Project

First modified:/etc/puppet/fileserver.conf

Add an example:

[JOBCLIENT_V2] = project name

PATH/ETC/PUPPET/MANIFESTS/JOBCLIENT_V2 = Project Path

Allow * = permission

Next follow the configured path to create the relevant directory:

Mkdir/etc/puppet/manifests/jobclient_v2

9 , puppet Manage Commands

Puppet Client Active Pull update:

puppetd--test--server Masterhostname

Puppet Service-side authorization:

Puppetca-s hostname

View the puppet client requesting a resource

Puppetca-l

Configuration Management 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.