Skip to content

Instantly share code, notes, and snippets.

@zzondlo
Forked from fnichol/dna.json
Created February 23, 2012 02:48
Show Gist options
  • Save zzondlo/1889426 to your computer and use it in GitHub Desktop.
Save zzondlo/1889426 to your computer and use it in GitHub Desktop.
Example webapp server configured with chef-solo dna.json
{
"webapp": {
"web_server": "apache2",
"vhosts": [
{ "id": "production",
"host_name": "main.example.com",
"non_ssl_server": true,
"www_redirect": false,
"ssl_server": true,
"ssl_www_redirect": false
},
{ "id": "staging",
"host_name": "stage.example.com",
"non_ssl_server": true,
"www_redirect": false,
"ssl_server": true,
"ssl_www_redirect": false
}
],
"apps": [
{ "id": "myapp_production",
"vhost": "production",
"profile": "rails",
"mount_path": ""
},
{ "id": "myapp_api_production",
"vhost": "production",
"profile": "rack",
"mount_path": "/api"
},
{ "id": "myapp_stating",
"vhost": "staging",
"profile": "rails",
"mount_path": ""
},
{ "id": "myapp_api_staging",
"vhost": "staging",
"profile": "rack",
"mount_path": "/api"
},
{ "id": "just_for_fun",
"vhost": "staging",
"profile": "static",
"mount_path": "/goats"
}
],
"users": {
"deploy": {
"deploy_keys": [
"ssh-dss ..."
]
}
}
},
"rvm": {
"default_ruby": "ruby-1.9.2-p180",
"rvmrc": {
"rvm_trust_rvmrcs_flag": 1,
"rvm_gemset_create_on_use_flag": 1
},
"version": "1.6.4",
"upgrade": "none"
},
"rvm_passenger": {
"rvm_ruby": "ruby-1.9.2-p180@passenger",
"version": "3.0.7"
},
"mysql": {
"server_root_password": "youthinkiusethisvalue"
},
"run_list": [
"role[server]",
"role[mysql_server]",
"recipe[sqlite::source]",
"recipe[webapp]"
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment