1.puppet Master Puppet master defaults to a daemon that runs in the background with Ruby's built-in Webrick, as well as using the most common Web server Apache and Nginx replacement Webrick to improve performance. Puppet Master main function is to compile the configuration file, files, templates, custom plugins for nodes. [Email protected]:nodes#
Puppet Enterprise Architecture deployment
I have been preparing for Puppet. I have read the Puppet document these two days and simulated the deployment scheme of Puppet in the production environment:Test Machine:Server: 192.168.3.68Clinet: 192.168.3.67Command rules:Application _ IDC _ location _ IP address _ server sys
Puppet building notes
I. Introduction
Puppet is a C/S structure software that centrally manages files, packages, servers, cron, user, group, exec (execute shell commands), yumrepo, and other common resources of multiple servers.
Ii. puppet Workflow
Puppet client collects client information through facter (host name,
192.168.6.226 as the service side192.168.6.223 for clients1,puppet InstallationService sideTurn off selinux iptablesAdd HostsVim/etc/hosts127.0.0.1 localhost localhost.localdomain localhost4localhost4.localdomain4 web10:: 1 localhost localhost.localdomainlocalhost6 localhost6.localdomain6 web10127.0.0.1 www.test1.com www.aaa.com www.test.com192.168.6.223 web9.aming.com192.168.6.226 web10.aming.comVim/etc/sysconfig/networkHostname web10.aming.comYum In
(only servers)Proto recv-q send-q Local address Foreign address State Pid/program NameTCP 0 0 0.0.0.0:8140 0.0.0.0:* LISTEN 5167/rubyClient:[[Email protected] ~]# puppet agent--test--verboseInfo:creating a new SSL key for CobblerInfo:caching Certificate for CAInfo:creating a new SSL certificate request for CobblerInfo:certificate Request Fingerprint (SHA256): 14:3e:29:3e:88:83:fe:20:93:03:0a:03:6b:f5:b6:98
describesDesired stateFor one resource.Puppet ApplyLikeResourceIn the last chapter,ApplyIs a Puppet subcommand. It takes the name of a manifest file as its argument, and enforces the desired state described in the manifest.We'll use it below to test small manifests, but it can be used for larger jobs too. In fact, it can do nearly everything an agent/master Puppet
Before using any software, we need to understand how it works, otherwise it will cause a lot of inconvenience to the subsequent use. Puppet uses a very simple C/s architecture, all data interaction through SSL, to ensure security. It is shown in Workflow 1.650) this.width=650; "title=" Figure 1 Puppet Workflow "src=" Http://ipad-cms.csdn.net/cms/attachment/201209/5048569d92738.jpg " height= "325" width= "37
scheme to enhance Master's ability to compute "pseudocode." Typically, this architecture supports about 1000 servers. Of course, it also depends on whether your system is "complex" enough.
Fig. 2 Loadblancer Scheme
There are two common implementations of this architecture: Apache+passenger, and Nginx+mongrel. This article will take the latter as an example to briefly describe its working methods.
1. Puppet Master runs multiple processes:
addition, community developers and donors are constantly enhancing the functionality of Puppet. A large developer and user community is also committed to providing Puppet documentation and technical support. Puppet is also easy to expand. Custom software package support and special system environment configuration can be quickly and easily added into the
Environment Description:192.168.153.133 Master.localdomain #Puppet Server192.168.153.134 Agent1.localdomain #Puppet AgentThe machine name here does not have the underline and other special services, otherwise it will be reported "the scheme puppet does not accept registry part" error message.1. Installing puppet Server
puppetmaster startStart puppetmaster: [OK][Root @ master ~] # Netstat-tunlp | grep: 8140Tcp 0 0 0.0.0.0: 8140 0.0.0.0: * LISTEN 9148/ruby
Start[Root @ master ~] # Chkconfig -- list | grep puppetPuppet 0: Close 1: Close 2: Close 3: Close 4: Close 5: Close 6: ClosePuppetmaster 0: Close 1: Close 2: Close 3: Close 4: Close 5: Close 6: Close[Root @ master ~] # Chkconfig puppetmaster on[Root @ master ~] # Chkconfig -- list | grep puppetPuppet 0: Close 1: Close 2: Close 3: Close 4: Close 5: Close 6:
' $confdir/ssl '. ssldir = $vardir/ssl autosign = True Server = master.com
Start puppetmaster[[email protected] ~]# service puppetmaster startStart puppetmaster: [ OK ][email protected] ~]# NETSTAT-TUNLP | grep:8140TCP 0 0 0.0.0.0:8140 0.0.0.0:* LISTEN 9148/ruby
Boot up[email protected] ~]# chkconfig--list |grep puppetPuppet 0: Off 1: Off 2: Off 3: Off 4: off 5: off 6: Offpuppetmaster 0: Off 1: Off 2: off 3: off 4: off 5: off 6: Off[email protected] ~]# chkconfig puppetmaster on
Tags: des HTTP Io OS AR for SP on Log Puppet's commands
Puppet's command line interface consists of a singlePuppetCommand with subcommands.
Puppet's companion utilities, facter and hiera, have their own command line interfaces, which differ slightly from puppet's. Core Services
The following subcommands are the main applications puppet uses to manage systems. Every user shoshould understand what they do. Puppe
take a mock execution so that we can see if it can be executed (but not really).Puppet agent--server cahoa.linux.net--test--verbose--no-daemonize--noopinfo:retrieving Pluginfactsinfo:retrievinG plugininfo:caching Catalog for Cahou.linux.netWarning:The package type ' s allow_virtual parameter would be changing itsDefault value from False to true in a future release.If you don't want to allow virtual package
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.