我在主服务器和服务器上安装了puppet 5,并从代理安装了设置/签名证书...现在我想尝试运行一个简单的代理...
我遵循了也测试Hiera 5的人偶官方文档(下面的链接):https : //docs.puppet.com/puppet/5.0/hiera_quick.html
但是当我运行时,代理永远不会应用更改:
# puppet agent -t
Info: Using configured environment 'production'
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Caching catalog for xxxxxx.xxx.xxx
Info: Applying configuration version '1504530655'
Notice: Applied catalog in 0.04 seconds
Run Code Online (Sandbox Code Playgroud)
在主服务器上,当我运行puppet时,应用/[manifest-location]/manifest.pp可以正常工作。
我的主人puppet.conf:
[main]
server = puppet-master-test.xxx.xxx
dns_alt_names = puppet-master-test.xxx.xxxx
certificate_revocation = false
modulepath = /etc/puppetlabs/code/environments/production/modules
[master]
certname = puppet-master-test.xxx.xxx
vardir = /opt/puppetlabs/server/data/puppetserver
logdir = /var/log/puppetlabs/puppetserver
rundir = /var/run/puppetlabs/puppetserver
pidfile = /var/run/puppetlabs/puppetserver/puppetserver.pid
codedir = /etc/puppetlabs/code
environment_timeout = unlimited
Run Code Online (Sandbox Code Playgroud)
特工的puppet.conf:
[main]
server = …Run Code Online (Sandbox Code Playgroud) puppet ×1