You should structure your exec resource in such a way that it only runs if necessary. Parameters you may want to use: onlyif, unless, creates. Either of those can be of use here.
For what it's worth, this sounds as if you're trying to use puppet for monitoring a file. This might be valid, but please note that a dedicated monitoring tool such as Icinga may be more appropriate. HTH, Felix On 12/19/2013 02:57 PM, shlo.af...@gmail.com wrote: > > Thanks it's working. > > But one problem left, each time Puppet run I saw the server in the > Dashboard mark as 'Changed'. > Nothing really changed, I need puppet to mark it as 'Unchanged'. > How I can change it so Dashboard will mark it as 'Unchanged' action? -- 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/52B3196E.8030001%40alumni.tu-berlin.de. For more options, visit https://groups.google.com/groups/opt_out.