Craig Dunn <[email protected]> writes:
> On Mon, Aug 23, 2010 at 9:47 AM, parag(PK) <[email protected]> wrote:
>>
>> I am trying to add multiple users onto my client, using array. My code
>> snippet is like this :
[...]
> What about using a definition, something like.... (untested)...
Other than the trivial syntax errors, this is the technique that I use
to work around array expansion limitations in puppet when I have a
similar requirement.
I don't know of any better approach.
Daniel
>
> define shell_user {
> user { "$name":
> ensure => present,
> gid => root,
> shell => "/bin/bash",
> managehome => true,
> home => "/home/$name",
> }
> }
>
> shell_user{ $arr }
> ?
--
✣ Daniel Pittman ✉ [email protected] ☎ +61 401 155 707
♽ made with 100 percent post-consumer electrons
--
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.