Puppet: Automatic operation and maintenance tools!!!

Source: Internet
Author: User

Project background:

With the growth of the business, the number of machines, the need to maintain the expansion of information, we need a powerful automated maintenance tools to help us reduce pressure!





Lab Environment:

VMware Workstation 11

Under the centos6.5 system

Server master:ip:192.168.0.14 host Name: Puppet firewall off Setenforce 0

Server agent:ip:192.168.0.21 host Name: ansible.client.com firewall off Setenforce 0

SECURECRT (SSH remote connection software)






Software Introduction:

Puppet is a centralized configuration management system for Linux, Unix, and Windows platforms, using its own puppet description language to manage profiles, users, cron tasks, packages, system services, and more. Puppet these system entities as resources, Puppet's design objective is to simplify the management of these resources and to properly handle the dependencies between resources.





Experimental process:

First, Software Installation

1. First install the Ruby environment:

650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M02/7E/77/wKiom1cA3EyD-c_qAADSvJfmmIQ330.png "title=" Install Ruby.png "alt=" Wkiom1ca3eyd-c_qaadsvjfmmiq330.png "/>

See if you are installing:

650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M01/7E/77/wKiom1cA3IiwPHPzAAAtDiOk_wQ898.png "title=" Ruby has the. png "alt=" Wkiom1ca3iiwphpzaaatdiok_wq898.png "/>" installed.

2. Install puppet source

650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M01/7E/73/wKioL1cA3U-SGD3eAAEyLFRiyeI816.png "title=" Install puppet source. png "alt=" Wkiol1ca3u-sgd3eaaeylfriyei816.png "/>

3, install puppet, Puppet-server Facter on the server side

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/7E/73/wKioL1cA3X2CItPuAADI6fLHba0317.png "title=" Install Puppet.png "alt=" Wkiol1ca3x2citpuaadi6flhba0317.png "/>

View Puppet version

650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M01/7E/73/wKioL1cA3jjRwlHvAAC297sjv-0556.png "title=" View puppet version. png "alt=" Wkiol1ca3jjrwlhvaac297sjv-0556.png "/>

4. Installation operation on the client

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/7E/73/wKioL1cA3wOCpWynAAEqNrjLSNQ322.png "title=" Client-side operation. png "alt=" wkiol1ca3wocpwynaaeqnrjlsnq322.png "/> Software configuration file modification

1, server-side configuration file modification

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/7E/74/wKioL1cA4iOzZMBKAAEOGDfC30Y881.png "title=" The server-side automatically distributes certificates. png "alt=" Wkiol1ca4iozzmbkaaeogdfc30y881.png "/>

2, Client configuration file modification

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/7E/74/wKioL1cA4pWAQzBUAAEeGtOrqm4493.png "title=" The client configuration file modifies the. png "alt=" wkiol1ca4pwaqzbuaaeegtorqm4493.png "/> can see the configuration file modification where there is really very little ...

Third, the service starts.

1, server-side puppetmaster start

650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M01/7E/74/wKioL1cA42aRiH7oAADExasvBmM895.png "title=" Server-side start. png "alt=" Wkiol1ca42arih7oaadexasvbmm895.png "/>2, client puppet service started

650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M02/7E/77/wKiom1cA407z2b5zAAC2c1Bix_Q921.png "title=" The client service starts. png "alt=" Wkiom1ca407z2b5zaac2c1bix_q921.png "/> Four, Certificate issued!

1. Client Application Certificate

Part One

650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M00/7E/74/wKioL1cA5T6jjRkeAADnhMi9Q_Y783.png "title=" The client requests a certificate. png "alt=" Wkiol1ca5t6jjrkeaadnhmi9q_y783.png "/>

Part Two

650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M02/7E/74/wKioL1cA5evBrCSpAAFR-aTsxSA742.png "title=" The client requests the certificate 02.png "alt=" Wkiol1ca5evbrcspaafr-atsxsa742.png "/>2, accumulate, so the puppet server-side issue certificate.

650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M02/7E/74/wKioL1cA7sqB3VDWAABf-DpUAqE722.png "title=" Certificate issued as L.png "alt=" Wkiol1ca7sqb3vdwaabf-dpuaqe722.png "/>

Five,/etc/hosts file settings, important or will not be found

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/7E/78/wKiom1cA8GjCu5tgAABGQ0H_mvg831.png "title=" Hosts.png "alt=" Wkiom1ca8gjcu5tgaabgq0h_mvg831.png "/>

VI. testing: Accessing Master as test on the client

650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M01/7E/74/wKioL1cA8fDTUYfQAABwxDIvIdY715.png "title=" Test 01.png "alt=" Wkiol1ca8fdtuyfqaabwxdividy715.png "/>


Project Summary: The deployment is simple, but need to grasp more things, in fact, the mouse medicine we use puppet several times, you will love it. Thank you





This article from "A few" blog, declined reprint!

Puppet: Automatic operation and maintenance tools!!!

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.