On Sat, Jan 14, 2012 at 01:27:33PM -0800, Jared Curtis wrote:
> I'm trying to build a NRPE management module that has the ability to
> add or modify existing commands. I think Augeas would be the best
> method to handle this but I'm running into a few issues. Here's what I
> have so far
[snip]
> The problem is this will add duplicate commands.
> 
> What I want is something like this
> nrpe::command { 'check_users': value=> 'check users command';
> 'check_something': value => 'check something command'; }
> 
> Which will produce this
> command[check_users]=check users command
> command[check_something]=check something command

I'd say it's easier to use NRPE's include_dir and have nrpe::command drop a
file into that directory for each command, instead of using Augeas to update
a monolithic configuration file. include_dir's been in NRPE for a while,
since version 2.0 AFAICT (released in mid-2003).

john
-- 
John Morrissey          _o            /\         ----  __o
j...@horde.net        _-< \_          /  \       ----  <  \,
www.horde.net/    __(_)/_(_)________/    \_______(_) /_(_)__

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