Hi folks,
I'm not sure if I'm thinking about the problem the wrong way, but I'm
trying to design a way to have one directory of user information in
hiera which feeds the creation of unix users as well as nagios contacts.
I have a hiera data structure like this:
unifiedusers:
jon:
nagiosuser: true
comment: Jonathan
gid: resnet
uid: 56933
sudo: true
groups:
- resnet
- superadmins
paul:
nagiosuser: true
comment: Paul
gid: resnet
uid: 23770
sudo: true
groups:
- resnet
- superadmins
dave:
nagiosuser: false
comment: Dave
gid: networks
uid: 1234
sudo: false
groups:
- resnet
I have code that works well to create unix users & groups. I'm
struggling more with nagios stuff. Ideally I want to end up with an
array of usernames for whom nagiosuser==true. So my array @nagiosusers
would contain ['jon', 'paul'] but not 'dave'. Is this possible?
Thanks,
Jonathan
--
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 puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/54983864.6090600%40bristol.ac.uk.
For more options, visit https://groups.google.com/d/optout.