Mcollective the puppet node by combining the custom facter to trigger the operation

Source: Internet
Author: User
Tags create directory rsyslog

Experimental environment:

puppetserver.rsyslog.org

Mcollective Client +ACTIVEMQ service side +puppet service end

agent1.rsyslog.org

Mcollective Service-Side +puppet Client

Application: Apache

agent2.rsyslog.org

Mcollective Service-Side +puppet Client

Application: Apache+mysql

agent3.rsyslog.org

Mcollective Service-Side +puppet Client

Application: PHP

Experimental process:

Define a list of server variables

List of all server variables

My_apply1=apache

My_apply2=mysql

my_apply3=php

It is recommended that you add to the/etc/profile file for all servers, and then source

Host variables: agent1.rsyslog.org

Vim/etc/profile

My_apply1=apache

Export My_apply1

Export Facterlib=/var/lib/puppet/lib/facter

[Root@agent1 ~]# Source/etc/profile

Host variables: agent2.rsyslog.org

Vim/etc/profile

My_apply1=apache

My_apply2=mysql

Export My_apply1

Export My_apply2

Export Facterlib=/var/lib/puppet/lib/facter

Host variables: agent3.rsyslog.org

Vim/etc/profile

my_apply3=php

Export My_apply3

Export Facterlib=/var/lib/puppet/lib/facter

Ii. Custom Facter

1. Create directory structure

[Root@puppetserver modules]# mkdir public/{modules,manifests,files,lib/facter}-P

2, the server and the node to open the module in the plug-in function

[Root@puppetserver public]# vim/etc/puppet/puppet.conf

[Main]

Pluginsync = True

Contact 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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.