I'm confused, because I created this on my client only:
> /opt/puppetlabs/facter/facts.d/boo.json:
> { "boo": "boo222" }
>
> And added this to me module:
>notify { "boo is ${boo}": }
>
> And received:
> Notice: boo is boo222
>
> Doesn't that demonstrate that files in facts.d/boo.json are loade
On Tuesday, December 5, 2017 at 1:39:38 PM UTC+1, Rob Nelson wrote:
>
> Facts are loaded, and distributed from the master, before the catalog
> compilation step. See
> https://docs.puppet.com/facter/3.3/custom_facts.html#external-facts.
> Rather than distributing the json files as a File resou
Facts are loaded, and distributed from the master, before the catalog
compilation step. See
https://docs.puppet.com/facter/3.3/custom_facts.html#external-facts. Rather
than distributing the json files as a File resource, you could add an
executable fact to a module and the fact could communicate wi
On Friday, December 1, 2017 at 5:59:51 PM UTC+1, R.I. Pienaar wrote:
>
>
> All functions like foo() run on the master during compile. It's a multi
> phase process, the only way a node can influence the compile time is
> using facts.
>
> You could integrate your CMDB with puppet using a hiera
On Fri, 1 Dec 2017, at 16:53, buoyant_puppy wrote:
> 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/${::hostna
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 is