Puppet : stop a service if a filesystem is not mounted on boot -
What is the best way to write a puppet code - "Stop croning / file system is not mounted" (file system mount is taken into account carefully)
Redhat Cluter) "
exec The easiest way to deal with this is:
exec {"stop_crond": command = & gt; "service canceled stop", path => "/ sbin: / usr / sbin: / Bin: / usr / bin ", as long as = & gt;" mount | Grep -oq "/ filesystem" ',}
Comments
Post a Comment