Puppet: System Administration Automated

Support

Ticket #709 (closed defect: fixed)

Opened 1 year ago

Last modified 1 year ago

crontab type seems to detect the current environment lines wrong

Reported by: BarnacleBob Assigned to: luke
Priority: normal Milestone:
Component: library Version: 0.23.0
Severity: normal Keywords: cron environment
Cc: Triage Stage: Unreviewed
Attached Patches: None Complexity: Unknown

Description

notice: //node1/baseserverrole/webserverrole/webcron/rcron[ntpd_check]/Cron[ntpd_check]/environment: environment changed 'MAILTO=email@mydomain.com,MAILTO=email@mydomain.com,MAILTO=email@mydomain.com,MAILTO=email@mydomain.com,MAILTO=email@mydomain.com,MAILTO=email@mydomain.com,MAILTO=email@mydomain.com,MAILTO=email@mydomain.com,MAILTO=email@mydomain.com,MAILTO=email@mydomain.com' to 'MAILTO=email@mydomain.com'

The cron provider seems to think there are more MAILTO's then actually are. As listing the crontab shows:

 # Puppet Name: ntpd_check
 MAILTO=email@mydomain.com
 */5 * * * * /root/bin/ntpmon > /dev/null 2>&1

This happens everytime puppetd --test is run.

puppet config:

        rCron{  ntpd_check:
                        command=>"/root/bin/ntpmon > /dev/null 2>&1",
                        minute=>"*/5",
                        require=>RFile["/root/bin/ntpmon"]
                }
define rCron($command,$minute=absent,$hour=absent,$monthday=absent,$month=absent,$weekday=absent,$environment="MAILTO=email@mydomain.com"){
        cron{   $name:
                        command=>$command,
                        minute=>$minute,
                        hour=>$hour,
                        month=>$month,
                        monthday=>$monthday,
                        weekday=>$weekday,
                        environment=>$environment,
                        user=>root
                }
 }

Change History

07/18/07 18:28:42 changed by luke

  • status changed from new to closed.
  • resolution set to fixed.

I expect this was fixed in #705.