System environment:
[Root@rhel6u3-102 puppet]# Uname-r
2.6.32-279.el6.x86_64
[Root@rhel6u3-102 puppet]# Cat/etc/redhat-release
Red Hat Enterprise Linux Server release 6.3 (Santiago)
First, preparatory work
1, the host name can resolve each other (DNS or hosts file can resolve each other)
Puppet Master (rhel6u3-102.rsyslog.org 192.168.100.102)
Tags: puppet system management follow ASE PUP product host authentication startUbuntu 16.04 build Puppet service:Puppet is a configuration management tool that enables system administrators to automate the configuration and management of server infrastructure.First, install the softwareMasterCurl-o Https://apt.puppetlabs.com/puppetlabs-release-pc1-xenial.debdpkg-i Puppetlabs-release-pc1-xenial.debapt-get up
Remote Code Execution Vulnerability (CVE-2014-3248) for multiple Puppet Products)
Release date:Updated on:
Affected Systems:Puppet Labs PuppetDescription:--------------------------------------------------------------------------------Bugtraq id: 68035CVE (CAN) ID: CVE-2014-3248Puppet is an IT automation software that helps the system administrator manage the infrastructure.Multiple Puppet products have th
Release date:Updated on: 2013-08-21
Affected Systems:Puppet Labs Puppet Enterprise 3.xUnaffected system:Puppet Labs Puppet Enterprise 3.0.1Description:--------------------------------------------------------------------------------Bugtraq id: 61860CVE (CAN) ID: CVE-2013-4968
Puppet is an IT automation software that helps the system administrator manage the infras
Puppet resource Summary
Resource introduction:
Common resources: file, service, and package
Tool resources: exec, cron, user, group
Resource Summary
File
Ensure => (specify the File status)
Present checks whether the file exists. If the file does not exist, it is created.
Absent checks whether the file exists and creates the file if it exists.
Directory specifies this is a directory
Path => (full file path, same as title by default)
Source => Fi
Tag: Puppet Apache modules class node regular expression => creating the httpd Base module #mkdir/etc/puppet/modules/httpd/{files,manifests,templates}-pv# tree/etc/puppet/modules/httpd//etc/puppet/modules/httpd/├──files//the configuration file called by the base module, The agent can download the files defined by the
Puppet Apply Command parameter IntroductionPreviously said puppet two modes of operation, the first type: C/S structure, the second type: single-machine operation. Apply is a code tool that executes local *.pp files independently, and is typically used to test debug puppet code locally.Puppet Apply Common parameters:[[Emailprotected]~]#puppetapply-hpuppet-apply (
Centos6.5 (32-bit) ruby can be directly installed (yuminstallruby) when installing puppet, you must first set the yum source: rpm-Uvhhttp: // Configure
Centos6.5 (32-bit) ruby can be directly installed (yum install ruby)
When installing puppet, you must first set the yum source:
Rpm-Uvh http://yum.puppetlabs.com/el/5/products/i386/puppetlabs-release-5-7.noarch.rpm
Yum clean all
Yum install
Puppet (2)Metaparamters:Multiple resources exist in order, and can be defined in order chain form:package[' Nginx '), file['/etc/nginx/conf.d/default.conf ', service[' Nginx ']Multiple resources exist in order of precedence, which can be defined as the form of a notification chain using "~>":package[' Nginx '] ~> file['/etc/nginx/conf.d/default.conf '] ~> service[' Nginx ']package{' Nginx ':Ensure=> installed,Provider = RPM,Source=> '/tmp/nginx-1.6.2-
During work, the puppet server/client certificate authentication exception is often encountered, and the certificate needs to be regenerated. Common operations are to delete the old certificates related to the server/client certificate, and then generate a new certificate. In this case, a shell script is compiled, which only needs to be periodically run on the Client side. Because the script involves the plaintext password, in order to improve securit
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 han
In order to SSH configuration file security, ensure that the configuration permissions are not changed, can be unified management through puppet. 1. To create an SSH module related directory: [Email protected]:ssh# pwd/etc/puppet/modules/ssh[email protected]:ssh# lltotal 12drwxr-xr-x 2 root root 4096 Nov 9 1 0:42 filesdrwxr-xr-x 2 root root 4096 Dec 18:15 manifestsdrwxr-xr-x 2 root root 4096 Dec 18:15 temp
CentOS6.5 install puppet
Centos6.5 (32-bit) ruby can be directly installed (yum install ruby)
When installing puppet, you must first set the yum Source:
Rpm-Uvh http://yum.puppetlabs.com/el/5/products/i386/puppetlabs-release-5-7.noarch.rpm
Yum clean all
Yum install puppet-server (master)
Yum install puppet (agent
1. Configure the CD as a Yum local source
2, install the production of Yum warehouse packages and Yum-priorities Management Pack
3, to http://yum.puppetlabs.com/el/6.4/products/x86_64/this address to download puppet installation package
[Root@python-geek ~]# wget http://yum.puppetlabs.com/el/6.4/products/x86_64/facter-1.7.4-1.el6.x86_64.rpm[Root@python-geek ~]# wget http://yum.puppetlabs.com/el/6.4/products/x86_64/
Puppet installation and configuration-preparation workTwo machines: 192.168.205.20 (server side) 192.168.205.21 (client)Two machines close SELinux, empty iptables rules, and save, set hostnameVim/etc/selinux/configSelinux=disabledIptables-fService Iptables Save20 on hostname web9.aming.com, vi/etc/sysconfig/network definition hostname (permanent)21 on hostname web10.aming.com,vi/etc/sysconfig/network definition hostnameEdit the Hosts file, 20 and 21 a
Centos is one of the most widely used linux server systems. It is convenient to use yum for software package management, and is also liked by everyone who uses centos. I am also more and more fond of using yum to install software packages. Unless necessary, software is rarely compiled and installed.
There are also many centos extension sources (repo), such as the well-known EPEL and the two introduced in the previous yum source sharing article by mosquitoes.
However, it is not easy to use centos
During work, the puppet server/client certificate authentication exception is often encountered, and the certificate needs to be regenerated. Common operations are to delete the old certificates related to the server/client certificate, and then generate a new certificate. In this case, a shell script is compiled, which only needs to be periodically run on the Client side. Since the script involves a plaintext password, you can consider encrypting thi
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.