1.Puupet Introduction
Puppet is an open source automation configuration and Deployment tool, Puppet is based on the C/S architecture, the server is called Puppet Master, the client software is called Puppet Agent,puppet The master server holds all configuration code for the client server, and the Puppet agent communicates with Puppet master through a link that is encrypted and validated using the standard SSL protocol.
2.Puupet Working principle
1 the client puppetd to master to initiate the authentication request.
2 The client puppet calls Facter,factert to detect the variable information of the host, PUPPETD sends the information over the SSL connection to the server side.
3 server-side puppet master detects the host name of the client and then finds the corresponding node configuration for manifest, resolves the content, and sends the pseudocode to the client.
5 The client receives the pseudo code and executes it, returning the execution results to the server.
6 The server writes the client's execution results to the log.
3. Physical environment
master:192.168.1.244 Centos 5.5 hostname:master.puppet.net
slave:192.168.1.247 Centos 5.5 hostname:slave.puppet.net
4. Get Puppet Package
Download the latest installation version of puppet-3.1.1.tar.gz at Puppet's official website (https://puppetlabs.com). It can also be downloaded with wget at the Linux terminal.
wget http://puppetlabs.com/downloads/puppet/puppet-3.1.1.tar.gz--no-check-certificate
wget http://puppetlabs.com/downloads/facter/facter-1.6.18.tar.gz--no-check-certificate
5.puppet installation Configuration
5.1 Configure the Hostname, Puppet is communicated through the host name (FQDN), and the following two lines are added to the master and agent/etc/hosts files.