What errors are you getting when you use this pattern? Do you have sample code and errors for your use case?
I presume you are doing an: include foo::wrapper At some point to evaluate that wrapper class? Otherwise nothing will happen. ken. On Wed, Jun 15, 2011 at 12:40 AM, Ashley Gould <ago...@ucop.edu> wrote: > Looking at the release notes for dashboard 1.1.1, I see that param > classes are not yet supported within dashboard's external node > classifier feature. A few months ago I saw a post suggesting the > following work around until there is support: > > class foo ($var="default") { > notify { $var: } > } > > Parametrized classes are new in Puppet 2.6. Support for parametrized > classes via ENC was introduced in 2.6.5. Support for parametrized > classes in dashboard is on the road map. > > Currently here's the way to declare parametrized classes in site.pp: > > node node01 { > class { foo: > var => "hello world!", > } > } > > To support parametrized class in dashboard, I write a wrapper class > (necessary until Dashboard fully supports parametrized classes): > class foo::wrapper { > class { foo: > var => $::foo_var, > } > } > > In this case assign class foo::wrapper to node1 in dashboard and > configure the parameter foo_var="hello world!". > > --- > > > I am tring to replicate this workaround without success. Has anyone > else gotten param classes working within dashboard ENC? > > > > > > -- > > -ashley > > Did you try poking at it with a stick? > > -- > 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. > > -- 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.