bosh-gen 0.24.0 → 0.90.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (124) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -362
  3. data/bosh-gen.gemspec +2 -1
  4. data/lib/bosh/gen/cli.rb +0 -8
  5. data/lib/bosh/gen/generators/errand_generator/templates/jobs/%job_name%/templates/bin/run.tt +2 -1
  6. data/lib/bosh/gen/generators/job_generator.rb +0 -5
  7. data/lib/bosh/gen/generators/job_generator/templates/jobs/%job_name%_simple/monit.tt +2 -2
  8. data/lib/bosh/gen/generators/job_generator/templates/jobs/%job_name%_simple/spec.tt +24 -0
  9. data/lib/bosh/gen/generators/job_generator/templates/jobs/%job_name%_simple/templates/bin/ctl.tt +1 -1
  10. data/lib/bosh/gen/generators/job_generator/templates/jobs/%job_name%_simple/templates/helpers/ctl_setup.sh +0 -26
  11. data/lib/bosh/gen/generators/new_release_generator.rb +7 -8
  12. data/lib/bosh/gen/generators/new_release_generator/templates/README.md.tt +13 -63
  13. data/lib/bosh/gen/generators/new_release_generator/templates/jobs/{just_install_packages → %project_name%}/monit.tt +0 -0
  14. data/lib/bosh/gen/generators/new_release_generator/templates/jobs/{just_install_packages → %project_name%}/spec.tt +1 -1
  15. data/lib/bosh/gen/generators/new_release_generator/templates/jobs/{just_install_packages → %project_name%}/templates/ignoreme +0 -0
  16. data/lib/bosh/gen/generators/new_release_generator/templates/manifests/%project_name%.yml.tt +38 -0
  17. data/lib/bosh/gen/generators/new_release_generator/templates/manifests/operators/dev.yml.tt +6 -0
  18. data/lib/bosh/gen/version.rb +1 -1
  19. metadata +28 -191
  20. data/.travis.yml +0 -13
  21. data/lib/bosh/cli/commands/share_release.rb +0 -80
  22. data/lib/bosh/gen/generators/bosh_cli_plugin_generator.rb +0 -33
  23. data/lib/bosh/gen/generators/bosh_cli_plugin_generator/templates/lib/bosh/cli/commands/%underscore_plugin_name%.rb.tt +0 -9
  24. data/lib/bosh/gen/generators/job_generator/templates/jobs/%job_name%_nginx_rack/monit.tt +0 -13
  25. data/lib/bosh/gen/generators/job_generator/templates/jobs/%job_name%_nginx_rack/templates/bin/%job_name%_rack_ctl.tt +0 -59
  26. data/lib/bosh/gen/generators/job_generator/templates/jobs/%job_name%_nginx_rack/templates/bin/ctl_db_utils.sh.erb +0 -54
  27. data/lib/bosh/gen/generators/job_generator/templates/jobs/%job_name%_nginx_rack/templates/bin/ctl_nginx.sh.erb +0 -17
  28. data/lib/bosh/gen/generators/job_generator/templates/jobs/%job_name%_nginx_rack/templates/bin/ctl_redis_utils.sh.erb +0 -18
  29. data/lib/bosh/gen/generators/job_generator/templates/jobs/%job_name%_nginx_rack/templates/bin/ctl_setup.sh.erb +0 -48
  30. data/lib/bosh/gen/generators/job_generator/templates/jobs/%job_name%_nginx_rack/templates/bin/ctl_start.sh.erb +0 -57
  31. data/lib/bosh/gen/generators/job_generator/templates/jobs/%job_name%_nginx_rack/templates/bin/ctl_utils.sh +0 -147
  32. data/lib/bosh/gen/generators/job_generator/templates/jobs/%job_name%_nginx_rack/templates/bin/monit_debugger +0 -13
  33. data/lib/bosh/gen/generators/job_generator/templates/jobs/%job_name%_nginx_rack/templates/bin/nginx_ctl.tt +0 -40
  34. data/lib/bosh/gen/generators/job_generator/templates/jobs/%job_name%_nginx_rack/templates/bin/rails_ctl_setup.sh.erb +0 -39
  35. data/lib/bosh/gen/generators/job_generator/templates/jobs/%job_name%_nginx_rack/templates/config/database.yml.erb +0 -17
  36. data/lib/bosh/gen/generators/job_generator/templates/jobs/%job_name%_nginx_rack/templates/config/mime.types +0 -73
  37. data/lib/bosh/gen/generators/job_generator/templates/jobs/%job_name%_nginx_rack/templates/config/nginx.conf.erb +0 -150
  38. data/lib/bosh/gen/generators/job_generator/templates/jobs/%job_name%_nginx_rack/templates/config/nginx_proxy.conf +0 -11
  39. data/lib/bosh/gen/generators/job_generator/templates/jobs/%job_name%_nginx_rack/templates/config/redis.yml.erb +0 -6
  40. data/lib/bosh/gen/generators/job_generator/templates/jobs/%job_name%_simple/templates/data/properties.sh.erb +0 -10
  41. data/lib/bosh/gen/generators/new_release_generator/templates/templates/deployment.yml.tt +0 -31
  42. data/lib/bosh/gen/generators/new_release_generator/templates/templates/infrastructure-aws-ec2.yml.tt +0 -33
  43. data/lib/bosh/gen/generators/new_release_generator/templates/templates/infrastructure-warden.yml.tt +0 -37
  44. data/lib/bosh/gen/generators/new_release_generator/templates/templates/jobs.yml.tt +0 -21
  45. data/lib/bosh/gen/generators/new_release_generator/templates/templates/make_manifest.tt +0 -83
  46. data/lib/bosh/gen/generators/new_release_generator/templates/templates/stub.yml.tt +0 -14
  47. data/lib/bosh/gen/models.rb +0 -9
  48. data/lib/bosh/gen/models/bosh_config.rb +0 -15
  49. data/lib/bosh/gen/models/deployment_manifest.rb +0 -107
  50. data/lib/bosh/gen/models/release_detection.rb +0 -35
  51. data/lib/bosh/gen/utils/file_with_progress_bar.rb +0 -62
  52. data/spec/fixtures/bosh_config/multiple_boshes.yml +0 -34
  53. data/spec/fixtures/deployment_manifests/2_jobs_1_ip_8196_disk.yml +0 -67
  54. data/spec/fixtures/deployment_manifests/2_jobs_1_ip_8196_disk_with_numeric.yml +0 -67
  55. data/spec/fixtures/deployment_manifests/2_jobs_2_ips_no_disk.yml +0 -67
  56. data/spec/fixtures/releases/bosh-sample-release/.gitignore +0 -9
  57. data/spec/fixtures/releases/bosh-sample-release/LICENSE +0 -8094
  58. data/spec/fixtures/releases/bosh-sample-release/NOTICE +0 -12
  59. data/spec/fixtures/releases/bosh-sample-release/README +0 -53
  60. data/spec/fixtures/releases/bosh-sample-release/config/final.yml +0 -9
  61. data/spec/fixtures/releases/bosh-sample-release/jobs/mysql/monit +0 -5
  62. data/spec/fixtures/releases/bosh-sample-release/jobs/mysql/spec +0 -17
  63. data/spec/fixtures/releases/bosh-sample-release/jobs/mysql/templates/my.bootstrap.erb +0 -6
  64. data/spec/fixtures/releases/bosh-sample-release/jobs/mysql/templates/my.cnf.erb +0 -46
  65. data/spec/fixtures/releases/bosh-sample-release/jobs/mysql/templates/my.shutdown.erb +0 -5
  66. data/spec/fixtures/releases/bosh-sample-release/jobs/mysql/templates/mysql_ctl.erb +0 -56
  67. data/spec/fixtures/releases/bosh-sample-release/jobs/nginx/monit +0 -5
  68. data/spec/fixtures/releases/bosh-sample-release/jobs/nginx/spec +0 -10
  69. data/spec/fixtures/releases/bosh-sample-release/jobs/nginx/templates/mime.types +0 -73
  70. data/spec/fixtures/releases/bosh-sample-release/jobs/nginx/templates/nginx.conf.erb +0 -65
  71. data/spec/fixtures/releases/bosh-sample-release/jobs/nginx/templates/nginx_ctl +0 -28
  72. data/spec/fixtures/releases/bosh-sample-release/jobs/wordpress/monit +0 -5
  73. data/spec/fixtures/releases/bosh-sample-release/jobs/wordpress/spec +0 -12
  74. data/spec/fixtures/releases/bosh-sample-release/jobs/wordpress/templates/httpd.conf.erb +0 -422
  75. data/spec/fixtures/releases/bosh-sample-release/jobs/wordpress/templates/php.ini.erb +0 -1918
  76. data/spec/fixtures/releases/bosh-sample-release/jobs/wordpress/templates/wordpress_ctl +0 -39
  77. data/spec/fixtures/releases/bosh-sample-release/jobs/wordpress/templates/wp-config.php.erb +0 -90
  78. data/spec/fixtures/releases/bosh-sample-release/packages/apache2/packaging +0 -15
  79. data/spec/fixtures/releases/bosh-sample-release/packages/apache2/spec +0 -5
  80. data/spec/fixtures/releases/bosh-sample-release/packages/mysql/packaging +0 -14
  81. data/spec/fixtures/releases/bosh-sample-release/packages/mysql/spec +0 -5
  82. data/spec/fixtures/releases/bosh-sample-release/packages/mysqlclient/packaging +0 -12
  83. data/spec/fixtures/releases/bosh-sample-release/packages/mysqlclient/spec +0 -4
  84. data/spec/fixtures/releases/bosh-sample-release/packages/nginx/packaging +0 -23
  85. data/spec/fixtures/releases/bosh-sample-release/packages/nginx/spec +0 -6
  86. data/spec/fixtures/releases/bosh-sample-release/packages/php5/packaging +0 -24
  87. data/spec/fixtures/releases/bosh-sample-release/packages/php5/spec +0 -7
  88. data/spec/fixtures/releases/bosh-sample-release/packages/wordpress/packaging +0 -14
  89. data/spec/fixtures/releases/bosh-sample-release/packages/wordpress/spec +0 -5
  90. data/spec/fixtures/releases/s3test-boshrelease/.gitignore +0 -18
  91. data/spec/fixtures/releases/s3test-boshrelease/README.md +0 -51
  92. data/spec/fixtures/releases/s3test-boshrelease/Rakefile +0 -15
  93. data/spec/fixtures/releases/s3test-boshrelease/config/blobs.yml +0 -1
  94. data/spec/fixtures/releases/s3test-boshrelease/config/final.yml +0 -5
  95. data/spec/fixtures/releases/s3test-boshrelease/jobs/.gitkeep +0 -0
  96. data/spec/fixtures/releases/s3test-boshrelease/jobs/s3test/monit +0 -5
  97. data/spec/fixtures/releases/s3test-boshrelease/jobs/s3test/spec +0 -13
  98. data/spec/fixtures/releases/s3test-boshrelease/jobs/s3test/templates/bin/monit_debugger +0 -13
  99. data/spec/fixtures/releases/s3test-boshrelease/jobs/s3test/templates/bin/s3test_ctl +0 -36
  100. data/spec/fixtures/releases/s3test-boshrelease/jobs/s3test/templates/config/.gitkeep +0 -0
  101. data/spec/fixtures/releases/s3test-boshrelease/jobs/s3test/templates/config/s3test.conf.erb +0 -5
  102. data/spec/fixtures/releases/s3test-boshrelease/jobs/s3test/templates/data/properties.sh.erb +0 -10
  103. data/spec/fixtures/releases/s3test-boshrelease/jobs/s3test/templates/helpers/ctl_setup.sh +0 -81
  104. data/spec/fixtures/releases/s3test-boshrelease/jobs/s3test/templates/helpers/ctl_utils.sh +0 -156
  105. data/spec/fixtures/releases/s3test-boshrelease/packages/.gitkeep +0 -0
  106. data/spec/fixtures/releases/s3test-boshrelease/src/.gitkeep +0 -0
  107. data/spec/fixtures/releases/s3test-boshrelease/templates/deployment.yml +0 -35
  108. data/spec/fixtures/releases/s3test-boshrelease/templates/infrastructure-aws-ec2.yml +0 -40
  109. data/spec/fixtures/releases/s3test-boshrelease/templates/infrastructure-warden.yml +0 -107
  110. data/spec/fixtures/releases/s3test-boshrelease/templates/jobs.yml +0 -34
  111. data/spec/fixtures/releases/s3test-boshrelease/templates/make_manifest +0 -54
  112. data/spec/fixtures/releases/s3test-boshrelease/templates/stub.yml +0 -13
  113. data/spec/fixtures/releases/some_dev_releases/config/dev.yml +0 -3
  114. data/spec/fixtures/releases/some_dev_releases/dev_releases/index.yml +0 -6
  115. data/spec/fixtures/releases/some_dev_releases/dev_releases/myrelease-1.yml +0 -11
  116. data/spec/fixtures/releases/some_dev_releases/dev_releases/myrelease-10.yml +0 -13
  117. data/spec/fixtures/releases/some_dev_releases/dev_releases/myrelease-2.yml +0 -13
  118. data/spec/generators/job_generator_spec.rb +0 -56
  119. data/spec/generators/new_release_generator_spec.rb +0 -93
  120. data/spec/models/bosh_config_spec.rb +0 -11
  121. data/spec/models/deployment_manifest_spec.rb +0 -40
  122. data/spec/models/release_detection_spec.rb +0 -23
  123. data/spec/spec_helper.rb +0 -30
  124. data/spec/support/generator_spec_helper.rb +0 -155
