Puppet version: 3.6.2
In order to simplify the management of ssl certificates, our puppet
agents use the same certname, certname=agent.puppet.com
When puppet master gets request from agent(hostname: web00.xxx.com)
, it executes Enc
script with certname as parameter.
node_terminus = exec
external_nodes = /home/ocean/puppet/conf/bce_puppet_bns
puppet.log:
2015-05-06 09:55:34 +0800 Puppet (debug): Executing '/home/ocean/puppet/conf/bce_puppet_bns agent.puppet.com'
How do I configure to make puppet master pass agent's real hostname/FQDN to Enc
script like:
/home/ocean/puppet/conf/bce_puppet_bns web00.xxx.com
Or how can I get the agent's hostname/FQDN in Enc
script ?