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
}
-------
1). Get puppet module to install Apt-cacher-ngPuppet Module Install MARKHELLEWELL-APTCACHERNGThen,edit nodes.pp and put the ' aptcacherng ' class into the repo nodeclass {' Aptcacherng ':}2). Apply to all clientsCreate a manifest file including these codes as below on puppet master which would share the configuration on all others MA Chines,then These machines would use the local repository as proxy to apt-
Reprint please indicate the source of the original, http://www.cnblogs.com/flyingcloude/p/6992396.htmlRecently, due to learning needs, began to build an embedded development environment, but the hardware platform has not been ready, so first in the Ubuntu environment simulation.The following method installs a ARM11 operating system on the ubuntu10.10 host, using Qemu-system-arm. The system uses NFS to mount the file system, which can be used to simula
. 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 = "
PART1 Environment Building and tool installation 1.1 setting up a cross-compilation environmentTo install the relevant compilation tools:sudo Install Gcc-arm-linux-gnueabiHere I use the Gcc-arm-linux-gnueabi series tools that are included in the Ubuntu system source and have the following tools after installation:Arm-linux-gnueabi-addr2line arm-linux-gnueabi-GCC
Naming rulesThe naming convention for the cross-compilation toolchain is:arch [-vendor] [-os] [-(GNU) Eabi] [-GCC]
Arch – architecture, such as Arm,mips
Vendor – tool chain Provider
OS – Target operating system
Eabi – Embedded Application Binary interface (Embedded application binary Interface)
Attention
When there is no vendor, replace with none;
If there is no OS support, use none instead
With no vendor
Crontab program that comes with the system. User: Add Crontab to a system account, which is added by default to the system account that is participating in the execution daemon.2 casesUse cron resource settings to call ntpdate every 5 minutes to adjust system time and edit/etc/puppet/manifests/cron.pp.Cron {' ntpdate ':ensure = present,Command = '/usr/sbin/ntpdate 192.168.0.1 ',user = ' root ',minute = ' */5 ',}#
::d Eluser ($username )
{
User {"$username": Ensure => absent,} file {"/home/$username": Ensure => absent,}}
Note that puppet also supports SSH key authentication, you can go to the official website to see, here or with the password
Use the following methods:
Node ' Server1 ' {
include user
realize user[' Dev1 '] # # Create Dev1
user individually::d eluser{"Userdel sa1":
1,puppet--server,client,agent time no SYN case erorPuppet Agent--server Frontend-tErr:could not request certificate:execution expiredExiting; Failed to retrieve certificate and Waitforcert are disabledNTPDATE[31953]: The NTP socket is on use, exitingNo server suitable for synchronization found[Ruiy tips TOPICS,VMI Date init instance date fetch set from PM (physics machines), LAN Time-server,sync Local host time can be set later]2,one mirroring and VMI
does not have a visual user interface, and users can only retrieve instances that need to be applied by retrieving them. Puppet Dashboard provides this part of the functionality.
Mcollective Features:
Ability to interact with small to large server clusters
Using the broadcast paradigm (broadcast paradigm) for request distribution, all servers receive requests at the same time, and only servers that match the filters that are included with the requ
Original URL: http://www.veryarm.com/296.htmlNaming rulesThe naming convention for the cross-compilation toolchain is:arch [-vendor] [-os] [-(GNU) Eabi]
Arch -architecture, such as Arm,mips
Vendor -tool chain Provider
OS -Target operating system
Eabi -Embedded Application Binary interface (Embedded application binary Interface)
Depending on whether the operating system is supported or not,
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.