@@ -1,13 +0,0 @@
1
- #!/bin/sh
2
- # USAGE monit_debugger <label> command to run
3
- mkdir -p /var/vcap/sys/log/monit
4
- {
5
- echo "MONIT-DEBUG date"
6
- date
7
- echo "MONIT-DEBUG env"
8
- env
9
- echo "MONIT-DEBUG $@"
10
- $2 $3 $4 $5 $6 $7
11
- R=$?
12
- echo "MONIT-DEBUG exit code $R"
13
- } >/var/vcap/sys/log/monit/monit_debugger.$1.log 2>&1
@@ -1,40 +0,0 @@
1
- #!/bin/bash
2
-
3
- set -e # exit immediately if a simple command exits with a non-zero status
4
- set -u # report the usage of uninitialized variables
5
-
6
- # Setup env vars and folders for the webapp_ctl script
7
- source /var/vcap/jobs/<%= job_name %>/bin/ctl_setup.sh
8
-
9
- # Override ctl_setup.sh defaults:
10
- redirect_output 'nginx'
11
- PIDFILE=$RUN_DIR/nginx.pid
12
-
13
- case $1 in
14
-
15
- start)
16
- pid_guard $PIDFILE "nginx for $JOB_NAME"
17
-
18
- echo $$ > $PIDFILE
19
-
20
- for dir in $UPLOADS_DIR $STAGED_UPLOADS_DIR
21
- do
22
- mkdir -p ${dir}
23
- done
24
-
25
- exec /var/vcap/packages/nginx_next/sbin/nginx \
26
- -c $JOB_DIR/config/nginx.conf \
27
- >>$LOG_DIR/nginx.log 2>&1
28
- ;;
29
-
30
- stop)
31
- echo "Stopping nginx"
32
- kill_and_wait $PIDFILE
33
- ;;
34
-
35
- *)
36
- echo "Usage: nginx_ctl {start|stop}"
37
-
38
- ;;
39
-
40
- esac
@@ -1,39 +0,0 @@
1
- #!/usr/bin/env bash
2
-
3
- # Sets up ctl script for a Rails/Rack application
4
- # * sets up $RAILS_ENV, $RACK_ENV
5
- # * specifically sets $BUNDLE_GEMFILE, if $WEBAPP_DIR set
6
-
7
- # Default properties:
8
- #
9
- # properties:
10
- # webapp:
11
- # migrate: false
12
- # migration_command: rake db:migrate
13
-
14
- migrate='<%= (properties.webapp && properties.webapp.migrate) || "false" %>'
15
- migration_command='<%= (properties.webapp && properties.webapp.migration_command) || "rake db:migrate" %>'
16
-
17
- export RAILS_ENV=production
18
- export RACK_ENV=${RAILS_ENV}
19
- if [[ "$WEBAPP_DIR" != '' ]]
20
- then
21
- export BUNDLE_GEMFILE=$WEBAPP_DIR/Gemfile
22
- fi
23
-
24
- function run_migrations() {
25
- if [[ "${migrate}" = "true" || "${migrate}" = "1" || "${migrate}" = "yes" ]]
26
- then
27
- wait_for_database
28
-
29
- echo "Running migrations"
30
- bundle exec ${migration_command} \
31
- >>$LOG_DIR/db_migrate.log 2>&1
32
- if [ $? != 0 ]; then
33
- echo "Migrations failed"
34
- exit 1
35
- fi
36
- else
37
- echo "Skipping migrations"
38
- fi
39
- }
@@ -1,17 +0,0 @@
1
- <% if properties.postgres %>
2
- production:
3
- adapter: postgresql
4
- encoding: unicode
5
- database: '<%= properties.postgres.database %>'
6
- host: '<%= properties.postgres.host %>'
7
- port: '<%= properties.postgres.port || 5432 %>'
8
- username: '<%= properties.postgres.user %>'
9
- password: '<%= properties.postgres.password %>'
10
- pool: 5
11
- <% else %>
12
- production:
13
- adapter: sqlite3
14
- database: db/production.sqlite3
15
- pool: 5
16
- timeout: 5000
17
- <% end %>
@@ -1,73 +0,0 @@
1
- types {
2
- text/html html htm shtml;
3
- text/css css;
4
- text/xml xml;
5
- image/gif gif;
6
- image/jpeg jpeg jpg;
7
- application/x-javascript js;
8
- application/atom+xml atom;
9
- application/rss+xml rss;
10
-
11
- text/mathml mml;
12
- text/plain txt;
13
- text/vnd.sun.j2me.app-descriptor jad;
14
- text/vnd.wap.wml wml;
15
- text/x-component htc;
16
-
17
- image/png png;
18
- image/tiff tif tiff;
19
- image/vnd.wap.wbmp wbmp;
20
- image/x-icon ico;
21
- image/x-jng jng;
22
- image/x-ms-bmp bmp;
23
- image/svg+xml svg;
24
-
25
- application/java-archive jar war ear;
26
- application/mac-binhex40 hqx;
27
- application/msword doc;
28
- application/pdf pdf;
29
- application/postscript ps eps ai;
30
- application/rtf rtf;
31
- application/vnd.ms-excel xls;
32
- application/vnd.ms-powerpoint ppt;
33
- application/vnd.wap.wmlc wmlc;
34
- application/vnd.wap.xhtml+xml xhtml;
35
- application/vnd.google-earth.kml+xml kml;
36
- application/vnd.google-earth.kmz kmz;
37
- application/x-7z-compressed 7z;
38
- application/x-cocoa cco;
39
- application/x-java-archive-diff jardiff;
40
- application/x-java-jnlp-file jnlp;
41
- application/x-makeself run;
42
- application/x-perl pl pm;
43
- application/x-pilot prc pdb;
44
- application/x-rar-compressed rar;
45
- application/x-redhat-package-manager rpm;
46
- application/x-sea sea;
47
- application/x-shockwave-flash swf;
48
- application/x-stuffit sit;
49
- application/x-tcl tcl tk;
50
- application/x-x509-ca-cert der pem crt;
51
- application/x-xpinstall xpi;
52
- application/zip zip;
53
-
54
- application/octet-stream bin exe dll;
55
- application/octet-stream deb;
56
- application/octet-stream dmg;
57
- application/octet-stream eot;
58
- application/octet-stream iso img;
59
- application/octet-stream msi msp msm;
60
-
61
- audio/midi mid midi kar;
62
- audio/mpeg mp3;
63
- audio/x-realaudio ra;
64
-
65
- video/3gpp 3gpp 3gp;
66
- video/mpeg mpeg mpg;
67
- video/quicktime mov;
68
- video/x-flv flv;
69
- video/x-mng mng;
70
- video/x-ms-asf asx asf;
71
- video/x-ms-wmv wmv;
72
- video/x-msvideo avi;
73
- }
@@ -1,150 +0,0 @@
1
- #deployment webapp nginx.conf
2
- <% require 'ostruct' %>
3
- <% properties.webapp ||= OpenStruct.new %>
4
- <% properties.webapp.nginx ||= OpenStruct.new %>
5
- <% package_name = properties.webapp.package || 'rackapp' %>
6
- <% webapp_port_start = 5000 %>
7
-
8
- user vcap vcap;
9
- worker_processes <%= properties.webapp.nginx.worker_processes || 1 %>;
10
- pid /var/vcap/sys/run/webapp/nginx.pid;
11
-
12
- events {
13
- worker_connections 8192;
14
- use epoll;
15
- }
16
-
17
-
18
- http {
19
- include mime.types;
20
- default_type text/html;
21
- server_tokens off;
22
-
23
- log_format main '$host - [$time_local] '
24
- '"$request" $status $bytes_sent '
25
- '"$http_referer" "$http_user_agent" '
26
- '$remote_addr response_time:$upstream_response_time';
27
-
28
- sendfile on; #enable use of sendfile()
29
- tcp_nopush on;
30
- tcp_nodelay on; #disable nagel's algorithm
31
-
32
- server_names_hash_bucket_size 128;
33
- if_modified_since before;
34
-
35
- gzip on;
36
- gzip_http_version 1.0;
37
- gzip_comp_level 2;
38
- gzip_proxied any;
39
- gzip_buffers 16 8k;
40
- gzip_types application/json text/plain text/css application/x-javascript text/xml application/xml application/xml+rss text/javascript;
41
-
42
- upstream <%= package_name %>_upstream {
43
- server 127.0.0.1:<%= webapp_port_start %>;
44
- }
45
-
46
- server {
47
- #
48
- # The default port to listen on.
49
- #
50
- # Note that this may be also specified as IP:Port combinations.
51
- #
52
- # By default Nginx will listen for traffic on the specified port for all IP
53
- # addresses assigned to the host.
54
- #
55
- listen <%= properties.webapp.nginx.port || 80 %>;
56
-
57
- #
58
- # Server Names
59
- #
60
- # This is the list of IP's and/or domain names with any wildcards or
61
- # subdomains. The special value '_' is used to match all domains and IPs and
62
- # generally denotes the default server for the entire Nginx process.
63
- #
64
- # Note that if you specify any domains with wild cards, the very first domain
65
- # listed must be without a wild card. For example:
66
- #
67
- # server_name www.mydomain.org *.mydomain.org;
68
- #
69
- # It is good practice to include wildcard subdomains so that Nginx will not
70
- # require a restart when new services are added for an application.
71
- #
72
- server_name <%= properties.webapp.nginx.server_name || '_' %>;
73
- server_name_in_redirect off;
74
-
75
- #
76
- # This assigns the maximum accepted body size of client request. It is placed
77
- # here as a precaution to limit against certain kinds of attacks. Be aware that
78
- # it is here in case the application accepts large file uploads. In such a case
79
- # this value will need to be adjusted.
80
- #
81
- client_max_body_size 256M;
82
-
83
- #
84
- # The application root which is inherited for all location blocks below.
85
- #
86
- root /var/vcap/packages/<%= package_name %>/public;
87
-
88
- #
89
- # Logging
90
- #
91
- # Log files are stored within the /var/vcap/sys/log/webapp/ directory.
92
- #
93
- access_log /var/vcap/sys/log/webapp/<%= package_name %>.access.log main;
94
- error_log /var/vcap/sys/log/webapp/<%= package_name %>.error.log notice;
95
-
96
- #
97
- # Expire header on assets. For more information on the reasoning behind
98
- # this please browse http://developer.yahoo.com/performance/rules.html#expires
99
- #
100
- # set Expire header on assets: see http://developer.yahoo.com/performance/rules.html#expires
101
- location ~ ^/(images|assets|javascripts|stylesheets)/ {
102
- try_files $uri $uri/index.html /last_assets/$uri /last_assets/$uri.html @app_<%= package_name %>;
103
- expires 10y;
104
- }
105
-
106
- # For Puma, simply proxy
107
- location @app_<%= package_name %> {
108
- include /var/vcap/jobs/webapp/config/nginx_proxy.conf;
109
- proxy_pass http://<%= package_name %>_upstream;
110
- }
111
-
112
- #
113
- # HTTP Error handling.
114
- #
115
- # 404 - Resource Not found.
116
- error_page 404 /404.html;
117
- # 50X - Application Error(s)
118
- error_page 500 502 504 /500.html;
119
- # 503 - System Maintenance
120
- error_page 503 @503;
121
- recursive_error_pages on;
122
- location @503 {
123
- error_page 405 = /system/maintenance.html;
124
-
125
- # Serve static assets if found.
126
- if (-f $request_filename) {
127
- break;
128
- }
129
-
130
- rewrite ^(.*)$ /system/maintenance.html break;
131
- }
132
- error_page 503 /system/maintenance.html;
133
-
134
- #
135
- # The default location will process the request as follows:
136
- #
137
- # 1. If a system maintenance page is in place, serve it.
138
- # 2. If the request uri matches a resource on disk, serve it.
139
- # 3. If the request uri/index.html matches a cache file on disk, serve it.
140
- # 4. If the request uri.html is cached on disk, serve it.
141
- # 5. Failing any caching or system maintenance, pass the request to the
142
- # application.
143
- #
144
- location / {
145
- if (-f $document_root/system/maintenance.html) { return 503; }
146
- try_files $uri $uri/index.html $uri.html @app_<%= package_name %>;
147
- }
148
-
149
- }
150
- }
@@ -1,11 +0,0 @@
1
- index index.html index.htm;
2
-
3
- # needed to forward user's IP address to rails
4
- proxy_set_header X-Real-IP $remote_addr;
5
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
6
- proxy_set_header Host $http_host;
7
- # request for $start_time patch to nginx is https://cloudfoundry.atlassian.net/browse/CF-88
8
- # proxy_set_header X-Queue-Start 't=$start_time';
9
-
10
- proxy_redirect off;
11
- proxy_max_temp_file_size 0;
@@ -1,6 +0,0 @@
1
- ---
2
- host: '<%= (properties.redis && properties.redis.host) || 'localhost' %>'
3
- port: <%= (properties.redis && properties.redis.port) || 6379 %>
4
- <%= (properties.webapp && properties.webapp.framework_env) || 'production' %>:
5
- host: '<%= (properties.redis && properties.redis.host) || 'localhost' %>'
6
- port: <%= (properties.redis && properties.redis.port) || 6379 %>
@@ -1,10 +0,0 @@
1
- #!/usr/bin/env bash
2
-
3
- # job template binding variables
4
-
5
- # job name & index of this VM within cluster
6
- # e.g. JOB_NAME=redis, JOB_INDEX=0
7
- export NAME='<%= name %>'
8
- export JOB_INDEX=<%= index %>
9
- # full job name, like redis/0 or webapp/3
10
- export JOB_FULL="$NAME/$JOB_INDEX"
@@ -1,31 +0,0 @@
1
- ---
2
- meta:
3
- environment: (( param "Please specify your environment" ))
4
- stemcell: (( param "Please configure a BOSH stemcell to use for your deployment" ))
5
-
6
- name: (( grab meta.environment ))
7
-
8
- director_uuid: (( param "Please set the UUID of your BOSH Directory" ))
9
-
10
- releases: (( param "Please list the BOSH releases to use for this deployment" ))
11
-
12
- instance_groups: (( param "Please configure the constituent instance groups for this Deployment" ))
13
-
14
- compilation:
15
- workers: 6
16
- network: <%= project_name_underscored %>1
17
- reuse_compilation_vms: true
18
- cloud_properties: (( param "Please configure the Cloud Properties for compilation VMs" ))
19
-
20
- update:
21
- canaries: 1
22
- max_in_flight: 1
23
- canary_watch_time: 30000-60000
24
- update_watch_time: 5000-60000
25
- serial: false
26
-
27
- resource_pools:
28
- - name: small_z1
29
- network: <%= project_name_underscored %>1
30
- stemcell: (( grab meta.stemcell ))
31
- cloud_properties: (( param "Please configure the Cloud Properties for your Resource Pool" ))
@@ -1,33 +0,0 @@
1
- ---
2
- meta:
3
- dns_root: (( param "Please configure your root DNS name" ))
4
- security_groups: (( param "Please configure your AWS Security Groups" ))
5
- persistent_disk: 4096
6
-
7
- stemcell:
8
- name: bosh-aws-xen-hvm-ubuntu-trusty-go_agent
9
- version: latest
10
-
11
- instance_groups:
12
- - name: just_install_packages
13
- networks:
14
- - name: <%= project_name_underscored %>1
15
- persistent_disk: (( grab meta.persistent_disk ))
16
-
17
- compilation:
18
- cloud_properties:
19
- instance_type: m3.medium
20
-
21
- resource_pools:
22
- - name: small_z1
23
- cloud_properties:
24
- instance_type: m3.medium
25
-
26
- networks:
27
- - name: floating
28
- type: vip
29
- cloud_properties: {}
30
- - name: <%= project_name_underscored %>1
31
- type: dynamic
32
- cloud_properties:
33
- security_groups: (( grab meta.security_groups ))
@@ -1,37 +0,0 @@
1
- ---
2
- meta:
3
- environment: <%= project_name_hyphenated %>-warden
4
-
5
- stemcell:
6
- name: bosh-warden-boshlite-ubuntu-trusty-go_agent
7
- version: latest
8
-
9
- update:
10
- canaries: 1
11
- max_in_flight: 50
12
- canary_watch_time: 1000-30000
13
- update_watch_time: 1000-30000
14
-
15
- instance_groups:
16
- - name: just_install_packages
17
- networks:
18
- - name: <%= project_name_underscored %>1
19
-
20
- compilation:
21
- cloud_properties:
22
- name: random
23
-
24
- resource_pools:
25
- - name: small_z1
26
- cloud_properties:
27
- name: random
28
-
29
- networks:
30
- - name: <%= project_name_underscored %>1
31
- type: manual
32
- subnets:
33
- - range: <%= warden_net %>.0/24
34
- name: <%= project_name_underscored %>1
35
- gateway: <%= warden_net %>.1
36
- static:
37
- - <%= warden_net %>.2 - <%= warden_net %>.60