On Thu, Aug 27, 2009 at 3:02 AM, Thomas Bellman<bell...@nsc.liu.se> wrote: > > Evan Hisey wrote: > >>>> I think you should have >>>> >>>> class myclass ($passwd = "111") { >>>> file {".... >>> this syntax is completely new to me, where is it documented? >>>
> http://reductivelabs.com/trac/puppet/wiki/LanguageTutorial#variable-scope > does not mention that syntax as far as I can see. It tells us how > scoping works, but no mention about putting variable assignments > inside parenthesis between the class name and the opening brace of > the class body. And more tellingly, actually trying it with Puppet > errors out with the message "Syntax error at '('; expected ')'". > > That section of the language tutorial *does* show how the original > poster should solve his problem. But it is not with the syntax that > Trevor suggested. Your right missed that part. Evan --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---