On Fri, Mar 13, 2009 at 10:57:07AM -0700, jb wrote:>
> howdy,
>
> I assign specific applications to machines via a class. Each
> application has its own log files that need to be managed by our
> logging system (splunk, for those who are familiar with it).
> This basically entails adding a line to a config file.
I use the line command from
http://git.black.co.at/?p=module-common;a=summary
Example:
line { "logcheck: ignore sync":
file => "/etc/logcheck/ignore.d.server/local",
line => "stuff here",
ensure => present,
require => File["/etc/logcheck/ignore.d.server/local"],
}
Agueas is better for structured configuration files, though; see
http://reductivelabs.com/trac/puppet/wiki/PuppetAugeas
-Robin
--
They say: "The first AIs will be built by the military as weapons."
And I''m thinking: "Does it even occur to you to try for something
other than the default outcome?" -- http://shorl.com/tydruhedufogre
http://www.digitalkingdom.org/~rlpowell/ *** http://www.lojban.org/
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---