<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.define-technology.com/mediawiki-1.35.0/index.php?action=history&amp;feed=atom&amp;title=Puppet%3A_Setting_up_mcollective_on_RHEL_7.0</id>
	<title>Puppet: Setting up mcollective on RHEL 7.0 - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.define-technology.com/mediawiki-1.35.0/index.php?action=history&amp;feed=atom&amp;title=Puppet%3A_Setting_up_mcollective_on_RHEL_7.0"/>
	<link rel="alternate" type="text/html" href="http://wiki.define-technology.com/mediawiki-1.35.0/index.php?title=Puppet:_Setting_up_mcollective_on_RHEL_7.0&amp;action=history"/>
	<updated>2026-05-04T21:39:03Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.0</generator>
	<entry>
		<id>http://wiki.define-technology.com/mediawiki-1.35.0/index.php?title=Puppet:_Setting_up_mcollective_on_RHEL_7.0&amp;diff=8461&amp;oldid=prev</id>
		<title>David: Created page with &quot;== System Setup == * Notes on the system setup * Setup the puppetlabs repo * disable selinux   &lt;syntaxhighlight&gt; [root@puppet ~]# rpm -qa | grep puppetlabs puppetlabs-release-7-11.noarch...&quot;</title>
		<link rel="alternate" type="text/html" href="http://wiki.define-technology.com/mediawiki-1.35.0/index.php?title=Puppet:_Setting_up_mcollective_on_RHEL_7.0&amp;diff=8461&amp;oldid=prev"/>
		<updated>2015-07-06T22:30:02Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;== System Setup == * Notes on the system setup * Setup the puppetlabs repo * disable selinux   &amp;lt;syntaxhighlight&amp;gt; [root@puppet ~]# rpm -qa | grep puppetlabs puppetlabs-release-7-11.noarch...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== System Setup ==&lt;br /&gt;
* Notes on the system setup&lt;br /&gt;
* Setup the puppetlabs repo&lt;br /&gt;
* disable selinux &lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight&amp;gt;&lt;br /&gt;
[root@puppet ~]# rpm -qa | grep puppetlabs&lt;br /&gt;
puppetlabs-release-7-11.noarch&lt;br /&gt;
[root@puppet ~]# ls /etc/yum.repos.d/&lt;br /&gt;
puppetlabs.repo  redhat.repo&lt;br /&gt;
[root@puppet ~]# cat /etc/redhat-release &lt;br /&gt;
Red Hat Enterprise Linux Server release 7.0 (Maipo)&lt;br /&gt;
[root@puppet ~]# getenforce &lt;br /&gt;
Disabled&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Install the packages ==&lt;br /&gt;
&amp;lt;syntaxhighlight&amp;gt;&lt;br /&gt;
  yum install mcollective mcollective-common mcollective-client activemq&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Setup the activemq cfg files ==&lt;br /&gt;
