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 midstream.
On the next run puppet will have the status of the fact (be it the way you want
or not).
THT,
Den
On 08/11/2012, at 1:08, loic <loic@recisio.com> wrote:
> 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'' {
> fail("Ressource not applied")
> }
> }
> }
>
> After apply my ressource I would like to reload the fact variable to test
if there is a mysql status modification.
> Do you know how can do that in a puppet class ?
>
> Thank you in advance.
>
> Loïc
> --
> You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
> To view this discussion on the web visit
https://groups.google.com/d/msg/puppet-users/-/-uh5H26o0B0J.
> To post to this group, send email to puppet-users@googlegroups.com.
> To unsubscribe from this group, send email to
puppet-users+unsubscribe@googlegroups.com.
> For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to
puppet-users+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.