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:
===========================================================
1. This function is used to split a path of indeterminate length into an array, which can accept two parameters:1.1 Arg1: A valid absolute path string [not currently checked for data type validity]1.2 arg2: A valid number to confirm which part is required for puppet creation [[optional] does not make a logical validity judgment, such as passing a number large and the effective level of the path is not reasonable]2, directly placed in the module corres
First, I wrote this article to record my learning history and share it with others. I hope to provide better suggestions and help me improve my learning experience.
1. Because managing puppet requires DNS configuration, I will not introduce it too much here.
2. For certificate authentication between puppetmaster and puppetclient, I will not introduce it too much here. Next I will go to the topic.
Debian)
First, you need to change the configuration fil
Use puppet to download the file configuration site. ppfileserver. confpath specifies the file storage directory puppet uses puppet: // puppetmaster/filesfiles as fileserver. tags defined in conf [files] author Jia Minqiang's technical blog
Use puppet to download file configuration
Site. pp
Fileserver. conf
Path
RubyMine is an IDE for Ruby and rails developers, with all the features the developer must have, and tightly integrated into a convenient development environment, known as the smartest IDE for Ruby and rails, which can greatly increase the developer productivity of Ruby and rails developers.RubyMine from the 7.0 version to support the puppet syntax, very powerful, of course, the function is very strong, in your consideration of large area development
With the increase in application requirements, the need for continuous expansion, the number of servers will also increase, when the number of servers is increasing, we will find a puppetmaster pressure, analytical slow, and occasionally out of "Timeout" such as the error, then what is the optimization method? We find solutions on the puppet web site, discovering that puppetmaster can configure multiple ports, combined with web proxies (recommended li
Stand-alone test apply command:
1. Options,Debug displays debugging information,Verbose more information,NOOP Simulation Execution
[Root@lvs-master manifests]# puppet apply--verbose--noop test.pp
notice:compiled Catalog for Lvs-master.lvs-master in environment production in 0.12 seconds
info:applying configuration version ' 1495770577 '
notice:/stage[main]/main/file[/tmp/12567.txt]/ensure:current_value Absent, should be present (NoOp)
Notice: Class
AnsibleThe automated operation and maintenance system is divided into 3 structuresInstall operating system: OS provisionRepresentative Product: Pxe,cobblerTo install a specific file: OS ConfigRepresentative Product: PuppetTo perform a specific action (command): DeploymentRepresentative Product: AnsibleAnsible General Framework Diagram:650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M01/8A/E2/wKiom1g-KFrDGdwWAAJgLrRJMHY747.png "title=" Ansible.png "alt=" Wkiom1g-kfrdgdwwaajglrrjmhy747.png
Any server can be the master terminal
1, install Epel Source:# RPM-IUVH http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-8.noarch.rpm
2. Install the package:# yum Install Ansible
3, set up SSH password-free login:# # Generate public/private key # Ssh-keygen-t Rsa-p ' # # Write a trusted file (distribute/root/.ssh/id_rsa_storm1.pub to other servers and execute the following on all servers): # CAT/ROOT/.SSH/ID_ Rsa_storm1.pub >>/root
Ansible playbook component, ansibleplaybook
Core elements of playbook:
Tasks: Task
Variables: Variable
Templates: Template
Handlers: Processor
Roles: Role
Organization format: YAML (also known as a Markup Language)
Syntax: (the list is represented by a horizontal bar. Key-value pairs are separated by colons, and other key-value pairs can be nested in key-value pairs)
Example: name: tom
Age: 21
Gender: Male
Spourse:
Name: lily
Gender: female
Children:
Ansible notesHosts: remote hostUser: Users who are executing the task groupRemote_user: Same as usersudo: If set to Yes, the user performing the task group gets root permission when the task is performed.Sudo_user: If you set user to Tom,sudo as Yes,sudo_user for Jerry, then Tom gets the permissions of the Jerry user.Connection: How to connect to the remote host.# # #gather: Collecting Facts: FactsGather_facts: Unless you explicitly indicate that you
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
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
Use ansible to manage remote servers in batches.Use ansible to batch manage remote server background
Local management of a batch of remote servers is required, mainly to execute the following tasks:
1) Copy local files to all remote servers;2) execute commands on the remote server;
The paths of the remote server are not completely consistent. Generally, access is performed through the variable paths defined
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.