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
Anchor Background: puppet Forge is an online module repository. Many puppet modules are uploaded for download. You can download a module and use it directly. You should not change the manifests in it.
However, in puppet2.6, when a class declares another class, the declared class resources will not be included by the external class, this makes it impossible for us to form a module with complex functions thro
Requirements: Dev groups are created on each server, dedicated to developers, build accounts for specific developers, and join Dev Group;
Operators will also create their own users, and join the wheel group, through Sudo to the group members do permission settings.
The architecture is as follows:
The contents of the documents in Manfests are as follows:
1,init.pp class Sudo {case $::osfamily {' RedHat ': {include ' sudo::conf ' ' import ' sudo
Ers.pp '} default: {Fail ("$::osfamil
puppet Getting StartedSkip to end of metadata 1puppet
Puppet is an open source software automation configuration and Deployment tool, and many large IT companies are using puppet to manage and deploy software in a cluster. 2. The Design architecture Puppet is based on the C/S architecture. The server side holds all the
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
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/
. provider:AIX---User management for AIX.DirectoryService---Use directory services on OS X for user management.Hpuxuseradd---HP-UX user management.LDAP---User management through LDAP.PW---User management via PW on the FreeBSD platform.User_role_add---Solaris User and role management.Useradd---Through the useradd user management, add you to password management, you need to install Ruby Shadow password library, is generally ruby-libshadow.WINDOWS_ADSI---Use local user management on the Windows pla
Service ResourcesThe service resource can not only start, restart and close the daemon of the program, monitor the status of the process, but also can add the daemon to the self-boot.1. Common Properties of service resourcesService {' Resource title ':BinaryEnableEnsureHasrestartHasstatusNamePathPatternRestartStartStatusStopProvider} Enable: Specifies whether the service starts at boot time and can be set to true and false. ensure: Whether the service is running, running is running, and stopped
Login to our Puppet's Master console. (I wipe, the computer can't carry on)HTTP://DOWN.51CTO.COM/DATA/1975148 official website document address.Software version: PUPPET-ENTERPRISE-3.7.1-EL-6-X86_64.TAR.GZ,:HTTP://PAN.BAIDU.COM/S/1NTDSGMH (Dickens downloaded, last night, downloaded from the official website several times, After downloading it, it is wrong to unpack the package. It's a good day for work today. Wipe!! )System Architecture:SystemMaster si
RDO Mode installation ErrorError:error appeared during Puppet run:192.168.1.201_mariadb.pperror:execution of '/usr/bin/yum-d 0-e 0-y install M Ariadb ' returned 1:error:package:1:mariadb-5.5.44-2.el7.centos.x86_64 (DVD) You'll find full trace in Log/var/tmp/pac Kstack/20160704-142958-_jxsqz/manifests/192.168.1.201_mariadb.pp.logSuspect is a software issue, view[[email protected] ~]# yum-d 0-e 0-y Install mariadb-5.5.44-2.el7.centos.x86_64 Error: Packa
Warning when installing the puppet 3.6 installation package: Warning: the package type's allow_virtual parameter will be changing its default value from false to true in a future release. if you do not want to allow virtual packages, please explicitly set allow_virtual to false. (At/usr/lib/Ruby/site_ruby/1.8/puppet/type. RB: 816: In 'set _ default ') Configure site. PP,Add: If versioncmp ($: pup
Salt in simple terms is equal to the enhanced version of the func+ weakening version of the puppet
Here I will temporarily replace the role of Func (PS: Although a bit wasteful)
The architecture is as follows:
==================================
Manifests
==================================
1,at/etc/puppet/modules/salt
-------------------------
Init.pp
+++++++++++++++
Class Salt (
$server _ip = "
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.