如题所示,本文配置Puppet的客户端。

这里,我选择的客户端是本地的一台MySQL服务器:
IP:192.168.40.11

在服务端的文件【/etc/hosts】中登记该客户端主机的记录:

客户端的(MySQL服务器)配置NTP服务:
与NTP服务端(PUPPET)同步时间。

安装:NTP服务

配置:NTP服务

启动:NTP服务

服务启动后,查看:


配置EPEL:

安装Puppet的Agent端:

客户端配置Puppet:

文件:/etc/puppet/puppet.conf

在【main】组中,增加了一个配置【server】

客户端的【HOSTS】表:


Puppet的客户端向服务端申请证书:

看到【Info: Caching certificate for ca】信息后,等待一段时间,大概30秒左右,就可以通过【CTRL + c】去停止了。

然后,上面客户端获取证书的信息,也会出现在Puppet的服务端的日志上:

服务端可以查看到,申请了证书的客户端:

授权:

授权完成后,就可以在目录中看到了:


这样,客户端加入服务端就完成了。

然后,你可以在客户端测试:


终了,…

2 thoughts on “Puppet: Install on RHEL 7.6(Client Side)”

  1. [root@mysql1 ~]# puppet resource user root
    user { ‘root’:
    ensure => ‘present’,
    comment => ‘root’,
    gid => ‘0’,
    home => ‘/root’,
    password => ‘$1$WJYw3Yb/$Mu9CLJ2QBCJ6d4CwyeHAQ1’,
    password_max_age => ‘99999’,
    password_min_age => ‘0’,
    shell => ‘/bin/bash’,
    uid => ‘0’,
    }
    [root@mysql1 ~]#

  2. [root@puppet ~]# puppet module list
    /etc/puppet/modules (no modules installed)
    /usr/share/puppet/modules (no modules installed)
    [root@puppet ~]#
    [root@puppet ~]# puppet module search vmware-vcenter
    Notice: Searching https://forgeapi.puppetlabs.com
    NAME DESCRIPTION AUTHOR KEYWORDS
    vmware-vcenter VMware vCenter puppet module @vmware vmware vcenter
    [root@puppet ~]#
    [root@puppet ~]# puppet module search mcollective
    Notice: Searching https://forgeapi.puppetlabs.com
    NAME DESCRIPTION AUTHOR KEYWORDS
    puppet-mcollective Installs, configures, and manages MCollective agents, clients, and mi… @puppet mcollective voxpupuli
    simp-mcollective Manages MCollective agents, clients, and middleware of an MCollective… @simp mcollective voxpupuli
    camptocamp-mcollective Camptocamp MCollective Module @camptocamp mcollective ssl activemq stomp
    puppetlabs-mcollective Installs, configures, and manages MCollective agents, clients, and mi… @puppetlabs mcollective client amqp stomp
    example42-mcollective Puppet module for mcollective @example42 mcollective example42
    jorhett-mcollective Configures MCollective servers, clients, and middleware brokers; hand… @jorhett mcollective activemq
    evenup-mcollective Manages mcollective @evenup mcollective
    puppet-r10k Module for setting up dynamic environments using r10k @puppet git mcollective pe environment r10k
    choria-mcollective Configure MCollective as found in the Puppet Agent @choria
    fsalum-mcollective Manage MCollective client, service and plugins @fsalum mcollective client stomp plugins
    jbussdieker-mcollective Puppet MCollective management module @jbussdieker networking mcollective rpc
    alkivi-mcollective Controls mcollective deploiement on puppet node @alkivi debian mcollective
    lbetz-mcollective Setup and configure MCollective server, client and user on RedHat/Cen… @lbetz
    reidmv-mcollective UNKNOWN @reidmv mcollective
    choria-mcollective_choria A suite of MCollective Plugins for AIO Puppet @choria
    puppetfinland-mcollective Setup mcollective @puppetfinland
    ploperations-mcollective Install and manage Marionette Collective @ploperations mcollective
    dmcnicks-mcoconfig Helper module for configuring MCollective @dmcnicks
    choria-mcollective_agent_puppet Manages the Life Cycle of the Puppet Agent @choria
    choria-mcollective_util_actionpolicy Choria Action Policy authorization plugin @choria
    choria-mcollective_agent_nettest Perform network tests from a mcollective host @choria
    sociomantic-mcollective_agent_shell Run commands with the local shell @sociomantic
    m4ce-mcollective_agent_shell Run commands with the local shell @m4ce
    choria-mcollective_agent_package Manage Operating System Packages @choria
    choria-mcollective_agent_service Manages Operating System Services @choria
    mstanislav-mcollective_yum UNKNOWN @mstanislav mcollective automation activemq
    mstanislav-mcollective_apt UNKNOWN @mstanislav mcollective automation activemq
    choria-mcollective_agent_puppetca Agent to manage Puppet certificates @choria
    choria-mcollective_agent_nrpe Agent to query NRPE commands via Choria @choria
    choria-mcollective_agent_filemgr File Manager @choria
    choria-mcollective_agent_shell Run commands with the local shell @choria
    choria-mcollective_agent_iptables An agent that manipulates a specific single chain with iptables and i… @choria
    choria-mcollective_agent_bolt_tasks Puppet Tasks integration for Choria @choria
    puppetlabs-java_ks Manage arbitrary Java keystore files @puppetlabs java mcollective ssl certs activemq
    choria-mcollective_agent_process Manages Operating System Processes @choria
    fiddyspence-mconotify A Puppet report handler for sending mcollective RPC messages @fiddyspence mcollective puppet report mco
    ayohrling-r10k Module for setting up dynamic environments using r10k @ayohrling git mcollective pe environment
    choria-mcollective_data_sysctl Retrieve values for a given sysctl @choria
    choria-mcollective_agent_backplane Choria Management Backplane @choria
    fiddyspence-mcoresource Puppet type/provider for triggering MCollective @fiddyspence mcollective puppet provider type
    ploperations-activemq Install and manage Puppet open source @ploperations mcollective activemq message bus
    hunner-haproxy_plugin Puppet module and mcollective agent for enabling/disabling haproxy ba… @hunner mcollective ha agent mco plugin
    reidmv-pe_mco_shell_agent Puppet deployment wrapper for the mco shell agent @reidmv mcollective shell agent
    choria-choria Install and manage the Choria plugin for MCollective @choria
    puppetlabs-activemq Installs and configures ActiveMQ. @puppetlabs java mcollective amqp stomp stdlib
    puppetlabs-rabbitmq Installs, configures, and manages RabbitMQ. @puppetlabs mcollective rhel amqp stomp queue
    zack-r10k Module for setting up dynamic environments using r10k @zack git mcollective pe environment r10k
    raphink-policy Your Policy Driven Infrastructure Starter Kit @raphink mcollective report rspec policy
    fsalum-activemq ActiveMQ Puppet Module @fsalum java mcollective activemq stomp
    puppetlabs-firewall Manages Firewalls such as iptables @puppetlabs debian ubuntu redhat centos
    example42-activemq Puppet module for activemq @example42 mcollective activemq example42
    jbussdieker-activemq Puppet ActiveMQ management module @jbussdieker mcollective activemq queue
    beergeek-make_noop A module with a MCO agent and application to enable or disable noop @beergeek mcollective noop
    jesse-puppet_agent_cleanser Use MCollective to clean the state of your Puppet agents @jesse
    jeffmccune-nrpe_basic Manage basic NRPE local checks and the service @jeffmccune mcollective nagios monitoring nrpe
    evenup-kermitrest Skeleton Module @evenup mcollective rest mco kermitrest
    mbarr-moderninfra An opioninated module to install rabbitmq, mcollective, sensu, & logs… @mbarr
    puppetlabs-puppet_agent Upgrades All-In-One Puppet Agents @puppetlabs
    WhatsARanjit-node_manager Create and manage PE Console node groups as resources. @WhatsARanjit pe classification node-group
    reidmv-pe_role Puppet Enterprise role module @reidmv
    pizzaops-lei_wrapper Roles and profiles for LEI-style deploy with PE 3.8.x puppetlabs-pupp… @pizzaops
    codingfuture-cfsystem Configure a bare minimal production system regardless of its purpose @codingfuture
    puppetlabs-certregen Puppet module providing the certregen face for regenerating CA certif… @puppetlabs
    glarizza-osx_management Module for common OS X Management Tasks @glarizza mac osx munki office firefox plist
    kpengboy-firewall Temporary fork of puppetlabs-firewall with PR 721 applied @kpengboy
    waveclaw-facter_cacheable Provide a Cache for Facter facts @waveclaw
    codingfuture-cftotalcontrol Special Bash environment for total control of configured Puppet hosts… @codingfuture
    simp-activemq configures activemq to comply with SIMP security standards @simp activemq simp
    sharpie-r10k Install and configure r10k @sharpie puppet deployment r10k
    choria-discovery_proxy Choria.io Discovery Proxy @choria
    gabe-yum_updates Custom Fact to report number of outstanding yum updates, ad hoc Tasks… @gabe redhat facter yum updates
    CERNOps-activemq Configures Apache MQ @CERNOps activemq
    danieldreier-trigger Trigger puppet runs on other nodes during catalog application @danieldreier
    jhg03a-agentfacts A module to convert puppet agent configuration to custom facts for us… @jhg03a puppet agent fact ssldir
    marianschmotzer-activemq Installs and configures ActiveMQ. @marianschmotzer
    jlondon-zookeeper Puppet zookeeper cluster module @jlondon debian ubuntu redhat cloud centos
    aolabs-retrypuppet Simple python script to retry puppet agent execution if the agent is … @aolabs puppet locked retry
    mmattice-apt Provides an interface for managing Apt source, key, and definitions w… @mmattice
    eNovance-cloud eNovance Openstack Module @eNovance cloud openstack
    [root@puppet ~]#
    [root@puppet ~]#
    [root@puppet ~]# puppet module install puppet-mcollective
    Notice: Preparing to install into /etc/puppet/modules …
    Notice: Downloading from https://forgeapi.puppetlabs.com
    Notice: Installing — do not interrupt …
    /etc/puppet/modules
    └─┬ puppet-mcollective (v3.1.2)
    ├── puppetlabs-stdlib (v5.2.0)
    └── richardc-datacat (v0.6.2)
    [root@puppet ~]#

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

隐藏
变装