On Mon, Aug 23, 2010 at 9:47 AM, parag(PK) <[email protected]> wrote:
> Hi,
>
> I am trying to add multiple users onto my client, using array.
> My code snippet is like this :
>
> node example_node {
> $arr=["abc","xyz",]
>
> user{$arr:
> ensure => present,
> gid => root,
> home => "/home/$arr",
> shell => "/bin/bash",
> managehome => 'true',
> }
>
What about using a definition, something like.... (untested)...
define shell_user {
user { "$name":
ensure => present,
gid => root,
shell => "/bin/bash",
managehome => true,
home => "/home/$name",
}
}
shell_user{ $arr }
?
--
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.