On Jan 11, 11:59 am, Antidot SAS <antidot...@gmail.com> wrote: > Hi everyone, > > Let's say that I have declared a virtual ressource as follow: > @group { 'test': > gid => '999', > tag => [ 'test' ], > > } > > Is that possible to do some kind of "+>" later on? > like that > > Group['test'] { tag +> ['foo'] } > > Because when I want to create the virtual ressource I have no idea what all > the tags will be.
I'm not sure I understand. Do you mean that even when you want to *realize* the resource you don't know what the tags will be, or is it just when you *define* the resource that you don't know? And related: what is your intended use for the tags you want to add to these resources? In any case, why don't you know what the tags should be? You can override resource properties in a subclass of the class that defines the resource, and / or you can override resource properties when you collect a virtual / exported resource (the latter comes with some caveats). The plusignment operator works in both contexts, I believe. If that doesn't meet your needs then we may be able to suggest an alternative approach, given a better understanding of the problem. John -- 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+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.