Puppet: System Administration Automated

Support

Ticket #1035 (new enhancement)

Opened 10 months ago

Last modified 7 months ago

"all" in tagmail.conf should allow exclusions

Reported by: kbrede Assigned to: community
Priority: normal Milestone: unplanned
Component: reports Version: 0.24.1
Severity: normal Keywords:
Cc: Triage Stage: Accepted
Attached Patches: None Complexity: Unknown

Description

For example the following line in tagmail.conf

all, !test_class: user@example.com

still reports test_class.

Change History

02/03/08 01:58:28 changed by kbrede

Here's the class I'm using that isn't excluded by "!trim_reports."

class trim_reports {
    tidy { "/var/lib/puppet/reports":
        recurse => true,
        backup  => false,
        type    => ctime,
        age     => '5d';
    }
}

I did some testing and found the class name (trim_reports) does not appear to be picked up as a tag.

  message: Tidying, older than 432000 seconds
  objectsource: true
  source: //Node[puppet.example.com]/trim_reports/Tidy[/var/lib/puppet/reports/puppet.example.com/200801290034.yaml]/ensure
  tags:

  - :tidy
  - :ensure

After adding "tag => trim_reports" to the class the tag was picked up and excluded from the email properly.

  message: Tidying, older than 432000 seconds
  objectsource: true
  source: //Node[puppet.example.com]/trim_reports/Tidy[/var/lib/puppet/reports/puppet.example.com/200801290038.yaml]/ensure
  tags:

  - :tidy
  - :trim_reports
  - :ensure

02/05/08 07:32:03 changed by luke

  • stage changed from Unreviewed to Accepted.
  • milestone set to unplanned.

04/24/08 07:11:38 changed by luke

  • type changed from defect to enhancement.
  • component changed from library to reports.
  • summary changed from "all" in tagmail.conf won't allow exclusions to "all" in tagmail.conf should allow exclusions.