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
@@ -0,0 +1,24 @@
1
+ ---
2
+ name: <%= job_name %>
3
+
4
+ packages: []
5
+ templates:
6
+ bin/ctl: bin/ctl
7
+ bin/monit_debugger: bin/monit_debugger
8
+ helpers/ctl_setup.sh: helpers/ctl_setup.sh
9
+ helpers/ctl_utils.sh: helpers/ctl_utils.sh
10
+
11
+ # Documentation https://bosh.io/docs/links.html
12
+ # Tutorial https://gist.github.com/Amit-PivotalLabs/c39528248b8cdc4ba8e347f8aa68abb6
13
+ consumes: []
14
+
15
+ provides:
16
+ - name: <%= job_name %>
17
+ type: <%= job_name %>
18
+ properties:
19
+ - port
20
+
21
+ properties:
22
+ port:
23
+ description: Bind to this port
24
+ default: 8080
@@ -27,7 +27,7 @@ case $1 in
27
27
 
28
28
  ;;
29
29
  *)
30
- echo "Usage: <%= job_name %>_ctl {start|stop}"
30
+ echo "Usage: ctl {start|stop}"
31
31
 
32
32
  ;;
33
33
 
@@ -19,11 +19,6 @@ output_label=${2:-${JOB_NAME}}
19
19
  export JOB_DIR=/var/vcap/jobs/$JOB_NAME
20
20
  chmod 755 $JOB_DIR # to access file via symlink
21
21
 
22
- # Load some bosh deployment properties into env vars
23
- # Try to put all ERb into data/properties.sh.erb
24
- # incl $NAME, $JOB_INDEX, $WEBAPP_DIR
25
- source $JOB_DIR/data/properties.sh
26
-
27
22
  source $JOB_DIR/helpers/ctl_utils.sh
28
23
  redirect_output ${output_label}
29
24
 
@@ -66,27 +61,6 @@ do
66
61
  done
67
62
  export TMPDIR=$TMP_DIR
68
63
 
69
- export C_INCLUDE_PATH=/var/vcap/packages/mysqlclient/include/mysql:/var/vcap/packages/sqlite/include:/var/vcap/packages/libpq/include
70
- export LIBRARY_PATH=/var/vcap/packages/mysqlclient/lib/mysql:/var/vcap/packages/sqlite/lib:/var/vcap/packages/libpq/lib
71
-
72
- # consistent place for vendoring python libraries within package
73
- if [[ -d ${WEBAPP_DIR:-/xxxx} ]]
74
- then
75
- export PYTHONPATH=$WEBAPP_DIR/vendor/lib/python
76
- fi
77
-
78
- if [[ -d /var/vcap/packages/java7 ]]
79
- then
80
- export JAVA_HOME="/var/vcap/packages/java7"
81
- fi
82
-
83
- # setup CLASSPATH for all jars/ folders within packages
84
- export CLASSPATH=${CLASSPATH:-''} # default to empty
85
- for java_jar in $(ls -d /var/vcap/packages/*/*/*.jar)
86
- do
87
- export CLASSPATH=${java_jar}:$CLASSPATH
88
- done
89
-
90
64
  PIDFILE=$RUN_DIR/$output_label.pid
91
65
 
92
66
  echo '$PATH' $PATH
@@ -42,15 +42,11 @@ module Bosh::Gen
42
42
  end
43
43
 
44
44
  def directories
45
- %w[jobs packages src blobs templates].each do |dir|
45
+ %w[jobs packages src blobs manifests].each do |dir|
46
46
  directory dir
47
47
  end
48
48
  end
49
49
 
50
- def executables
51
- chmod "templates/make_manifest", 0755
52
- end
53
-
54
50
  def blobs_yaml
55
51
  create_file "config/blobs.yml", YAML.dump({})
56
52
  end
@@ -65,7 +61,8 @@ module Bosh::Gen
65
61
  when :local
