java_app.json 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. {
  2. "id": "my_app",
  3. "server_roles": [
  4. "application specific role(s), typically the name of the app, e.g., my_app",
  5. "my_app"
  6. ],
  7. "type": {
  8. "my_app": [
  9. "recipes in this application cookbook to run for this role",
  10. "java_webapp",
  11. "tomcat"
  12. ]
  13. },
  14. "database_slave_role": [
  15. "name of the role used by database slaves, typically named after the app, 'my_app_database_slave'",
  16. "my_app_database_slave"
  17. ],
  18. "database_master_role": [
  19. "name of the role used by database master, typically named after the app 'my_app_database_master'",
  20. "my_app_database_master"
  21. ],
  22. "repository": "git@github.com:company/my_app.git",
  23. "revision": {
  24. "production": "commit hash, branch or tag to deploy"
  25. },
  26. "force": {
  27. "production": "true or false w/o quotes to force deployment, see the rails.rb recipe"
  28. },
  29. "databases": {
  30. "production": {
  31. "max_active": "100",
  32. "max_idle": "30",
  33. "max_wait": "10000",
  34. "username": "db_user",
  35. "adapter": "mysql",
  36. "driver": "com.mysql.jdbc.Driver",
  37. "port": "3306",
  38. "password": "awesome_password",
  39. "database": "db_name_production"
  40. }
  41. },
  42. "mysql_root_password": {
  43. "production": "password for the root user in mysql"
  44. },
  45. "mysql_debian_password": {
  46. "production": "password for the debian-sys-maint user on ubuntu/debian"
  47. },
  48. "mysql_repl_password": {
  49. "production": "password for the 'repl' user for replication."
  50. },
  51. "snapshots_to_keep": {
  52. "production": "if using EBS, integer of the number of snapshots we're going to keep for this environment."
  53. },
  54. "deploy_to": "path to deploy, e.g. /srv/my_app",
  55. "owner": "owner for the application files when deployed",
  56. "group": "group for the application files when deployed",
  57. "packages": {
  58. "package_name": "specific packages required for installation at the OS level to run the app like libraries and specific version, e.g.",
  59. "curl": "7.19.5-1ubuntu2"
  60. }
  61. }