傀儡代理人没有反映我的变化

时间:2015-02-17 13:26:54

标签: puppet puppet-enterprise

我已经在centos 7上安装了puppet enterprise 3.7.2 .Puppet master和agent正在工作。我可以从puppet企业控制台和附加的屏幕截图中查看节点。

enter image description here

我在puppet服务器上创建了清单文件/etc/puppetlabs/puppet/manifests/node.pp以及以下内容。

node 'puppet.client.net' {
  file { '/tmp/hello':
    content => "Hello, world\n",
  }
}

在master上执行以下命令后:

 #puppet agent apply  nodes.pp

然后在客户机节点上执行以下命令:

#puppet agent -t
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Loading facts
Info: Caching catalog for puppet.client.net
Info: Applying configuration version '1424179235'
Notice: Finished catalog run in 2.12 seconds

Puppet节点不会从master中选择任何更改。

1 个答案:

答案 0 :(得分:1)

主人通常会尝试在site.pp而不是nodes.pp中查找清单,因为这是manifestpuppet.conf的默认设置。

尝试设置

manifest=/etc/puppetlabs/puppet/manifests

或者更好的是,从一开始就使用目录环境。

相关问题