Skip to content

Instantly share code, notes, and snippets.

@jnwng
Last active December 15, 2015 20:19
Show Gist options
  • Save jnwng/5317609 to your computer and use it in GitHub Desktop.
Save jnwng/5317609 to your computer and use it in GitHub Desktop.
Substitute file dashes for slashes (like they should be to override node attributes)
if default['postgresql']['version'] == "9.1"
default['postgresql']['main_dir'] = "foo"
else
default['postgresql']['main_dir'] = "bar"
normal['postgresql']['version'] = "9.1"
default['postgresql']['version'] = "9.2"
default['postgresql']['dir'] = "/etc/postgresql/#{node['postgresql']['version']}/main"
@jnwng
Copy link
Author

jnwng commented Apr 5, 2013

Some context, using chef-solo and chef 11. Just trying to hopefully clarify some of the attribute changes that were made

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