I can't wrap my head around what is causing this error. After rebooting the
box I get this error. If I remove the $hostgroup parameter is errors at
$product_domain and down the line. What is going wrong here? I have facters
defined for nagios server.
I am testing this where nagios server (puppet client) is currently on the
puppetmaster. The error prevents me from updating my nagios configs.
facter | egrep "product_info|product_domain"
product_domain => nagios_server
product_info => nagios_server
puppet agent --test --verbose
err: Could not retrieve catalog from remote server: Error 400 on SERVER:
Invalid parameter product_domain at line 370 on node nagios_node.
warning: Not using cache on failed catalog
err: Could not retrieve catalog; skipping run
class nagios-server {
File <<| tag == 'nagios' |>>
define host($ip = $::fqdn, $short_alias = $::fqdn, $hostgroup =
$::product_info, $product_domain = $::product_domain) {
case $product_info {
/SomeProduct/: {
$nagios_cfgdir = "/usr/local/nagios/etc/objects/ctf/hosts"
@@file {
"$nagios_cfgdir/${name}.cfg":
ignore => ".svn",
ensure => present,
content => template( "nagios/host.cfg" ),
mode => 644,
owner => nagios,
group => nagios,
tag => 'nagios',
notify => Service[nagios],
}
}
Thanks,
David Garvey
--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.