Skip to content

Instantly share code, notes, and snippets.

@tfitch
Last active August 29, 2015 14:05
Name/value pairs dynamic fail
# outputs the same as hardcoded-recipe.rb but does *not* work
iis_pool 'MyAppPool' do
node['config']['setting'].each do |setting, value|
"#{setting}" "#{value}"
end
action :config
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment