I'm writing a recipe that compiles and installs an application from source but also changes configuration files in directories that get created when the application finishes installing. The recipe looks something like this:
bash "install inspircd from source" do ... code <<-EOH .... make && \ make install EOH end ... # Copy over the configuration template template "<config dir>/inspircd.conf" do source "inspircd.conf.erb" .... end
Based on the docs, "Resources are executed in the order they appear". But it doesn't seem that Chef is executing this in the order they appear because it tries to put the template file into a directory that only gets created after the make install finishes.
Is Chef executing the recipe in parallel? Is there a way to block execution until the bash command finishes? Any help would be appreciated. Thank you.