[Puppet Users] Custom facts are updated in the next execution of "puppet agent --test"

2016-07-12 Thread Amrit Atmajit
Hi, I am using following code snippet in one of the init.pp file of puppet master to load the updated facts in "facts.yaml" available in "C:\marionette-collective\etc\" folder. file { "c:/marionette-collective/etc/facts.yaml": loglevel => debug, content => inline_template("

Re: [Puppet Users] Custom facts are updated in the next execution of "puppet agent --test"

2016-07-12 Thread Rob Nelson
Amrit, since you are deploying it as a file resource, it has to be deployed to the agent before it will be used. You could instead add the fact to your module, where plugin sync will push it to the agent before it collects facts, which means it is there on the first facts run. See https://docs.pupp

[Puppet Users] Custom facts are updated in the next execution of "puppet agent --test"

2016-07-12 Thread Amrit Atmajit
Hi, I am using following code snippet in one of the init.pp file of puppet master to load the updated facts in "facts.yaml" available in "C:\marionette-collective\etc\" folder. file { "c:/marionette-collective/etc/facts.yaml": loglevel => debug, content => inline_template("<%= s