Operating system environment used for this installation: Centos6.5 x86_64,puppet3.8.3# #服务器端1. Modify the hostname (very important)The service side and each client should ensure that the domain name can be resolved to the corresponding server correctly!With the use of DNS services, this is simplified by the way the hosts are modified.#vim/etc/hosts192.168.0.26 maseter.puppet.com#vim/etc/sysconfig/networkModify hostnameHostname=maseter.puppet.comIf you don't want to restart, the temporary hostnam
Note: Puppet is best to create a snapshot before installation, need to be careful, the following is my installation processPuppet preparatory work1 installationYum-y Install puppet Puppet-server (service side to install this)[Email protected] puppet]# puppet-v2.7.26Add Host
CentOS6.5 64-bit installation and configuration of puppet Server
We will first prepare three centos 6.5 x86_64 machines to complete the pre-installation work.
OS: Centos 6.5 x86_64
Puppet master: master.com (192.168.37.72)
Puppet clients: client1.com (192.168.37.83)
Puppet clients: client2.com (192.168.37.82)
1. Prepar
This article refers to Yulaw's "puppet Combat", and get his guidance. Here, thank Yulaw.As mentioned in the previous article, Puppet is used to automatically generate files that are defined on the server by the client.We continue here to define the software that the client needs to install from the server.Here we install httpd for example.On the server side, we need to define the module, we define a httpd m
The puppet Update method based on C/s architecture generally has two kinds, one is the agent side set synchronization time active to puppet Master end pull configuration, the other is through the puppet master side use Puppet Kick command or trigger update configuration with mcollctive. 1. Proactive Updates Advantages:
AWS Free TierReprinted from: HTTPS://AWS.AMAZON.COM/CN/FREE/?SC_CHANNEL=PSSC_CAMPAIGN=ACQUISITION_CNSC_PUBLISHER=BAIDUSC _medium=cloud_computing_bsc_content=aws_esc_detail=%d1%c7%c2%ed%d1%b7awssc_category=cloud_ Computing_bsc_segment=367sc_matchtype=exactsc_country=cnThe AWS Free tier is designed to help you gain hands-on experience with AWS, which you can enjoy
data into a disaster recovery service (such as a service for love) and restore to a local when needed– P2V Physical machines (for example, services with love numbers) to EC2 and restore to the cloud when needed– Replicate database data to RDS in the cloud (using MySQL, Oracle, SQL Server replication tools)
Enterprise implementation of cloud disaster preparedness can be "gradual" way
Simple Backup to recover data
Light (apply cold Backup)
Warm standby (Application run
How to Use Puppet and Augeas to manage Linux configurations
Although Puppet is a truly unique and useful tool, you can use it in some cases in a different way. For example, you need to modify several existing configuration files on the server, and they are slightly different from each other. People at the Puppet Lab also realized this. They integrated a great too
We first prepare three CentOS 6.5 x86_64 machines and do the work before installation.Os:centos 6.5 x86_64Puppet master:master.com (192.168.37.72)Puppet clients:client1.com (192.168.37.83)Puppet clients:client2.com (192.168.37.82)First, do the preparation of the installation:
Close selinux,iptables on both master and client:Stop Iptables [[emailprotected] ~] # service iptables stop Iptables: Clear fi
BeginIn a text editor-Vim,Emacs, OrNano-Create a file with the following contents and filename: written and applied your first Puppet manifest.[[Email protected] ~] # Useradd testuser[[Email protected] ~] # Cat/etc/passwd | grep testTestuser: x: 536: 536:/home/testuser:/bin/bash[[Email protected] ~] # Pwd/Root[[Email protected] ~] # Vim user-absent.pp.[[Email protected] ~] # Cat user-absent.ppUser {'testuser ':Ensure => absent, }[[Email pro
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
First,Puppet Introduction1, the use of PuppetPuppetis open source based on theRubySystem Configuration Management tool that relies on theCdeployment Architecture. The main developers areLuke kanies, followGPLv2Copyright Agreement. From1997Year startKaniesParticipationUnixof System management work,Puppetdeveloped from these experiences. Because you are not satisfied with the existing configuration tools,2001years to2005years,Kaniesstarted inReductivet
Tags: des HTTP Io ar OS for SP strong onLearning puppet-resources and the RAL
Welcome to learning puppet! This series covers the basics of writing puppet codeBegin
Log into the learning puppet VM as root, and runpuppet resource service. This command will return something like the following:
[[Email protected] ~] #
Basic Learning for Puppet
1. view official download sources
Https://docs.puppet.com/guides/puppetlabs_package_repositories.html
2. Select the download source for the corresponding system
Because the local machine is CentOS 7.1, select the YUM Source
Https://yum.puppetlabs.com/
3. Install Puppet
# Wget https://yum.puppetlabs.com/puppetlabs-release-el-7.noarch.rpm
# Rpm-ivh puppetlabs-release-el-7.noarch.rpm
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
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
Nginx combined with multiple sets of puppet implementations (APACH+FORMAN+PUPPT)This case is a multi-set puppet server (Puppet+apache+foreman+foreman-proxy) system, using Nginx load balancer to realize the unified service function. The use of Puppet+apache+foreman+foreman-proxy configuration and Nginx+
As the 3.x Series no longer supports mongrel, nginx + passenger is used for load balancing. Previously, nginx + mongrel and puppet version were released in the 2.7 series, so they can still be used;
Environment Description:
Operating System: centos 5.8 64-bit
Puppet version: 3.1 Series
1, upgrade Ruby to 1.8.7, install rubygems # rpm-uvh http://rbel.frameos.org/rbel5 # Yum install-y Ruby rubygems ruby-devel
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.