On Jan 6, 2011, at 10:55 PM, Alan Barrett wrote:

> On Thu, 06 Jan 2011, Mohamed Lrhazi wrote:
>> I added one resource to all the hosts, which dumps all environment
>> variables to a file called: /etc/mcollective/facts.yaml
>> This resource always reports that a change needs to be made, since
>> that file content is always changing...
>> 
>> How do I silence this resource, so it does not report that every time?
> 
> I probably wouldn't do this, but:
> 
>    exec { "secret stuff":
>       command => "/bin/false",
>       unless => "do the real work here",
>    }

I don't know if it's a problem, but this will probably run in noop mode and 
noop mode won't do anything except make run failures silent to you should 
probably change this by adding "noop => false" to be explicit.

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-us...@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to