Found this out the hard way :) 
Thought I would share. 

For reasons I will not go into, I am running puppet agent by cron using the 
system crontab -- /etc/crontab and /etc/cron.d/* 

In those, you have to define your environment. Thru trial and error, I found 
what I believe is the minimum environment settings for my systems: 

These are Red Hat Enterprise 5 running Puppet 2.7.20 

The top of my /etc/cron.d/puppet.cron is : 

# /etc/cron.d/puppet.cron: Run Puppet Agent in a non-daemon mode 
SHELL=/bin/bash 
PATH=/bin:/usr/bin 
# minute hour day-of-month month day-of-week user-to-run-as TheCommand 

Of course I am using a template with <%= scope.function_fqdn_rand(["60"]) %> to 
get a "random" minute for each server. 

“Sometimes I think the surest sign that intelligent life exists elsewhere in 
the universe is that none of it has tried to contact us.” 
Bill Waterson (Calvin & Hobbes)

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to