On Jan 17, 4:34 am, Antidot SAS <[email protected]> wrote:
> Hi everyone,
>
> Is there a way to handle default setting easily, let me explain, I want to
> create a user but if the uid is specified I would to use it as follow:
>
> ---
> class user::create ($uid='' ) {
> user { "$name":
>   ensure => present,
>   uid      => "$uid",}
>
> ---
>
> Or am I forced to used the following code:
>
> ---
> class user::create ($uid='' ) {
> user { "$name":
>   ensure => present,
>
> }
>
> if $uid { User["$name"] { uid => "$uid", }
>
> ---
>
> In the first case, does the uid set to ''?
>
> Regards,
> JM

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