It seems to me that when you setup an environement for a cron it just
recreate the crontab at each run even if the cron has not changed. Seems
it does not recognize actual environement settings. I put 2 environement
and i got:
info: Writing cron tab for aqadmin
/linux/cron=puppetdcron/environment: environment changed '''' to
''PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin
MAILTO=cron@xxxx.com''
i Use this for the cron''s:
Cron {
environment =>
[''PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin'',"MAILTO=$cronemail"],
loglevel => info
}
Does anyone saw the same behavior ?
--
Cordialement,
Ghislain
_______________________________________________
Puppet-users mailing list
Puppet-users@madstop.com
https://mail.madstop.com/mailman/listinfo/puppet-users
Adnet Ghislain wrote:> It seems to me that when you setup an environement for a cron it just > recreate the crontab at each run even if the cron has not changed. Seems > it does not recognize actual environement settings. I put 2 environement > and i got: > > info: Writing cron tab for aqadmin > /linux/cron=puppetdcron/environment: environment changed '''' to > ''PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin > MAILTO=cron@xxxx.com'' > > i Use this for the cron''s: > > Cron { > environment => > [''PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin'',"MAILTO=$cronemail"], > > loglevel => info > } > > Does anyone saw the same behavior ?I''ve reproduced the behaviour and am trying to track it down now. -- Q: How many surrealists does it take to screw in a lightbulb? A: Two. One to hold the giraffe and the other to fill the bathtub with brightly colored machine tools. --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.com
Adnet Ghislain wrote:> It seems to me that when you setup an environement for a cron it just > recreate the crontab at each run even if the cron has not changed. Seems > it does not recognize actual environement settings. I put 2 environement > and i got: > > info: Writing cron tab for aqadmin > /linux/cron=puppetdcron/environment: environment changed '''' to > ''PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin > MAILTO=cron@xxxx.com'' > > i Use this for the cron''s: > > Cron { > environment => > [''PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin'',"MAILTO=$cronemail"], > > loglevel => info > } > > Does anyone saw the same behavior ?Okay, the problem is now fixed in trunk. -- Nonreciprocal Laws of Expectations: Negative expectations yield negative results. Positive expectations yield negative results. --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.com
thanks Luke ! :) Cordialement, Ghislain> Okay, the problem is now fixed in trunk. > >_______________________________________________ Puppet-users mailing list Puppet-users@madstop.com https://mail.madstop.com/mailman/listinfo/puppet-users