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
}
}