Uploaded image for project: 'Puppet'
  1. Puppet
  2. PUP-1265

Unquoted boolean true statement in nagios_service type event_handler_enabled => true, causes error.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Won't Fix
    • Affects Version/s: PUP 3.3.2, PUP 3.4.0
    • Fix Version/s: None
    • Component/s: Types and Providers
    • Labels:
    • Environment:

      Ubuntu LTS 12.04 64 bit.
      Puppet 3.4.1

    • Template:

      Description

      Unquoted boolean true statement in nagios_service type event_handler_enabled => true, causes error. 'true' in quotes evaluates properly.

      "Could not evaluate: private method `sub' called for true:TrueClass"

      i.e.
      @@nagios_service {"${::hostname}_puppet":
      host_name => $::hostname,
      service_description => "${::hostname}_puppet",
      check_command => "check_nrpe_1arg!check_puppet",
      servicegroups => "puppet",
      max_check_attempts => 5,
      check_interval => 30,
      retry_interval => 30,
      check_period => '24x7',
      notification_interval => 30,
      notification_period => "24x7",
      notification_options => 'n',
      contact_groups => 'admins',
      event_handler_enabled => true,
      event_handler => 'puppet_handler',
      target => "/etc/icinga/objects/puppet/service_${::hostname}_puppet.cfg",
      }

        Attachments

          Issue Links

            Activity

              jsd-sla-details-panel

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  dboudwin Derrick Boudwin
                  QA Contact:
                  Narmadha Perumal
                • Votes:
                  1 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: