[chef]


Chronological Thread 
  • From: Nikhil Shah < >
  • To: " " < >
  • Subject: [chef]
  • Date: Thu, 31 Jul 2014 13:55:52 -0400

how have others accomplished this:

I just created a wrapper recipe that calls a script that runs a few custom stuff. Here is the cookbook:

cookbook_file "/tmp/ffmeg.sh" do

  source "ffmeg.sh"

  mode 0755

end

execute "install ffmeg" do

  command "sh /tmp/ffmeg.sh"

end


However, I keep getting:


Error executing action `run` on resource 'execute[install ffmeg]'

STDERR: sudo: sorry, you must have a tty to run sudo


How do I go around this if the server is unknown (EC2 instance)?


--
Nikhil Shah  System Administrator

THE ORCHARD Distribution Done Right
23 E 4th St Fl 3, New York, NY 10003

Follow us: The Daily Rind  Facebook  Twitter  YouTube  LinkedIn

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.



Archive powered by MHonArc 2.6.16.

§