木偶版:3.6.2
为了简化 ssl 证书的管理,我们的puppet
代理使用相同的certname,certname=agent.puppet.com
当 puppet master 收到 agent 的请求时(hostname: web00.xxx.com)
,它会执行以certname作为参数的Enc
脚本。
node_terminus = exec
external_nodes = /home/ocean/puppet/conf/bce_puppet_bns
木偶日志:
2015-05-06 09:55:34 +0800 Puppet (debug): Executing '/home/ocean/puppet/conf/bce_puppet_bns agent.puppet.com'
如何配置以使 puppet master 将代理的真实主机名/FQDN 传递给Enc
脚本,例如:
/home/ocean/puppet/conf/bce_puppet_bns web00.xxx.com
或者如何在Enc
脚本中获取代理的主机名/FQDN?