-------------------------------------服务端-----------------------------------
1、jdk安装

vi /etc/profile

export JAVA_HOME=/usr/local/jdk
export CLASSPATH=PATH:$JAVA_HOME/bin

source /etc/profile
2、activemq安装
yum install activemq -y

修改配置文件 vi /etc/activemq/activemq.xml

  <plugins>   #在<persistenceAdapter>标签下面添加一个<plugins>标签<simpleAuthenticationPlugin><users><authenticationUser username="${activemq.username}" password="${activemq.password}" groups="admins,everyone"/><authenticationUser username="mcollective" password="mcollective" groups="mcollective,admins,everyone"/>    #设置了用户名为mcollective,密码为mcollective</users></simpleAuthenticationPlugin><authorizationPlugin><map><authorizationMap><authorizationEntries><authorizationEntry queue=">" write="admins" read="admins" admin="admins" /><authorizationEntry topic=">" write="admins" read="admins" admin="admins" /><authorizationEntry topic="mcollective.>" write="mcollective" read="mcollective" admin="mcollective" /><authorizationEntry topic="mcollective.>" write="mcollective" read="mcollective" admin="mcollective" /><authorizationEntry topic="ActiveMQ.Advisory.>" read="everyone" write="everyone" admin="everyone"/></authorizationEntries></authorizationMap></map></authorizationPlugin></plugins>

保存退出,启动

service activemq start
chkconfig activemq on

安装mcollective

rpm -ivh http://yum.puppetlabs.com/puppetlabs-release-el-7.noarch.rpm
yum install -y mco*
gem install stomp
chkconfig --add mcollective
chkconfig mcollective on

配置/etc/mcollective/server.cfg client.cfg

server.cfg

main_collective = mcollective
collectives = mcollective
libdir = /usr/libexec/mcollective
logger_type = file
logfile = /var/log/mcollective.log
loglevel = info
daemonize = 1

Plugins

securityprovider = psk
plugin.psk = unset
connector = activemq
plugin.activemq.pool.size = 1
plugin.activemq.pool.1.host = 172.16.54.209
plugin.activemq.pool.1.port = 61613
plugin.activemq.pool.1.user = mcollective
plugin.activemq.pool.1.password = mcollective

Facts

factsource = yaml
plugin.yaml = /etc/mcollective/facts.yaml

service mcollective start

试运行

mco shell run "touch /root/bb"
mco puppet runonce -I it01.xxx.com -v


---------------------------------------------- linux客户端-----------------------------------
rpm -ivh http://yum.puppetlabs.com/puppetlabs-release-el-7.noarch.rpm
yum install -y mco*
gem install stomp
chkconfig --add mcollective
chkconfig mcollective on

配置/etc/mcollective/server.cfg client.cfg

server.cfg

main_collective = mcollective
collectives = mcollective
libdir = /usr/libexec/mcollective
logger_type = file
logfile = /var/log/mcollective.log
loglevel = info
daemonize = 1

Plugins

securityprovider = psk
plugin.psk = unset
connector = activemq
plugin.activemq.pool.size = 1
plugin.activemq.pool.1.host = 172.16.54.209
plugin.activemq.pool.1.port = 61613
plugin.activemq.pool.1.user = mcollective
plugin.activemq.pool.1.password = mcollective

Facts

factsource = yaml
plugin.yaml = /etc/mcollective/facts.yaml

service mcollective start

------------------------------------------window客户端------------------------------------

安装ruby

安装mcollective_2_3_2_Setup.exe

安装mcollective-puppet-agent-1.6.1.zip

解压mcollective-puppet-agent-1.6.1里的文件到C:\mcollective\plugins\mcollective

修改server.cfg\client.cfg

main_collective = mcollective
collectives = mcollective
libdir = c:\mcollective\plugins;C:\Program Files\Puppet Labs\Puppet\puppet\lib;C:\Program Files\Puppet Labs\Puppet\facter\lib
logfile = c:\mcollective\mcollective.log
logger_type = file
loglevel = info
daemonize = 1

Plugins

securityprovider = psk
plugin.psk = unset
connector = activemq
plugin.activemq.pool.size = 1
plugin.activemq.pool.1.host = 172.16.54.209
plugin.activemq.pool.1.port = 61613
plugin.activemq.pool.1.user = mcollective
plugin.activemq.pool.1.password = mcollective

plugin.puppet.command = "C:\Program Files\Puppet Labs\Puppet\bin\puppet.bat" agent
plugin.puppet.config = C:\ProgramData\PuppetLabs\puppet\etc\puppet.conf

Facts

factsource = yaml
plugin.yaml = c:\mcollective\etc\facts.yaml

启动mcollectived和puppete服务

image.png


mco puppet runonce

查看更新间隔:
puppet agent --configprint runinterval
1、服务端
vi /etc/puppet/manifests/site.pp
node default {
notify {'test-success':
name => 'test-sueccess',
message => 'connect success',
}
}
2、客户端:
puppet agent --server puppetmaster --test

