Try home => "/home/${name}"

this should give you the name of the current ressource

Zitat von "parag(PK)" <[email protected]>:

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',
                }

}

It creates 2 new users named "abc" and "xyz" , but  only one home
directory is created i.e /home/abcxyz
How shall i create, individual directories.
How to access individual array content in, home=> "/home/$arr/ " ??

Regards,
Parag













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





----------------------------------------------------------------
Powered by http://www.taunusstein.net
Wir speichern nicht


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