java_app.json 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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. "wars": {
  23. "production": {
  24. "source": "source url of WAR file to deploy",
  25. "checksum": "SHA256 (or portion thereof) of the WAR file to deploy"
  26. }
  27. },
  28. "databases": {
  29. "production": {
  30. "max_active": "100",
  31. "max_idle": "30",
  32. "max_wait": "10000",
  33. "username": "db_user",
  34. "adapter": "mysql",
  35. "driver": "com.mysql.jdbc.Driver",
  36. "port": "3306",
  37. "password": "awesome_password",
  38. "database": "db_name_production"
  39. }
  40. },
  41. "mysql_root_password": {
  42. "production": "password for the root user in mysql"
  43. },
  44. "mysql_debian_password": {
  45. "production": "password for the debian-sys-maint user on ubuntu/debian"
  46. },
  47. "mysql_repl_password": {
  48. "production": "password for the 'repl' user for replication."
  49. },
  50. "snapshots_to_keep": {
  51. "production": "if using EBS, integer of the number of snapshots we're going to keep for this environment."
  52. },
  53. "deploy_to": "path to deploy, e.g. /srv/my_app",
  54. "owner": "owner for the application files when deployed",
  55. "group": "group for the application files when deployed",
  56. "packages": {
  57. "package_name": "specific packages required for installation at the OS level to run the app like libraries and specific version, e.g.",
  58. "curl": "7.19.5-1ubuntu2"
  59. }
  60. }