Ahah, I made a custom FACTER variable in my .bashrc file and that bash 
environment variable isn't run by cron.  So that's my problem... I'll need 
to research how to pass a custom FACTER variable to a cron script and have 
it be accessible at script run time.




On Thursday, April 19, 2012 3:43:16 PM UTC-4, thinkwell wrote:
>
> I only need to run puppet weekly, so I made this little shell script and 
> put in the the /etc/cron.weekly folder, but it's not running. If I run the 
> script manually, it works just fine. Why not from cron?
>
>
>
> #!/bin/bash
>
> #################################
> # Cron job managed by Puppet
> #################################
>
>
> # Randomize 15 minutes to avoid overloading server
> sleep $((RANDOM % 900))
> exec puppet agent --no-daemonize --onetime
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/puppet-users/-/pN4AXumKJeYJ.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to