Mcollective with Puppet : Manifests not getting applied

asked 2016-06-19 23:11:36 -0600

queszama gravatar image

updated 2016-06-20 02:22:01 -0600

I did a setup of puppet with mcollective for five nodes. The setup seems to be successful

            $  sudo /opt/puppetlabs/bin/mco ping
            Node-002.test.com                   time=112.18 ms
            Node-010.test.com                   time=115.04 ms
            Node-003.test.com                   time=117.81 ms
            Node-009.test.com                   time=120.74 ms

             ---- ping statistics ----
           4 replies max: 120.74 min: 112.18 avg: 116.44

Now I have started defining manifests . Initially have written a manifests to create a helloworld file on a single node. The manifests is
as follows.

         $ cat /data/puppetlabs/code/environments/qa/manifests/site.pp
         node default{
        }
         node 'Node-009.wiley.com'{

  file { "/tmp/helloworld.txt":     ensure => file,     owner  => "root",     group  => "root",   mode   => 0644,   content => "Hello, World",   } }

When I execute to apply the manifests , I can see that the file is not getting created

        $  sudo /opt/puppetlabs/bin/mco puppet runonce
         * [ ============================================================> ] 4 / 4
           Finished processing 4 / 4 hosts in 226.51 ms

Seeing the following in mcollective log

      I, [2016-06-20T17:18:53.132038 #5060]  INFO -- : activemq.rb:114:in `on_connecting' TCP Connection attempt 4569 to stomp://mcollective@stomp1:6163
      I, [2016-06-20T17:18:53.195717 #5060]  INFO -- : activemq.rb:129:in `on_connectfail' TCP Connection to stomp://mcollective@stomp1:6163 failed on attempt 4569

Please suggest what is the issue for me . Why the manifests is not getting executed .

edit retag flag offensive close merge delete