Perhaps something like?
@user {"bob": ensure => present }
User<| title == bob |> { gid => "users" }
A mention of the <| foo |> syntax is here:
http://projects.puppetlabs.com/projects/puppet/wiki/Virtual_Resources
The doc doesn't show the {} parameter block ... I believe this was
mentioned in errata or a release note somewhere though. Perhaps a
candidate for a wiki mod - although I get the feeling docs are moving
to docs.puppetlabs.com.
ken.
On Apr 20, 4:04 pm, Lawrence W <[email protected]> wrote:
> I want to be able to add users to machines and have those users add to
> the correct groups for each machine type.
>
> I want to have a single file with the users and their key and then
> call that file and pass in the correct primary group and any other
> group membership of that particular server.
>
> What I have setup is the virtual::users file but I am not clear on how
> I would pass in group information in the Realize statement.
>
> is there a way to do this?
>
> --
> 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
> athttp://groups.google.com/group/puppet-users?hl=en.
--
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.