FAQ
I wanted to configure file monitoring on puppet. every time file
change I wanted the service to be restarted...
it seemed easy but I can't do it...

i used it:
http://www.puppetcookbook.com/posts/restart-a-service-when-a-file-changes.html

(..)

service { 'nagios3':
ensure => "running",
enable => "true",
hasstatus => "true",
hasrestart=> "true",
require => Package["nagios3"],
}

(..)
file { '/etc/nagios3/conf.d/puppet_services.cfg':
ensure => "present",
owner => "root",
group => "root",
mode => 644,
notify => Service["nagios3"],
}


when i change the file puppet sees it , but it doesn't restart nagios
service
could anyone help me on that? :)

Best regards
nichu

--
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.

Search Discussions

Discussion Posts

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 4 | next ›
Discussion Overview
grouppuppet-users @
categoriespuppet
postedMay 15, '12 at 11:23a
activeMay 15, '12 at 2:11p
posts4
users3
websitepuppetlabs.com

3 users in discussion

Nichu: 2 posts Mason Turner: 1 post Marcin: 1 post

People

Translate

site design / logo © 2022 Grokbase