On Oct 11, 9:47 pm, jdk <[email protected]> wrote:
> 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:

Thanks for the reply, I had a look into that, the problem is that I
originally create this user via a define somewhere else. If I would do
that I would have to configure my app at 2 different places which I
want to avoid. I've ended up doing it like this:

    User<| title == $app-admin[0] |> {
        groups +> "$title",
    }

    User<| title == $app-admin[1] |> {
        groups +> "$title",
    }

    User<| title == $app-admin[2] |> {
        groups +> "$title",
    }

Then I mention in a comment in the define that builds this app, that
the maximum number of users is 3. If you want more, you have to copy
and paste above lines a couple times in the config of the application.
It's ugly, but I don't expect many users in there anyways. Maybe
Puppetlabs one day support arrays in here to get rid of this ugly
code.

Thanks again

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
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.

Reply via email to