Hi,

I wish to update some files, like for example /etc/ntp.conf (or others
like this)... and restart daemons if the file has being updated.

I'am able to send the file.... with the following class :

# NTP
class ntpconf {
        case $operatingsystem {

        "RedHat": {
                file { "/etc/ntp.conf" :
                        path => "/etc/ntp.conf",
                        mode => 0644,
                        owner => root,
                        group => root,
                        content => template("ntp.conf.rh.erb");
                }

        }

        }
}

One thing I miss is how to do /etc/init.d/ntp restart when the file is
modified, but *only* if the file is modified (not every time the check
has been done....) ?

Thanks
/Xavier

--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to