On Wed, Feb 29, 2012 at 2:37 AM, Smith <gilles6...@gmail.com> wrote: > Hello, > > Thanks for the info ! > But what I'm trying to do is to pass parameters from the dashboard to > the class. > > For example the following : > > class ntp ($ntp_servers) { > ... > }
You need either a wrapper class class ntp::wrapper { class { ntp: ntp_server => $::ntp_servers, } } or class ntp ( $ntp_servers = $::ntp_servers ) { ... } > Add this class to dashboard, in a group called "Global" and set in > this group a parameter key = ntp_servers with value = some.ntp.server This should work with the class above. 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+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.