One last question re: the cron cookbook. How do you get it to run every 5 minutes?
cron_d 'plugin_script' do
minute 5
hour
command "/root/plugin.sh"
user "root"
^^ Would run every hour at 1:05, 2:05
cron_d 'plugin_script' do
minute /5
hour
command "/root/plugin.sh"
user "root"
^^ Doesn't like the regex syntax
Nikhil Shah / System Administrator
nshah@theorchard.com
The Orchard® / www.theorchard.com
t (+1) 212.308.5648 / f (+1) 212.201.9203
23 E. 4th St., 3rd Fl / New York, NY 10003
The Daily Rind™ / www.dailyrindblog.com
Facebook / @orchtweets
Privileged And Confidential Communication.
This electronic transmission, and any documents attached hereto, (a) are protected by the Electronic Communications Privacy Act (18 USC §§ 2510-2521), (b) may contain confidential and/or legally privileged information, and (c) are for the sole use of the intended recipient named above. If you have received this electronic message in error, please notify the sender and delete the electronic message. Any disclosure, copying, distribution, or use of the contents of the information received in error is strictly prohibited.
On Sep 4, 2013, at 3:24 PM, Mike miketheman@gmail.com wrote:
Nope, as Morgan pointed out, look at the behavior of the cookbook_file resource and understand where the resource will look for the file (within the files/ subdir in your cookbook).
-M
On Wed, Sep 4, 2013 at 3:20 PM, Nikhil Shah nshah@theorchard.com wrote:
Is the below section actually taking the script from your /tmp folder and uploading it to the server in the /tmp directory?
Nikhil Shah / System Administrator
nshah@theorchard.com
The Orchard® / www.theorchard.com
t (+1) 212.308.5648 / f (+1) 212.201.9203
23 E. 4th St., 3rd Fl / New York, NY 10003
The Daily Rind™ / www.dailyrindblog.com
Facebook / @orchtweets
Privileged And Confidential Communication.
This electronic transmission, and any documents attached hereto, (a) are protected by the Electronic Communications Privacy Act (18 USC §§ 2510-2521), (b) may contain confidential and/or legally privileged information, and (c) are for the sole use of the intended recipient named above. If you have received this electronic message in error, please notify the sender and delete the electronic message. Any disclosure, copying, distribution, or use of the contents of the information received in error is strictly prohibited.
On Sep 4, 2013, at 3:13 PM, Mike miketheman@gmail.com wrote:
cookbook_file '/tmp/my_special_script.sh' do
mode 00755
end