66
62
  config_private = {
67
63
  "blobstore" => {
68
- "simple" => {
64
+ "provider" => "simple",
65
+ "options" => {
69
66
  "user" => "USER",
70
67
  "password" => "PASSWORD"
71
68
  }
@@ -74,7 +71,8 @@ module Bosh::Gen
74
71
  when :s3
75
72
  config_private = {
76
73
  "blobstore" => {
77
- "s3" => {
74
+ "provider" => "s3",
75
+ "options" => {
78
76
  "access_key_id" => settings.provider.credentials.aws_access_key_id,
79
77
  "secret_access_key" => settings.provider.credentials.aws_secret_access_key
80
78
  }
@@ -84,7 +82,8 @@ module Bosh::Gen
84
82
  when :swift
85
83
  config_private = {
86
84
  "blobstore" => {
87
- "swift" => {
85
+ "provider" => "swift",
86
+ "options" => {
88
87
  settings.provider.name => settings.provider.credentials.to_hash
89
88
  }
90
89
  }
@@ -1,76 +1,26 @@
1
- # BOSH Release for <%= project_name %>
1
+ # BOSH release for <%= project_name %>
2
2
 
3
- ## Usage
3
+ This BOSH release and deployment manifest deploy a cluster of <%= project_name %>.
4
4
 
5
- To use this bosh release, first upload it to your bosh:
5
+ ## Install
6
6
 
7
7
  ```
8
- bosh target BOSH_HOST
9
- git clone https://github.com/cloudfoundry-community/<%= repository_name %>.git
10
- cd <%= repository_name %>
11
- bosh upload release releases/<%= project_name %>/<%= project_name %>-1.yml
8
+ export BOSH_ENVIRONMENT=<bosh-alias>
9
+ export BOSH_DEPLOYMENT=<%= project_name %>
10
+ bosh2 deploy manifests/<%= project_name %>.yml --vars-store tmp/creds.yml
12
11
  ```
13
12
 
14
- For [bosh-lite](https://github.com/cloudfoundry/bosh-lite), you can quickly create a deployment manifest & deploy a cluster. Note that this requires that you have installed [spruce](https://github.com/geofffranks/spruce).
13
+ If your BOSH has Credhub, then you can omit `--vars-store` flag. It is used to generate any passwords/credentials/certificates required by `manifests/<%= project_name %>.yml`.
15
14
 
16
- ```
17
- templates/make_manifest warden
18
- bosh -n deploy
19
- ```
20
-
21
- For AWS EC2, create a single VM:
22
-
23
- ```
24
- templates/make_manifest aws-ec2
25
- bosh -n deploy
26
- ```
27
-
28
- ### Override security groups
29
-
30
- For AWS & Openstack, the default deployment assumes there is a `default` security group. If you wish to use a different security group(s) then you can pass in additional configuration when running `make_manifest` above.
31
-
32
- Create a file `my-networking.yml`:
33
-
34
- ``` yaml
35
- ---
36
- networks:
37
- - name: <%= project_name %>1
38
- type: dynamic
39
- cloud_properties:
40
- security_groups:
41
- - <%= project_name %>
42
- ```
43
-
44
- Where `- <%= project_name %>` means you wish to use an existing security group called `<%= project_name %>`.
45
-
46
- You now suffix this file path to the `make_manifest` command:
47
-
48
- ```
49
- templates/make_manifest openstack-nova my-networking.yml
50
- bosh -n deploy
51
- ```
52
-
53
- ### Development
54
-
55
- As a developer of this release, create new releases and upload them:
56
-
57
- ```
58
- bosh create release --force && bosh -n upload release
59
- ```
60
-
61
- ### Final releases
62
-
63
- To share final releases:
64
-
65
- ```
66
- bosh create release --final
67
- ```
68
15
 
69
- By default the version number will be bumped to the next major number. You can specify alternate versions:
16
+ ## Development
70
17
 
18
+ As a developer of this release, create new releases, upload and deploy them:
71
19
 
72
20
  ```
73
- bosh create release --final --version 2.1
21
+ bosh2 create-release --force && \
22
+ bosh2 -n upload-release && \
23
+ bosh2 deploy manifests/<%= project_name %>.yml --vars-store tmp/creds.yml
74
24
  ```
75
25
 
76
- After the first release you need to contact [Dmitriy Kalinin](mailto://dkalinin@pivotal.io) to request your project is added to https://bosh.io/releases (as mentioned in README above).
26
+ If your BOSH has Credhub, then you can omit `--vars-store` flag. It is used to generate any passwords/credentials/certificates required by `manifests/<%= project_name %>.yml`.
@@ -1,5 +1,5 @@
1
1
  ---
2
- name: just_install_packages
2
+ name: <%= project_name %>
3
3
  packages: []
4
4
  templates:
5
5
  ignoreme: ignoreme
@@ -0,0 +1,38 @@
1
+ ---
2
+ name: <%= project_name %>
3
+
4
+ instance_groups:
5
+ - name: <%= project_name %>
6
+ azs: [z1, z2, z3]
7
+ instances: 1
8
+ vm_type: default
9
+ stemcell: default
10
+ networks: [{name: default}]
11
+ jobs:
12
+ - name: <%= project_name %>
13
+ release: <%= project_name %>
14
+ properties: {}
15
+
16
+ variables: []
17
+
18
+ stemcells:
19
+ - alias: default
20
+ os: ubuntu-trusty
21
+ version: latest
22
+
23
+ update:
24
+ canaries: 1
25
+ canary_watch_time: 1000-60000
26
+ update_watch_time: 1000-60000
27
+ max_in_flight: 1
28
+ serial: false
29
+
30
+ releases:
31
+ - name: <%= project_name %>
32
+ version: latest
33
+ # In future, for the benefit of users, please replace with final release URL/version/sha1:
34
+ #
35
+ # For example:
36
+ # version: 0.1.0
37
+ # url: https://github.com/cloudfoundry-community/<%= project_name %>-boshrelease/releases/download/v0.1.0/<%= project_name %>-0.1.0.tgz
38
+ # sha1: d6b67ccc255c4d7019702573d829a7ff29fa0dc8
@@ -0,0 +1,6 @@
1
+ ---
2
+ - type: replace
3
+ path: /releases/name=<%= project_name %>
4
+ value:
5
+ name: <%= project_name %>
6
+ version: latest
@@ -1,5 +1,5 @@
1
1
  module Bosh
2
2
  module Gen
3
- VERSION = "0.24.0"
3
+ VERSION = "0.90.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bosh-gen
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.24.0
4
+ version: 0.90.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dr Nic Williams
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-01-11 00:00:00.000000000 Z
11
+ date: 2017-07-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -98,16 +98,30 @@ dependencies:
98
98
  name: fog-aws
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - '='
101
+ - - ">="
102
102
  - !ruby/object:Gem::Version
103
- version: 0.1.1
103
+ version: '0'
104
104
  type: :runtime
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - '='
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: mime-types
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
109
116
  - !ruby/object:Gem::Version
110
- version: 0.1.1
117
+ version: '0'
118
+ type: :runtime
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
111
125
  - !ruby/object:Gem::Dependency
112
126
  name: readwritesettings
113
127
  requirement: !ruby/object:Gem::Requirement
@@ -180,7 +194,6 @@ extra_rdoc_files: []
180
194
  files:
181
195
  - ".gitignore"
182
196
  - ".rspec"
183
- - ".travis.yml"
184
197
  - ChangeLog.md
185
198
  - Gemfile
186
199
  - Guardfile
@@ -189,7 +202,6 @@ files:
189
202
  - Rakefile
190
203
  - bin/bosh-gen
191
204
  - bosh-gen.gemspec
192
- - lib/bosh/cli/commands/share_release.rb
193
205
  - lib/bosh/gen.rb
194
206
  - lib/bosh/gen/cli.rb
195
207
  - lib/bosh/gen/generators/blacksmith_forge_generator.rb
@@ -201,8 +213,6 @@ files:
201
213
  - lib/bosh/gen/generators/blacksmith_forge_generator/templates/jobs/%job_name%/templates/plans/standalone/credentials.yml
202
214
  - lib/bosh/gen/generators/blacksmith_forge_generator/templates/jobs/%job_name%/templates/plans/standalone/init
203
215
  - lib/bosh/gen/generators/blacksmith_forge_generator/templates/jobs/%job_name%/templates/plans/standalone/manifest.yml.tt
204
- - lib/bosh/gen/generators/bosh_cli_plugin_generator.rb
205
- - lib/bosh/gen/generators/bosh_cli_plugin_generator/templates/lib/bosh/cli/commands/%underscore_plugin_name%.rb.tt
206
216
  - lib/bosh/gen/generators/errand_generator.rb
207
217
  - lib/bosh/gen/generators/errand_generator/templates/.gitkeep
208
218
  - lib/bosh/gen/generators/errand_generator/templates/jobs/%job_name%/monit.tt
@@ -214,27 +224,11 @@ files:
214
224
  - lib/bosh/gen/generators/extract_package_generator.rb
215
225
  - lib/bosh/gen/generators/job_generator.rb
216
226
  - lib/bosh/gen/generators/job_generator/templates/.gitkeep
217
- - lib/bosh/gen/generators/job_generator/templates/jobs/%job_name%_nginx_rack/monit.tt
218
- - lib/bosh/gen/generators/job_generator/templates/jobs/%job_name%_nginx_rack/templates/bin/%job_name%_rack_ctl.tt
219
- - lib/bosh/gen/generators/job_generator/templates/jobs/%job_name%_nginx_rack/templates/bin/ctl_db_utils.sh.erb
220
- - lib/bosh/gen/generators/job_generator/templates/jobs/%job_name%_nginx_rack/templates/bin/ctl_nginx.sh.erb
221
- - lib/bosh/gen/generators/job_generator/templates/jobs/%job_name%_nginx_rack/templates/bin/ctl_redis_utils.sh.erb
222
- - lib/bosh/gen/generators/job_generator/templates/jobs/%job_name%_nginx_rack/templates/bin/ctl_setup.sh.erb
223
- - lib/bosh/gen/generators/job_generator/templates/jobs/%job_name%_nginx_rack/templates/bin/ctl_start.sh.erb
224
- - lib/bosh/gen/generators/job_generator/templates/jobs/%job_name%_nginx_rack/templates/bin/ctl_utils.sh
225
- - lib/bosh/gen/generators/job_generator/templates/jobs/%job_name%_nginx_rack/templates/bin/monit_debugger
226
- - lib/bosh/gen/generators/job_generator/templates/jobs/%job_name%_nginx_rack/templates/bin/nginx_ctl.tt
227
- - lib/bosh/gen/generators/job_generator/templates/jobs/%job_name%_nginx_rack/templates/bin/rails_ctl_setup.sh.erb
228
- - lib/bosh/gen/generators/job_generator/templates/jobs/%job_name%_nginx_rack/templates/config/database.yml.erb
229
- - lib/bosh/gen/generators/job_generator/templates/jobs/%job_name%_nginx_rack/templates/config/mime.types
230
- - lib/bosh/gen/generators/job_generator/templates/jobs/%job_name%_nginx_rack/templates/config/nginx.conf.erb
231
- - lib/bosh/gen/generators/job_generator/templates/jobs/%job_name%_nginx_rack/templates/config/nginx_proxy.conf
232
- - lib/bosh/gen/generators/job_generator/templates/jobs/%job_name%_nginx_rack/templates/config/redis.yml.erb
233
227
  - lib/bosh/gen/generators/job_generator/templates/jobs/%job_name%_simple/monit.tt
228
+ - lib/bosh/gen/generators/job_generator/templates/jobs/%job_name%_simple/spec.tt
234
229
  - lib/bosh/gen/generators/job_generator/templates/jobs/%job_name%_simple/templates/bin/ctl.tt
235
230
  - lib/bosh/gen/generators/job_generator/templates/jobs/%job_name%_simple/templates/bin/monit_debugger
236
231
  - lib/bosh/gen/generators/job_generator/templates/jobs/%job_name%_simple/templates/config/.gitkeep
237
- - lib/bosh/gen/generators/job_generator/templates/jobs/%job_name%_simple/templates/data/properties.sh.erb
238
232
  - lib/bosh/gen/generators/job_generator/templates/jobs/%job_name%_simple/templates/helpers/ctl_setup.sh
239
233
  - lib/bosh/gen/generators/job_generator/templates/jobs/%job_name%_simple/templates/helpers/ctl_utils.sh
240
234
  - lib/bosh/gen/generators/job_template_generator.rb
@@ -243,18 +237,14 @@ files:
243
237
  - lib/bosh/gen/generators/new_release_generator/templates/README.md.tt
244
238
  - lib/bosh/gen/generators/new_release_generator/templates/Rakefile
245
239
  - lib/bosh/gen/generators/new_release_generator/templates/blobs/.gitkeep
240
+ - lib/bosh/gen/generators/new_release_generator/templates/jobs/%project_name%/monit.tt
241
+ - lib/bosh/gen/generators/new_release_generator/templates/jobs/%project_name%/spec.tt
242
+ - lib/bosh/gen/generators/new_release_generator/templates/jobs/%project_name%/templates/ignoreme
246
243
  - lib/bosh/gen/generators/new_release_generator/templates/jobs/.gitkeep
247
- - lib/bosh/gen/generators/new_release_generator/templates/jobs/just_install_packages/monit.tt
248
- - lib/bosh/gen/generators/new_release_generator/templates/jobs/just_install_packages/spec.tt
249
- - lib/bosh/gen/generators/new_release_generator/templates/jobs/just_install_packages/templates/ignoreme
244
+ - lib/bosh/gen/generators/new_release_generator/templates/manifests/%project_name%.yml.tt
245
+ - lib/bosh/gen/generators/new_release_generator/templates/manifests/operators/dev.yml.tt
250
246
  - lib/bosh/gen/generators/new_release_generator/templates/packages/.gitkeep
251
247
  - lib/bosh/gen/generators/new_release_generator/templates/src/.gitkeep
252
- - lib/bosh/gen/generators/new_release_generator/templates/templates/deployment.yml.tt
253
- - lib/bosh/gen/generators/new_release_generator/templates/templates/infrastructure-aws-ec2.yml.tt
254
- - lib/bosh/gen/generators/new_release_generator/templates/templates/infrastructure-warden.yml.tt
255
- - lib/bosh/gen/generators/new_release_generator/templates/templates/jobs.yml.tt
256
- - lib/bosh/gen/generators/new_release_generator/templates/templates/make_manifest.tt
257
- - lib/bosh/gen/generators/new_release_generator/templates/templates/stub.yml.tt
258
248
  - lib/bosh/gen/generators/package_apt_generator.rb
259
249
  - lib/bosh/gen/generators/package_apt_generator/templates/.gitkeep
260
250
  - lib/bosh/gen/generators/package_apt_generator/templates/Vagrantfile
@@ -273,87 +263,8 @@ files:
273
263
  - lib/bosh/gen/generators/package_generator.rb
274
264
  - lib/bosh/gen/generators/package_generator/templates/.gitkeep
275
265
  - lib/bosh/gen/generators/package_source_generator.rb
276
- - lib/bosh/gen/models.rb
277
- - lib/bosh/gen/models/bosh_config.rb
278
- - lib/bosh/gen/models/deployment_manifest.rb
279
- - lib/bosh/gen/models/release_detection.rb
280
266
  - lib/bosh/gen/settings.rb
281
- - lib/bosh/gen/utils/file_with_progress_bar.rb
282
267
  - lib/bosh/gen/version.rb
283
- - spec/fixtures/bosh_config/multiple_boshes.yml
284
- - spec/fixtures/deployment_manifests/2_jobs_1_ip_8196_disk.yml
285
- - spec/fixtures/deployment_manifests/2_jobs_1_ip_8196_disk_with_numeric.yml
286
- - spec/fixtures/deployment_manifests/2_jobs_2_ips_no_disk.yml
287
- - spec/fixtures/releases/bosh-sample-release/.gitignore
288
- - spec/fixtures/releases/bosh-sample-release/LICENSE
289
- - spec/fixtures/releases/bosh-sample-release/NOTICE
290
- - spec/fixtures/releases/bosh-sample-release/README
291
- - spec/fixtures/releases/bosh-sample-release/config/final.yml
292
- - spec/fixtures/releases/bosh-sample-release/jobs/mysql/monit
293
- - spec/fixtures/releases/bosh-sample-release/jobs/mysql/spec
294
- - spec/fixtures/releases/bosh-sample-release/jobs/mysql/templates/my.bootstrap.erb
295
- - spec/fixtures/releases/bosh-sample-release/jobs/mysql/templates/my.cnf.erb
296
- - spec/fixtures/releases/bosh-sample-release/jobs/mysql/templates/my.shutdown.erb
297
- - spec/fixtures/releases/bosh-sample-release/jobs/mysql/templates/mysql_ctl.erb
298
- - spec/fixtures/releases/bosh-sample-release/jobs/nginx/monit
299
- - spec/fixtures/releases/bosh-sample-release/jobs/nginx/spec
300
- - spec/fixtures/releases/bosh-sample-release/jobs/nginx/templates/mime.types
301
- - spec/fixtures/releases/bosh-sample-release/jobs/nginx/templates/nginx.conf.erb
302
- - spec/fixtures/releases/bosh-sample-release/jobs/nginx/templates/nginx_ctl
303
- - spec/fixtures/releases/bosh-sample-release/jobs/wordpress/monit
304
- - spec/fixtures/releases/bosh-sample-release/jobs/wordpress/spec
305
- - spec/fixtures/releases/bosh-sample-release/jobs/wordpress/templates/httpd.conf.erb
306
- - spec/fixtures/releases/bosh-sample-release/jobs/wordpress/templates/php.ini.erb
307
- - spec/fixtures/releases/bosh-sample-release/jobs/wordpress/templates/wordpress_ctl
308
- - spec/fixtures/releases/bosh-sample-release/jobs/wordpress/templates/wp-config.php.erb
309
- - spec/fixtures/releases/bosh-sample-release/packages/apache2/packaging
310
- - spec/fixtures/releases/bosh-sample-release/packages/apache2/spec
311
- - spec/fixtures/releases/bosh-sample-release/packages/mysql/packaging
312
- - spec/fixtures/releases/bosh-sample-release/packages/mysql/spec
313
- - spec/fixtures/releases/bosh-sample-release/packages/mysqlclient/packaging
314
- - spec/fixtures/releases/bosh-sample-release/packages/mysqlclient/spec
315
- - spec/fixtures/releases/bosh-sample-release/packages/nginx/packaging
316
- - spec/fixtures/releases/bosh-sample-release/packages/nginx/spec
317
- - spec/fixtures/releases/bosh-sample-release/packages/php5/packaging
318
- - spec/fixtures/releases/bosh-sample-release/packages/php5/spec
319
- - spec/fixtures/releases/bosh-sample-release/packages/wordpress/packaging
320
- - spec/fixtures/releases/bosh-sample-release/packages/wordpress/spec
321
- - spec/fixtures/releases/s3test-boshrelease/.gitignore
322
- - spec/fixtures/releases/s3test-boshrelease/README.md
323
- - spec/fixtures/releases/s3test-boshrelease/Rakefile
324
- - spec/fixtures/releases/s3test-boshrelease/config/blobs.yml
325
- - spec/fixtures/releases/s3test-boshrelease/config/dev.yml
326
- - spec/fixtures/releases/s3test-boshrelease/config/final.yml
327
- - spec/fixtures/releases/s3test-boshrelease/jobs/.gitkeep
328
- - spec/fixtures/releases/s3test-boshrelease/jobs/s3test/monit
329
- - spec/fixtures/releases/s3test-boshrelease/jobs/s3test/spec
330
- - spec/fixtures/releases/s3test-boshrelease/jobs/s3test/templates/bin/monit_debugger
331
- - spec/fixtures/releases/s3test-boshrelease/jobs/s3test/templates/bin/s3test_ctl
332
- - spec/fixtures/releases/s3test-boshrelease/jobs/s3test/templates/config/.gitkeep
333
- - spec/fixtures/releases/s3test-boshrelease/jobs/s3test/templates/config/s3test.conf.erb
334
- - spec/fixtures/releases/s3test-boshrelease/jobs/s3test/templates/data/properties.sh.erb
335
- - spec/fixtures/releases/s3test-boshrelease/jobs/s3test/templates/helpers/ctl_setup.sh
336
- - spec/fixtures/releases/s3test-boshrelease/jobs/s3test/templates/helpers/ctl_utils.sh
337
- - spec/fixtures/releases/s3test-boshrelease/packages/.gitkeep
338
- - spec/fixtures/releases/s3test-boshrelease/src/.gitkeep
339
- - spec/fixtures/releases/s3test-boshrelease/templates/deployment.yml
340
- - spec/fixtures/releases/s3test-boshrelease/templates/infrastructure-aws-ec2.yml
341
- - spec/fixtures/releases/s3test-boshrelease/templates/infrastructure-warden.yml
342
- - spec/fixtures/releases/s3test-boshrelease/templates/jobs.yml
343
- - spec/fixtures/releases/s3test-boshrelease/templates/make_manifest
344
- - spec/fixtures/releases/s3test-boshrelease/templates/stub.yml
345
- - spec/fixtures/releases/some_dev_releases/config/dev.yml
346
- - spec/fixtures/releases/some_dev_releases/dev_releases/index.yml
347
- - spec/fixtures/releases/some_dev_releases/dev_releases/myrelease-1.yml
348
- - spec/fixtures/releases/some_dev_releases/dev_releases/myrelease-10.yml
349
- - spec/fixtures/releases/some_dev_releases/dev_releases/myrelease-2.yml
350
- - spec/generators/job_generator_spec.rb
351
- - spec/generators/new_release_generator_spec.rb
352
- - spec/models/bosh_config_spec.rb
353
- - spec/models/deployment_manifest_spec.rb
354
- - spec/models/release_detection_spec.rb
355
- - spec/spec_helper.rb
356
- - spec/support/generator_spec_helper.rb
357
268
  homepage: https://github.com/drnic/bosh-gen
358
269
  licenses: []
359
270
  metadata: {}
@@ -373,82 +284,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
373
284
  version: '0'
374
285
  requirements: []
375
286
  rubyforge_project:
376
- rubygems_version: 2.4.8
287
+ rubygems_version: 2.6.10
377
288
  signing_key:
378
289
  specification_version: 4
379
290
  summary: ''
380
- test_files:
381
- - spec/fixtures/bosh_config/multiple_boshes.yml
382
- - spec/fixtures/deployment_manifests/2_jobs_1_ip_8196_disk.yml
383
- - spec/fixtures/deployment_manifests/2_jobs_1_ip_8196_disk_with_numeric.yml
384
- - spec/fixtures/deployment_manifests/2_jobs_2_ips_no_disk.yml
385
- - spec/fixtures/releases/bosh-sample-release/.gitignore
386
- - spec/fixtures/releases/bosh-sample-release/LICENSE
387
- - spec/fixtures/releases/bosh-sample-release/NOTICE
388
- - spec/fixtures/releases/bosh-sample-release/README
389
- - spec/fixtures/releases/bosh-sample-release/config/final.yml
390
- - spec/fixtures/releases/bosh-sample-release/jobs/mysql/monit
391
- - spec/fixtures/releases/bosh-sample-release/jobs/mysql/spec
392
- - spec/fixtures/releases/bosh-sample-release/jobs/mysql/templates/my.bootstrap.erb
393
- - spec/fixtures/releases/bosh-sample-release/jobs/mysql/templates/my.cnf.erb
394
- - spec/fixtures/releases/bosh-sample-release/jobs/mysql/templates/my.shutdown.erb
395
- - spec/fixtures/releases/bosh-sample-release/jobs/mysql/templates/mysql_ctl.erb
396
- - spec/fixtures/releases/bosh-sample-release/jobs/nginx/monit
397
- - spec/fixtures/releases/bosh-sample-release/jobs/nginx/spec
398
- - spec/fixtures/releases/bosh-sample-release/jobs/nginx/templates/mime.types
399
- - spec/fixtures/releases/bosh-sample-release/jobs/nginx/templates/nginx.conf.erb
400
- - spec/fixtures/releases/bosh-sample-release/jobs/nginx/templates/nginx_ctl
401
- - spec/fixtures/releases/bosh-sample-release/jobs/wordpress/monit
402
- - spec/fixtures/releases/bosh-sample-release/jobs/wordpress/spec
403
- - spec/fixtures/releases/bosh-sample-release/jobs/wordpress/templates/httpd.conf.erb
404
- - spec/fixtures/releases/bosh-sample-release/jobs/wordpress/templates/php.ini.erb
405
- - spec/fixtures/releases/bosh-sample-release/jobs/wordpress/templates/wordpress_ctl
406
- - spec/fixtures/releases/bosh-sample-release/jobs/wordpress/templates/wp-config.php.erb
407
- - spec/fixtures/releases/bosh-sample-release/packages/apache2/packaging
408
- - spec/fixtures/releases/bosh-sample-release/packages/apache2/spec
409
- - spec/fixtures/releases/bosh-sample-release/packages/mysql/packaging
410
- - spec/fixtures/releases/bosh-sample-release/packages/mysql/spec
411
- - spec/fixtures/releases/bosh-sample-release/packages/mysqlclient/packaging
412
- - spec/fixtures/releases/bosh-sample-release/packages/mysqlclient/spec
413
- - spec/fixtures/releases/bosh-sample-release/packages/nginx/packaging
414
- - spec/fixtures/releases/bosh-sample-release/packages/nginx/spec
415
- - spec/fixtures/releases/bosh-sample-release/packages/php5/packaging
416
- - spec/fixtures/releases/bosh-sample-release/packages/php5/spec
417
- - spec/fixtures/releases/bosh-sample-release/packages/wordpress/packaging
418
- - spec/fixtures/releases/bosh-sample-release/packages/wordpress/spec
419
- - spec/fixtures/releases/s3test-boshrelease/.gitignore
420
- - spec/fixtures/releases/s3test-boshrelease/README.md
421
- - spec/fixtures/releases/s3test-boshrelease/Rakefile
422
- - spec/fixtures/releases/s3test-boshrelease/config/blobs.yml
423
- - spec/fixtures/releases/s3test-boshrelease/config/dev.yml
424
- - spec/fixtures/releases/s3test-boshrelease/config/final.yml
425
- - spec/fixtures/releases/s3test-boshrelease/jobs/.gitkeep
426
- - spec/fixtures/releases/s3test-boshrelease/jobs/s3test/monit
427
- - spec/fixtures/releases/s3test-boshrelease/jobs/s3test/spec
428
- - spec/fixtures/releases/s3test-boshrelease/jobs/s3test/templates/bin/monit_debugger
429
- - spec/fixtures/releases/s3test-boshrelease/jobs/s3test/templates/bin/s3test_ctl
430
- - spec/fixtures/releases/s3test-boshrelease/jobs/s3test/templates/config/.gitkeep
431
- - spec/fixtures/releases/s3test-boshrelease/jobs/s3test/templates/config/s3test.conf.erb
432
- - spec/fixtures/releases/s3test-boshrelease/jobs/s3test/templates/data/properties.sh.erb
433
- - spec/fixtures/releases/s3test-boshrelease/jobs/s3test/templates/helpers/ctl_setup.sh
434
- - spec/fixtures/releases/s3test-boshrelease/jobs/s3test/templates/helpers/ctl_utils.sh
435
- - spec/fixtures/releases/s3test-boshrelease/packages/.gitkeep
436
- - spec/fixtures/releases/s3test-boshrelease/src/.gitkeep
437
- - spec/fixtures/releases/s3test-boshrelease/templates/deployment.yml
438
- - spec/fixtures/releases/s3test-boshrelease/templates/infrastructure-aws-ec2.yml
439
- - spec/fixtures/releases/s3test-boshrelease/templates/infrastructure-warden.yml
440
- - spec/fixtures/releases/s3test-boshrelease/templates/jobs.yml
441
- - spec/fixtures/releases/s3test-boshrelease/templates/make_manifest
442
- - spec/fixtures/releases/s3test-boshrelease/templates/stub.yml
443
- - spec/fixtures/releases/some_dev_releases/config/dev.yml
444
- - spec/fixtures/releases/some_dev_releases/dev_releases/index.yml
445
- - spec/fixtures/releases/some_dev_releases/dev_releases/myrelease-1.yml
446
- - spec/fixtures/releases/some_dev_releases/dev_releases/myrelease-10.yml
447
- - spec/fixtures/releases/some_dev_releases/dev_releases/myrelease-2.yml
448
- - spec/generators/job_generator_spec.rb
449
- - spec/generators/new_release_generator_spec.rb
450
- - spec/models/bosh_config_spec.rb
451
- - spec/models/deployment_manifest_spec.rb
452
- - spec/models/release_detection_spec.rb
453
- - spec/spec_helper.rb
454
- - spec/support/generator_spec_helper.rb
291
+ test_files: []