hashicorp / vagrant

Vagrant is a tool for building and distributing development environments.
https://www.vagrantup.com
Other
26.27k stars 4.43k forks source link

Error executing action `run` on resource 'bash #4333

Closed btopro closed 10 years ago

btopro commented 10 years ago

Don't know when this started happening but must be recent.

When I build my vagrantfile and it encounters a bash script making a call like:

bash "enable-audio-processing" do code <<-EOH ( yes | sudo apt-get update yes | sudo apt-get install libav-tools libavcodec-extra-53 ) EOH end

it no longer processes it; did the code command get dropped or is there something in parsing that it's not allowing this? At first I thought maybe the repo this was calling died but everything that uses this code <<-EOH format is no longer functioning in my vagrantfile.

file https://github.com/btopro/elmsln-vagrant/blob/master/Vagrantfile

Example line that craps this out (that never used to) https://github.com/btopro/elmsln-vagrant/blob/master/cookbooks/elmsln-cookbooks/elmsln-config-vagrant/recipes/vagrant-install.rb#L30

drpebcak commented 10 years ago

@btopro The line that is crapping out is in a cookbook - that has nothing to do with Vagrant. Vagrant has the ability to work with chef to do provisioning, but if you are having a problem with a cookbook that is an issue for Chef. Although I have to say, that cookbook is hideously misusing the bash resource.

sneal commented 10 years ago

@btopro I'd try the Chef IRC channel for help with this.

btopro commented 10 years ago

ha, thx for the direction and critique ;)