Skip to content

Instantly share code, notes, and snippets.

@woods
Last active August 29, 2015 13:56
Show Gist options
  • Save woods/8848314 to your computer and use it in GitHub Desktop.
Save woods/8848314 to your computer and use it in GitHub Desktop.
Example of conditional automount map in chef templates
/dlt/repo storage.
/dlt/users storage.
<% if node['application'] %>
/dlt/<%= node['application'] %> -local storage.dlt/ifs/data/<%= node['application'] %>
/dlt/<%= node['application'] %> -local storage.dlt/ifs/data/<%= node['application'] %>
<% end %>
{
"provider": "rackspace",
"environments": ["staging", "beta", "production"],
"passenger_ruby_version": "2.1.0",
"application": "dbhosting",
"run_list": [
"role[rails_server]",
"role[postgresql_server]",
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment