--
You received this message because you are subscribed to the Google Groups "Example42 Puppet Modules" group.
To unsubscribe from this group and stop receiving emails from it, send an email to example42-puppet-m...@googlegroups.com.
To post to this group, send email to example42-pu...@googlegroups.com.
Visit this group at http://groups.google.com/group/example42-puppet-modules.
For more options, visit https://groups.google.com/d/optout.
Hi,the module should expose a parameter that allows oveeride of the default template, but it doesn’t, so a solution i could be to have a custom class than inherits the nagios::skel class and hs something ilike:File[‘nagios_templates.cfg’] {content => template('services/nagios/templates.cfg.erb’),}Another alternative is to modify directly the template in the nagios module as you wish, but that’s an habit I always discourage.A third alternative is to submit a PR that allow to provide custom templates for all the templates provided by nagios::skel
Alessandro Franceschi
site { 'Example42 Puppet modules’:
url => 'http://www.example42.com',
before => Service[‘puppet’],
}
On 25 Jun 2014, at 18:35, Fran Rodríguez <fran.c...@gmail.com> wrote:
Hi,Im trying to modify the template.cfg file on nagios with my own class, monitoring_nagios, im trying to modify attributes for the file nagios_template.cfg with something like this:class services::monitoring_nagios {include nagios::skelFile <| name == 'nagios_templates.cfg' |> {content => template('services/nagios/templates.cfg.erb'),}}This doesnt work, and i would like to know if i can do it with other way, like nagios class... ?¿Cheers.--
You received this message because you are subscribed to the Google Groups "Example42 Puppet Modules" group.
To unsubscribe from this group and stop receiving emails from it, send an email to example42-puppet-modules+unsub...@googlegroups.com.