Issue #2204 has been updated by James Turnbull. Target version deleted (unplanned)
---------------------------------------- Bug #2204: Exported Resources with keyword undef https://projects.puppetlabs.com/issues/2204 Author: Mathieu Bornoz Status: Duplicate Priority: Normal Assignee: Luke Kanies Category: nagios Target version: Affected Puppet version: 0.24.7 Keywords: exported ressources undef Branch: _undef_ keyword seems to be understood as a simple string when it is used in an exported ressource. I use puppet 0.24.7-1.2 on Debian/Lenny. Below, here is a simple example of definition that highlight this problem when I use it without argument _$contact_groups_: <pre> define nagios::service::distributed ($ensure=present, $service_description, $host_name=false, $contact_groups=false) { nagios_service {$name: ensure => $ensure, use => "generic-service-active", host_name => $host_name ? {false => $hostname, default => $host_name}, check_command => $name, tag => "nagios", service_description => $service_description, target => "$nagios_cfg_dir/services.cfg", require => File["$nagios_cfg_dir/services.cfg"], notify => Exec["nagios-reload"], } @@nagios_service {"@@$name on $hostname": ensure => $ensure, use => "generic-service-passive", host_name => $host_name ? {false => $hostname, default => $host_name}, tag => "nagios", service_description => $service_description, target => "$nagios_cfg_dir/services.cfg", require => File["$nagios_cfg_dir/services.cfg"], notify => Exec["nagios-reload"], contact_groups => $contact_groups ? {false => undef, default => $contact_groups}, } } </pre> -- You have received this notification because you have either subscribed to it, or are involved in it. To change your notification preferences, please click here: http://projects.puppetlabs.com/my/account -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/puppet-bugs?hl=en.
