Skip to content

Instantly share code, notes, and snippets.

@jtimberman
Created September 7, 2010 15:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jtimberman/568508 to your computer and use it in GitHub Desktop.
Save jtimberman/568508 to your computer and use it in GitHub Desktop.
example data bag to deploy a simple rails app with application cookbook
{
"group": "nogroup",
"server_roles": [
"my_app"
],
"repository": "git://github.com/jtimberman/my_app.git",
"force": {
"production": false
},
"migrate": {
"production": false
},
"snapshots_to_keep": {
"production": 1
},
"database_slave_role": [
"my_app_database_slave"
],
"packages": {
},
"databases": {
"production": {
"reconnect": "true",
"encoding": "utf8",
"username": "my_app",
"adapter": "mysql",
"database": "my_app_production",
"password": "awesome_password"
}
},
"mysql_repl_password": {
"production": "mysql_repl"
},
"memcached": {
"production": {
"namespace": "my_app_production"
}
},
"id": "my_app",
"type": {
"my_app": [
"rails",
"unicorn"
]
},
"database_master_role": [
"my_app_database_master"
],
"revision": {
"production": "9febfe814e4cb3b3193210a2d30c8561f7c24c75"
},
"memcached_role": [
"my_app_memcached"
],
"gems": {
"rails": "2.3.5",
"rspec": ""
},
"deploy_key": "",
"mysql_root_password": {
"production": "mysql_root"
},
"mysql_debian_password": {
"production": "mysql_debian"
},
"deploy_to": "/srv/my_app",
"owner": "nobody"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment