In playing around with something like this, I was able to tag the users and
then use the tags to realize the correct set of users:
@user {
"user1": tag => [ 'app_1' , 'app_2' ];
"user2": tag => [ 'app_1' , 'app_2' ];
"user3": tag => [ 'app_2' ];
}
Then, you can use this to realize them:
User <| tag == $title |> {
groups +> "$title",
}
If you find another way to do it, please let me know. This would work ok
for a few apps, but doesn't scale well.
Best,
Jeremy
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/puppet-users/-/ANsV9m10C-oJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.