Hello all.
I'm trying to get my servers (syslog clients) to forward syslog-messages to
a central syslog server. I'm using the "line" resource type to add the
necessary entry to /etc/syslog.conf file, and I need a way to notify the
syslog service to restart whenever the config file changes.
Currently, this is what I've done:
*service {syslog:
ensure => running,
subscribe => Line["rsyslogserver"]
}
line { "rsyslogserver":
file => "/etc/syslog.conf",
line => "*.* @server1.example.com",
ensure => present
notify => Service[syslog]
}
*
I thought that the "notify" line would make sure that the syslog service
would restart upon changes to the config file, but apparently it isn't so.
Anyone got any suggestions on how to implement this?
Regards,
Kenneth Holter
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---