Thomas Mueller
2010-Jan-18 15:11 UTC
[Puppet Users] file recurse leads to restarting service twice
hi
is there a way to not restarting a service twice if file recursion is
enabled?
IMHO the problem is that puppet updates first the "somdir" and then
the
underlying files which then updates the "somedir" timestamp. the next
run
puppet will detect wrong "somedir" timestamp and restart the service
again.
example:
file {
"/etc/somedir":
source => "puppet:///somemodule/somedir",
recurse => true,
checksum => "md5",
notify => Service["someservice"]
}
service {
"someservice":
ensure => "running",
}
- Thomas
--
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.