傀儡服务器不应用清单

我做了一个使用四个节点的Puppet / MCollective设置。

# mco ping Node-010.test.com time=107.58 ms Node-003.test.com time=110.68 ms Node-009.test.com time=114.42 ms Node-002.test.com time=116.49 ms 

#mco puppet runonce工作正常,但没有应用清单。

  # mco puppet runonce * [ ============================================================> ] 4 / 4 Finished processing 4 / 4 hosts in 151.61 ms 

我的清单configuration如下:

  # puppet master --configprint manifest /etc/puppetlabs/code/environments/production/manifests 

我的Site.pp如下

  # cat /etc/puppetlabs/code/environments/production/manifests/site.pp node default { } node 'Node-002.test.com'{ file {"/tmp/helloworld.txt": ensure => file, owner => 'root', group => 'root', mode => '0644', content =>" Hi ", } } 

Site.pp没有得到应用。

从日志文件看来,它正在从caching中读取并申请没有规则存在的节点。

  ` # tail -f /var/log/puppetlabs/puppetserver/puppetserver.log 2016-06-21 20:21:06,355 INFO [qtp1367105977-65] [puppet-server] Puppet Compiled catalog for Node-009.test.com in environment qa in 0.04 seconds 2016-06-21 20:21:08,223 INFO [qtp1367105977-65] [puppet-server] Puppet Caching node for Node-002.test.com 2016-06-21 20:21:08,618 INFO [qtp1367105977-69] [puppet-server] Puppet Caching node for Node-002.test.com 

我打一些错误或缺less一些configuration项目?

根据评论:代理要求环境qa ,而您显示了环境production site.pp 所以,最好仔细检查双方的环境,主人和代理人。 🙂