Skip to content

Instantly share code, notes, and snippets.

@teknogeek0
Created October 3, 2014 02:10
Show Gist options
  • Save teknogeek0/3faaabbb1207c6b3e1ad to your computer and use it in GitHub Desktop.
Save teknogeek0/3faaabbb1207c6b3e1ad to your computer and use it in GitHub Desktop.
broken chef
template node[:deploy][:current_path]"/wp-config.php" do
How do I fix the above? I want to combine the node attributes with the file at the end.
Thanks,
-munns
@ickymettle
Copy link

This should do the trick hopefully, you can use variable substitution in the string:

template "#{node[:deploy][:current_path]}/wp-config.php" do

@gwaldo
Copy link

gwaldo commented Oct 3, 2014

Agree w/ @ickymettle

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment