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("<%= scope.to_hash.reject { |k,v| k.to_s =~ 
/(uptime_seconds|timestamp|free)/}.to_yaml %>"),

    require   => [ Exec['set_executionpolicy'], Exec['gencustomfacts'] ],

  }



But, the custom facts are getting updated in facts.yaml file on execution 
of next "puppet agent --test", not immediately.

Am I missing something to update the facts.yaml for the custom facts on the 
immediate execution of "puppet agent --test" not on the next execution?

Regards
Amrit

-- 
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 puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/060a4391-03a0-4074-b322-72a7784fcab0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to