I'm using puppet-system module and the usage of the schedule
metaparameter is generating a large amount of warnings similar to the
one below (about 30 lines):
Warning: schedule is a metaparam; this value will inherit to all
contained resources in the system::sysconfig::puppet definition
In this case, I think the behavior makes sense and I would like to
exclude this from appearing since the noise is masking more useful
warnings. I don't believe there's an option to disable warnings and in
this case I really want to just ignore it for this one module and not
globally disable it everywhere. I haven't found a good solution than
monkey patching puppet type:
alias_method :orig_warn_if_metaparam, :warn_if_metaparam
def warn_if_metaparam(param, default)
if self.name =~ /^system/ and param=='schedule'
return
else
orig_warn_if_metaparam(param, default)
end
end
Seems like there are other messages in puppet that people find annoying
than helpful:
https://github.com/boxen/puppet-boxen/blob/master/lib/puppet/provider/package/hax.rb
This seems pretty hideous, and I'm wondering if there are more sensible
way to solve this.
Thanks,
Nan
--
You received this message because you are subscribed to the Google Groups "Puppet
Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-dev/53CD4FCF.1050201%40gmail.com.
For more options, visit https://groups.google.com/d/optout.