puppet 连载二:服务端和客户端安装(ActiveMQ、MCollective)相关推荐

  1. SVN服务端、客户端安装配置和填坑

    一.svn服务端和客户端安装: 1.安装程序: 服务端程序:Setup-Subversion-1.8.17.msi 客户端程序:TortoiseSVN-1.9.7.27907-x64-svn-1.9. ...

  2. linux远程日志rsyslog服务端和客户端安装(亲测)--自定义接收日志格式

    linux远程日志rsyslog服务端和客户端安装 用rsyslog的缘由:  1.防止系统崩溃无法获取系统日志分享崩溃原因,用rsyslog可以把日志传输到远程的日志服务器上  2.使用rsyslo ...

  3. 无盘服务器 安装客户机程序,顺网云服务端和客户端安装

    在维护云网站或 APP 端,进行平台账号注册: 访问维护云平台注册页面 访问维护云 App 下载界面 新用户注册完成,系统即自动为您定制专属安装包. 服务端安装 双击服务端 exe 安装程序,输入网吧 ...

  4. windows环境下MySQL服务端和客户端安装,超详细

    windows环境下MySQL服务端和客户端安装,超详细 MySQL简介 MySQL的安装步骤 服务端安装 客户端安装 MySQL简介 MySQL是关系型数据库,由n张互相关联的表组成.一般是c或c+ ...

  5. 网络启动安装linux客户机nfs设置,NFS服务端和客户端安装配置

    一  NFS介绍 NFS用的比较多,但是更新没有想象的那么快,Nginx一年要迭代很多个版本,而NFS最新版本4.1是2010年更新的,到目前为止还没有更新过,但这并不影响NFS使用的广泛性 RPC协 ...

  6. SVN 服务端、客户端安装及配置、导入导出项目

    http://blog.csdn.net/xcy13638760/article/details/12994923 http://www.cnblogs.com/armyfai/p/3985660.h ...

  7. (SVN笔记)SVN服务端+SVN客户端Tortoise——安装配置

    目录 1.前言 2.官网下载SVN服务端1.14.1 3.安装SVN服务端Server 4.官网下载SVN客户端Tortoise4.3.4 5.安装Tortoise 6.验证Tortoise安装 7. ...

  8. SVN服务端和客户端的安装与搭建

    SVN简介 SVN全名Subversion,是一个开源的版本控制系统.SVN与CVS一样,是一个跨平台的软件,支持大多数常见的操作系统,SVN拥有CVS的大部分特征,并且在CVS的基础上有更强的扩展. ...

  9. [企业化NET]Window Server 2008 R2[3]-SVN 服务端 和 客户端 基本使用

    1.  服务器基本安装即问题解决记录      √ 2.  SVN环境搭建和客户端使用 2.1  服务端 和 客户端 安装    √ 2.2  项目建立与基本使用     √ 2.3  基本冲突解决, ...

最新文章

  1. 21 window对象常见事件
  2. Swoole笔记(五)
  3. Python学习入门基础教程(learning Python)--2.3.5Python返回多个值问题
  4. 机器学习中有监督学习——回归
  5. Quartz-Job 详解
  6. thinkphp传递参数
  7. linux下c标准库位置,C 标准库 IO 使用详解
  8. 深入了解EntityFramework——Lazy Loading与Eager Loading
  9. 【Oracle】DBMS_STATS.GATHER_TABLE_STATS分析表
  10. 搭建rocketMq环境
  11. jar包的生成及运行
  12. sql limit offset 的用法 但在SqlServer中用不了
  13. hbuilder能写php项目吗,如何在Android中使用HBuilder中的项目
  14. 几个跨平台移动App开发方案框架比较
  15. WPF:新手入门教程
  16. 具体案例 快速原型模型_【复习资料】软件工程之快速原型模型
  17. HTML+CSS 简易搜索框
  18. linux的s权限和t权限
  19. Could not find metadata org.apache.maven.plugins:maven-archetype-plugin/maven-metadata.xml in local
  20. 正则表达式 REGEXP_REPLACE

热门文章

  1. 使用MSBuild实现完整daily build流程
  2. Linux Tomcat安装,Linux配置Tomcat,Linux Tomcat修改内存,Linux tomcat修改端口
  3. let 与 expr Shell运算比较 let强强胜出
  4. nginx参数优化杂记
  5. Android数据手册02:android.permission权限请求汇总
  6. 让VB菜鸟最快写出自己的外挂.通杀所有游戏
  7. mysql 二级什么意思_MySQL二级等级考试归纳——PHP篇
  8. tcp 测试工具_6款免费网络延迟测试工具
  9. 计算机在医疗方面的应用与前景,计算机在医疗卫生领域应用现状及前景.docx
  10. vue项目刷新当前页面的三种方法