* Enable the &amp;lt;createConnector&amp;gt; tag&lt;br /&gt;
&amp;lt;syntaxhighlight&amp;gt;&lt;br /&gt;
[root@puppet activemq]# pwd &lt;br /&gt;
/etc/activemq&lt;br /&gt;
[root@puppet activemq]# diff activemq.xml activemq.xml.orig &lt;br /&gt;
65c65&lt;br /&gt;
&amp;lt;             &amp;lt;managementContext createConnector=&amp;quot;true&amp;quot;/&amp;gt;&lt;br /&gt;
---&lt;br /&gt;
&amp;gt;             &amp;lt;managementContext createConnector=&amp;quot;false&amp;quot;/&amp;gt;&lt;br /&gt;
130c130&lt;br /&gt;
&amp;lt; &amp;lt;!-- END SNIPPET: example --&amp;gt; &lt;br /&gt;
---&lt;br /&gt;
&amp;gt; &amp;lt;!-- END SNIPPET: example --&amp;gt; &lt;br /&gt;
\ No newline at end of file&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
* Restart the activemq service&lt;br /&gt;
&lt;br /&gt;
== Test the ActiveMQ setup ==&lt;br /&gt;
&amp;lt;syntaxhighlight&amp;gt;&lt;br /&gt;
[root@puppet activemq]# ps aux | grep activemq&lt;br /&gt;
activemq 17409  228  0.0 3957432 227928 ?      Sl   22:50   0:04 java -Xms512m -Xmx512m -Djava.util.logging.config.file=logging.properties -Dhawtio.realm=activemq -Dhawtio.role=admins -Dhawtio.rolePrincipalClasses=org.apache.activemq.jaas.GroupPrincipal -Djava.security.auth.login.config=/etc/activemq/login.config -Dcom.sun.management.jmxremote -Djava.awt.headless=true -Djava.io.tmpdir=/usr/share/activemq/tmp -Dactivemq.classpath=/etc/activemq; -Dactivemq.home=/usr/share/activemq -Dactivemq.base=/usr/share/activemq -Dactivemq.conf=/etc/activemq -Dactivemq.data=/usr/share/activemq/data -jar /usr/share/activemq/bin/activemq.jar start&lt;br /&gt;
root     17457  0.0  0.0 112640   980 pts/0    S+   22:50   0:00 grep --color=auto activemq&lt;br /&gt;
&lt;br /&gt;
# JMX connector&lt;br /&gt;
[root@puppet activemq]# netstat -lptun | grep 1099&lt;br /&gt;
tcp6       0      0 :::1099                 :::*                    LISTEN      17409/java&lt;br /&gt;
&lt;br /&gt;
[root@puppet ~]# netstat -tulpn | grep 616&lt;br /&gt;
tcp6       0      0 :::61613                :::*                    LISTEN      17409/java&lt;br /&gt;
tcp6       0      0 :::61614                :::*                    LISTEN      17409/java&lt;br /&gt;
tcp6       0      0 :::61616                :::*                    LISTEN      17409/java&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
* Check the output of activemq-admin list&lt;br /&gt;
&amp;lt;syntaxhighlight&amp;gt;&lt;br /&gt;
[root@puppet activemq]# activemq-admin list&lt;br /&gt;
Java Runtime: Oracle Corporation 1.7.0_79 /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.79-2.5.5.1.el7_1.x86_64/jre&lt;br /&gt;
  Heap sizes: current=2010112k  free=1989099k  max=27810816k&lt;br /&gt;
    JVM args: -Dactivemq.classpath=/usr/share/activemq/conf; -Dactivemq.home=/usr/share/activemq -Dactivemq.base=/usr/share/activemq -Dactivemq.conf=/usr/share/activemq/conf -Dactivemq.data=/usr/share/activemq/data&lt;br /&gt;
Extensions classpath:&lt;br /&gt;
  [/usr/share/activemq/lib,/usr/share/activemq/lib/camel,/usr/share/activemq/lib/optional,/usr/share/activemq/lib/web,/usr/share/activemq/lib/extra]&lt;br /&gt;
ACTIVEMQ_HOME: /usr/share/activemq&lt;br /&gt;
ACTIVEMQ_BASE: /usr/share/activemq&lt;br /&gt;
ACTIVEMQ_CONF: /usr/share/activemq/conf&lt;br /&gt;
ACTIVEMQ_DATA: /usr/share/activemq/data&lt;br /&gt;
Connecting to JMX URL: service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi&lt;br /&gt;
brokerName = localhost&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Setup the Mcollective cfgs ==&lt;br /&gt;
&amp;lt;syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[root@puppet ~]# grep activemq /etc/mcollective/client.cfg&lt;br /&gt;
connector = activemq&lt;br /&gt;
plugin.activemq.pool.size = 1&lt;br /&gt;
plugin.activemq.pool.1.host = localhost&lt;br /&gt;
plugin.activemq.pool.1.port = 61613&lt;br /&gt;
plugin.activemq.pool.1.user = system&lt;br /&gt;
plugin.activemq.pool.1.password = manager&lt;br /&gt;
&lt;br /&gt;
[root@puppet ~]# grep activemq /etc/mcollective/server.cfg&lt;br /&gt;
connector = activemq&lt;br /&gt;
plugin.activemq.pool.size = 1&lt;br /&gt;
plugin.activemq.pool.1.host = localhost&lt;br /&gt;
plugin.activemq.pool.1.port = 61613&lt;br /&gt;
plugin.activemq.pool.1.user = system&lt;br /&gt;
plugin.activemq.pool.1.password = manager&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
* Restart the mcollective service &lt;br /&gt;
&lt;br /&gt;
== Test MCO ==&lt;br /&gt;
&amp;lt;syntaxhighlight&amp;gt;&lt;br /&gt;
[root@puppet ~]# mco ping &lt;br /&gt;
puppet                                   time=42.26 ms&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
---- ping statistics ----&lt;br /&gt;
1 replies max: 42.26 min: 42.26 avg: 42.26 &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>David</name></author>
	</entry>
</feed>