How to collect Puppet agent information and copy to file either localhost or remotely
file {'collect_facts':
ensure => file,
path => "/tmp/${fqdn}",
mode => 0644,
content => "IP is ${ipaddress}\nhostname is ${fqdn}\n",
}
file {'collect_facts':
ensure => file,
path => "/tmp/${fqdn}",
mode => 0644,
content => "IP is ${ipaddress}\nhostname is ${fqdn}\n",
}
you can find file underneath /tmp/fqn-name
No comments:
Post a Comment