On Thursday, June 11, 2015 at 7:24:57 AM UTC-5, Eddie Mashayev wrote:
>
>
> Thanks, do you have any other suggestion how can I do it properly?
>
> I want “nails” process to be running only if there is no /etc/NONAILS flag 
> in my OS.
>
>

The canonical way to inform the catalog compiler about node state is via 
node facts.  It should be pretty straightforward to create a custom fact 
that simply reports on the presence or absence of one file; then you put 
the Service resource in a conditional block that depends on the value of 
that fact.


John

-- 
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/36344d8a-a76e-4f01-ad3a-9687f607e182%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to