package.Case 1Installing httpd RPM packages through the package resourceEdit/etc/puppet/manifests/package.pp, add the following:Package {' httpd ':ensure = installed,Provider = ' Yum ',}If it is a RPM package, you can also set thisPackage {' httpd ':ensure = installed,Source = '/tmp/httpd-2.2.15-45.el6.centos.i686.rpm ',Provider = ' rpm ',}# Puppet Apply Package.ppNOTICE:/stage[main]//package[httpd]/ensure
Tags: ADP information pch mapview ext get create process status threadPuppet Process creation Process:(1) Create a process in create_suspended mode by CreateProcess.(2) GetThreadContext Gets the suspend process context.(3) Zwunmapviewofsection unloading suspend process memory space data;(4) VirtualAlloc allocating memory space;(5) WriteProcessMemory writes malicious code to allocated memory;(6) SetThreadContext set the status of the suspend process;(6) ResumeThread Wakeup process Run1.ZwResumeTh
Puppet PP profile has not been vim support, edit the black background white, not easy to row wrong, it seems difficult to distinguish, need to make further changes to perfect display
You must add 2 files to the. Vim in the user's root directory, as follows:
1 Vim directory to create the Syntax/puppet.vim:
#mkdir ~/.vim
#cd ~/.vim
#mkdir syntax
#vim Syntax/puppet.vim
Add the following:
===========================================================
The first thing that comes to mind is greed... Definitely not... T
Then we found that it was actually DP-enabled... However, we need to sort them first.
If f [I] indicates that the first puppet has to lose a few at worst
F [I] = max (F [J] + calc (J + 1, I) where j
The calc (x, y) function compute can discard a maximum of several matching functions from the X to the Y puppet. The method is as follows:
Hzw
I. Configuring automatic registration RulesServer End:Vim/etc/puppet/autosign.conf*.puppet.com # specifies the range of domain names that are automatically registered ( IP no validation, no certainty)Second, clear the authentication configurationPuppet cert list--all ViewPuppet cert--clean client1.puppet.com # clear Set up configurationThird, clean up the client configurationCd/var/lib/puppet/ssl RM-RF * Re
System Environment: centos6.3
puppet:puppet-2.7.13
facter:facter-1.6.5
Ruby:yum Source
Note:
Facter used to obtain client system information (such as HOSTNAME,IP,OS-VERSION,FQDN, etc.)
Ruby is the puppet development environment
Puppet server:192.168.7.196
Puppet client:192.168.7.197
(server) configuration only for servers
(client) configured for client-
The architecture is as follows:
============================
Manifests
===========================
1,at/etc/puppet/mainfests
------------------
Site.pp
+++++++++
Import "MODULES.PP"
Import "NODES/*.PP"
-------------------------------
2,at/etc/puppet/manifests/nodes
-------------------
Node_master.pp
++++++++
Node ' master.puppet.com ' {
Include Nginx
Include PHP
Include MySQL
}
-------
I haven't written any technical content for a long time. I want to write an article today (my colleagues found that I am only a porter): I ran puppet and giant cards on some machines running mongodb, it takes tens of minutes to run, and the top seems to be the cpu resources occupied by the system instead of the user. solution: Run mong for a well-known reason.
I haven't written any technical content for a long time. I want to write an article today (
Puppet's automated distributed environment has strict time requirements, and the following errors may easily occur during routine operations:
Triggering test.cn7788.comHost test.cn7788.com failed: certificate verify failed. This is often because the time is out of sync on the server or clienttest.cn7788.com finished with exit code 2Failed: test.cn7788.com
You can follow the error message "This is often because the time is out of sync on the server or client". Generally, if a similar word appear
;GID: Basic Group IDGroups: Additional groupsHome: Home DirectoryShell: Default shellName:namevarSystem: Is it user, True|falseUid:uidPasswordFileManage files and their content, dependencies, and permissions, which can be given directly through the content property or downloaded from the remote server path via the Source property;Indicate the source of the file content:Content: Direct file contents, support \ n (newline), \ t (tab);Source: Download the file from the specified location;Recurse:tr
Today to introduce the specific practical functions of puppet, in fact, my understanding is how lazy, hehe.
1. Fill in the contents of the file:
(server):
To modify the server-side configuration file:
# VI/ETC/PUPPET/MANIFESTS/SITE.PP
-----------------
Node default{
file {"/tmp/test":
Content=> "This is a test file";
}
}
-----------------
Restart the puppetmaster to update the profile informatio
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.