Hi On Apr 21, 2011, at 10:58 AM, Oliver Schad wrote: > Hi all, > > does somebody know if default parameters in classes with parameters work? I > tried it with puppet v2.6.7 i.e.:
this is possible according to documentation: http://docs.puppetlabs.com/guides/parameterized_classes.html#using-parameterized-classes-1 > > class app::mysql( > $mysql_data_dir = '/data/mysql/data', > $mysql_log_dir = '/data/mysql/log', > $mysql_binlog_dir = '/data/mysql/binlog', > $mysql_expire_logs_days = '10', > $mysql_max_binlog_size = '100M', > $mysql_binlog_do_db = [] > ) { > ... > } > > Inside I use a template which shows me "undef" as value for the parameters > above. If I define the same parameters inside the class, it works. > How do you use your parameterized class? According to documentation you should use: class { 'app::mysql': } > Regards > Oli Regards, Martin -- 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.