>
> Hi Ugo,
>
> You don't have to to modify pdxcat/nrpe to get that to work. Wherever
> you are calling this from, you need to set the value of $ntpserver. That
> can happen as a parameter to the class which would automatically look it
> up or with the hiera() function.
>
> I also have an nrpe module. It allows you to specify all of your plugins
> in Hiera.
>
> They seem to be similar in OS support and functionality, though mine has
> extensive unit testing.
>
> https://github.com/ghoneycutt/puppet-module-nrpe#usage
>
> Best regards,
> -g
>
Hi Garrett,
I decided to give your module a try, I think it's worth it. I like the
idea of having small manifests and all the rest in hiera. However, can I
use the value of a variable in hiera or do I need to put the whole command
definition in each yaml file?
For example:
---
ntp::autoupdate: true
ntp::enable: true
ntp::servers:
- ntp1.example.com
- ntp2.example.com
nrpe::allowed_hosts: ['127.0.0.1', '192.168.xxx.xxx']
nrpe::plugins:
check_load:
args: '-w $ARG1$ -c $ARG2$'
check_ntp:
args: "-h $ntp::servers"
check_users:
args: '-w 5 -c 10'
check_zombie_procs:
plugin: 'check_proc'
args: ' -w 5 -c 10 -s Z'
Thanks,
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/5e8d4b2b-81dc-4388-b745-26073e392735%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.