Re: [Puppet Users] Reload fact variable during run

2012-11-07 Thread Denmat
Hi, Not from within puppet but there are external ways (ssh, MCollective ). From them you can schedule action. You can run puppet again (as compilation is done on the master not the client). The facts are sent to the master at the start of the run and puppet can't do anything with them midstre

[Puppet Users] Reload fact variable during run

2012-11-07 Thread loic
Hi, I just made a custom fact to display a status about mysql. The fact variable is 'foo'. In a module I test this fact variable to apply or not a ressource : class bar { if $::foo == 'toto' { notice("Execute ressource") # Reload fact variable ? if $::foo == 'toto' {