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 (
Original address:http://www.iteye.com/topic/323547We all know that AOP uses the proxy mode, this article mainly introduces the two proxy mode how to set up and the difference, the original text of some of the contents of the reference after the addition of their own understanding and more in-depth elaboration:first, the JDK agent and cglib agent of the underlying implementation differences* JDK
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
Static proxyFor example, before the program executes. The program ape is going to write a Proxy. Then compile, that is, before the program execution, the proxy class bytecode file has been generated (theproxy class file already exists). static agents, although in the enhancement of existing interface business functions have a great advantage, but a large number of such static agents, the system will make a large number of classes in the scale, difficult to maintain. and the Proxy class and the
2. Server-side InstallationInstall the puppet source #会在repo. D to generate the puppet sourceRpm-ivh "http://yum.puppetlabs.com/el/6/products/x86_64/puppetlabs-release-6-7.noarch.rpm"Installing the server-side programYum install-y puppet-serverStart the serviceService puppetmaster StartBoot upChkconfig puppetmaster on3. Client InstallationInstalling the
Recently in learning Puppet installation, configuration and use. Download official documents from the website. Because it is also just beginning to learn puppet, so I look at the official website of the document step by step. The official documents are also downloaded and uploaded to 51.http://down.51cto.com/data/1975148 the document address.Experiment Preparation:1, pre-preparation1)
interfaces used above:Invocationhandler interface: public interface Invocationhandler {public object Invoke (Object Proxy,method method,object[] args) Throws Throwable; } parameter Description: Object proxy: An instance of a dynamically generated proxy classMethod: Methods to invoke object[] args: Parameters required for method invocationThe subclass of the Invocationhandler interface can be imagined as a proxy's final operation class, replacing the Proxysubject.Proxy class: proxy class is spec
=1ts=0ys=0cs=0lb=1sb=0pb=4mr=1 " data = Urllib.request.urlopen (URL)." Read () . Decode ("Utf-8") data2 = json.loads (data) # Restores the string to its original data type print (data2[' data '][0]) IP = str (data2[') Data '][0][' IP ']) Dkou = str (data2[' data '][0][' Port ') zh_ip = IP + ': ' + Dkou print (zh_ip) proxy = Urllib.request.ProxyHandler ({"https": Zh_ip}) # format IP, note that the first parameter, the request target may be HTTP or HTTPS, corresponding s
Console management ToolsPuppet foreman and PuppetdashboardPuppet Foreman PuppetdashboardForeman is an integrated data center cycle management tool that provides for puppet users to add a graphicalService provisioning, configuration management, and reporting capabilities. puppetmaster and agent information cannot be displayed in the ruby1.9 work under XMainly include:Boot tool, PXE Boot service DHCP Enterpr
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
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
I. Overview of Puppet
Puppet is an Open-source, Ruby based system Configuration management tool based on C/S deployment architecture. It is a configuration management software designed to realize the automation management of data center, it uses the Cross-platform language specification, manages the configuration file, the user, the software package, the system service and so on. The client communicates wi
Note: The agent version must be consistent with the server version
Situation One:
On the Web interface
Client host Red Z always displays
Workaround:
Change the agentd.conf configuration file on the server
Change the server's 127.0.0.1 to the IP address of the server
Situation Two:
The agent installed on Windows, first looks at the Agentd.log on Windows, the normal
Check the Zabbix_server.log on t
Release date:Updated on: 2013-04-12
Affected Systems:Puppet Labs Puppet Enterprise 2.xDescription:--------------------------------------------------------------------------------Puppet Enterprise is an IT automation software.Puppet Enterprise 2.x has a security vulnerability. Malicious users can exploit this vulnerability to bypass certain security restrictions. When the CAS client configuration file is 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.