On Fri, Jan 23, 2009 at 4:35 AM, Kenneth Holter <kenneho....@gmail.com> wrote:
> 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?

Is "line" a define you've gotten from somewhere? I think the community
is generally trying to use Augeas for this sort of thing. Myself I'd
just push out the file as a file resource.

--Paul

--~--~---------~--~----~------------~-------~--~----~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to