On Tue, Aug 23, 2011 at 7:34 AM, Vincent <vlouviaux@gmail.com>
wrote:> Hello,
>
> I am trying to set a defaults groups before realize virtual resource
> (user)
> The default value is not used,
> is it possible to define the default groups at this level ?
>
>
> User { groups => ''ops'' }
> realize(
> User["vincent"],
> ..
The resource default should occur before declaration of virtual
resource instead of the realize function.
User { groups => ''ops'' }
@user { ''vincent'':
...
}
You can use the other realize syntax to override values (however if
the virtual resource @user { ''vincent'': } declared a groups
attribute
it will be replaced with ''ops''):
User <| title=''vincent'' |> {
groups => ''ops'',
}
Thanks,
Nan
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to
puppet-users+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.