I'm trying to pull data from my cmdb into a variable, by downloading my
relevant data to a local json file and reading it in:
class get_cmdb {
file { "/tmp/${::hostname}.json":
source => "http://mycmdb.example.com/${::hostname}"
}
$mydata = loadjson("/tmp/${::hostname}.json")
The issue that the file in the first step is created on the agent, but the
loadjson attempts to read the file on the master.
How can I either read the file on the agent instead, or vice versa, fetch
the file on the master?
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/5e754b5f-a748-4c8f-9afa-6d0fe9e644d5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.