Hi all.
I am using puppet source with Hiera. I want to manage users but also I
want to check if an user exist before doing something else and create
it.
I have a module prousers as follow:
prousers/init.pp
class prousers {
create_resources(user, hiera_hash('pro_user'))
}
then from hiera
common.yaml
pro_user:
bla1:
ensure: 'present'
comment: 'bla bla 1'
managehome: 'true'
uid: '1579'
bla2:
ensure: 'present'
comment: 'bla bla 2'
managehome: 'true'
uid: '1014'
How can I check in the prousers module if an user exist or other checks?
Any info would be appreciated.
Regards
--
Alfredo
--
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/CAAWpFTGxg3beSbLoZeY-hxcXHzknWUtPOf8jFGeq3U%3DFTKzr4g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.