Hi,

I have a problem with getting puppet to do what I want. I've written a
module which I configure via a define, and one of the define's
settings is an array of all user names that are supposed to act as
admins of this particular service this module is rolling out, like
this:

application::config { "app_1":
     app-admin => ["user1","user2],
}

application:config { "app_2":
     app-admin => ["user1","user2,"user3"],
}

Now this application has a config file, which I've made member of a
certain group, and I want to add above users to this group:

define application::config ( $app-admin ) {
     group { "$title":
          ensure => present,
          system => true,
     }
     file { "/etc/$title/app.conf":
          group => "$title",
          [...]

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

So the last User<| |> collection is not adding this group to all app-
admin users, but only to "user1". Seems like it is unable to handle
arrays. Is there a good reason for that? How can I get this done?

Thanks
Stephan

-- 
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