That behaviour is used in resource overrides (inheritance) Given:
class x { user { test: groups => blah } } Additional values can be added in an override class. class y inherits x { User['test'] { groups +> blah2 } } Regards, AJ On 26/11/2008, at 10:05 PM, Udo Waechter <[EMAIL PROTECTED] osnabrueck.de> wrote: > > Ouch, > Documentation ( > http://reductivelabs.com/trac/puppet/wiki/LanguageTutorial ) says its: > > "It is also possible (since version 0.23.1) to add values to resource > parameters using the +> operator:" > > I am pretty sure, that I saw this sentence around for a while > (definetly > longer than .6), I just did not try it out. > > Are the docs wrong? > udo. > > Aj wrote: >> That behavior was added in .6 >> >> Regards, >> >> AJ >> >> On 26/11/2008, at 9:31 PM, Udo Waechter <[EMAIL PROTECTED] >> osnabrueck.de> wrote: >> >>> Oh, sorry: >>> >>> - puppetmaster is 0.24.5 (Debian etch) >>> - puppet clients are 0.24.5 (debian), and 0.24.4 (ubuntu hardy) >>> >>> Bye, >>> udo. >>> >>> Paul Lathrop wrote: >>>> Udo, >>>> >>>> What version of Puppet are you running? >>>> >>>> --Paul >>>> >>>> On Tue, Nov 25, 2008 at 12:57 PM, udo waechter >>>> <[EMAIL PROTECTED]> wrote: >>>>> According to: >>>>> http://reductivelabs.com/trac/puppet/wiki/LanguageTutorial >>>>> one can use the '+>' operator to add additional values to a >>>>> parameter. >>>>> >>>>> In which cases does this actually work? >>>>> When i try to add the user www-data to the ssl-cert group: >>>>> >>>>> user{"www-data": >>>>> groups +> "ssl-cert", >>>>> } >>>>> >>>>> this does not work (.. Syntax error at '+>'; expected '}' at...). >>>>> All >>>>> examples in the docs add only other types to the 'require' >>>>> parameters of >>>>> types via this operator. Could it be that it does not work for all >>>>> parameters? >>>>> >>>>> Or does the user-type do the "adding the user to the group" thing >>>>> by itself? >>>>> >>>>> Thanks, >>>>> udo. >>>>> -- >>>>> :: udo waechter - [EMAIL PROTECTED] :: N 52º16'30.5" E 8º3'10.1" >>>>> :: genuine input for your ears: http://auriculabovinari.de >>>>> :: your eyes: http://ezag.zoide.net >>>>> :: your brain: http://zoide.net >>>>> >>>>> >>>>> >>>>> >>>>> >>> >> >>> >> > > > > --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---