bosh-bootstrap 0.10.2 → 0.11.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (162) hide show
  1. data/.rspec +1 -0
  2. data/.travis.yml +0 -1
  3. data/ChangeLog.md +23 -4
  4. data/Gemfile +5 -2
  5. data/Guardfile +2 -0
  6. data/README.md +209 -197
  7. data/TODO.md +55 -0
  8. data/bosh-bootstrap.gemspec +5 -12
  9. data/lib/bosh/cli/commands/bootstrap.rb +42 -0
  10. data/lib/bosh-bootstrap/cli/commands/delete.rb +26 -0
  11. data/lib/bosh-bootstrap/cli/commands/deploy.rb +89 -0
  12. data/lib/bosh-bootstrap/cli/commands/ssh.rb +32 -0
  13. data/lib/bosh-bootstrap/cli/helpers/bundle.rb +12 -0
  14. data/lib/bosh-bootstrap/cli/helpers/interactions.rb +15 -0
  15. data/lib/bosh-bootstrap/cli/helpers/settings.rb +61 -0
  16. data/lib/bosh-bootstrap/cli/helpers.rb +11 -0
  17. data/lib/bosh-bootstrap/key_pair.rb +21 -0
  18. data/lib/bosh-bootstrap/microbosh.rb +74 -0
  19. data/lib/bosh-bootstrap/microbosh_providers/aws.rb +104 -0
  20. data/lib/bosh-bootstrap/microbosh_providers/base.rb +50 -0
  21. data/lib/bosh-bootstrap/microbosh_providers/openstack.rb +61 -0
  22. data/lib/bosh-bootstrap/microbosh_providers/vsphere.rb +78 -0
  23. data/lib/bosh-bootstrap/microbosh_providers.rb +11 -0
  24. data/lib/bosh-bootstrap/network.rb +33 -0
  25. data/lib/bosh-bootstrap/network_providers/aws.rb +28 -0
  26. data/lib/bosh-bootstrap/network_providers/dummy.rb +10 -0
  27. data/lib/bosh-bootstrap/network_providers/openstack.rb +28 -0
  28. data/lib/bosh-bootstrap/network_providers.rb +11 -0
  29. data/lib/bosh-bootstrap/version.rb +1 -1
  30. data/lib/bosh-bootstrap.rb +3 -4
  31. data/spec/assets/microbosh_yml/micro_bosh.aws_ec2.yml +37 -0
  32. data/spec/assets/microbosh_yml/micro_bosh.aws_vpc.yml +39 -0
  33. data/spec/assets/microbosh_yml/micro_bosh.openstack.yml +30 -0
  34. data/spec/assets/microbosh_yml/micro_bosh.vsphere.yml +34 -0
  35. data/spec/integration/aws/aws_ec2_basic_spec.rb +39 -0
  36. data/spec/integration/aws/aws_helpers.rb +8 -61
  37. data/spec/spec_helper.rb +8 -3
  38. data/spec/support/capture_stdout.rb +18 -0
  39. data/spec/unit/cli/bootstrap_spec.rb +41 -0
  40. data/spec/unit/commands/delete_spec.rb +20 -0
  41. data/spec/unit/commands/deploy_spec.rb +64 -0
  42. data/spec/unit/commands/ssh_spec.rb +19 -0
  43. data/spec/unit/key_pair_spec.rb +13 -0
  44. data/spec/unit/microbosh_providers/aws_spec.rb +68 -0
  45. data/spec/unit/microbosh_providers/openstack_spec.rb +27 -0
  46. data/spec/unit/microbosh_providers/vsphere_spec.rb +42 -0
  47. data/spec/unit/microbosh_spec.rb +27 -0
  48. data/spec/unit/network_providers/aws_spec.rb +29 -0
  49. data/spec/unit/network_providers/openstack_spec.rb +29 -0
  50. data/spec/unit/network_spec.rb +17 -0
  51. metadata +71 -235
  52. data/CleanupCi.md +0 -8
  53. data/bin/bosh-bootstrap +0 -8
  54. data/docs/README.md +0 -3
  55. data/docs/devstack-openstack-tutorial.md +0 -215
  56. data/lib/bosh/providers/README.md +0 -5
  57. data/lib/bosh/providers/aws.rb +0 -258
  58. data/lib/bosh/providers/base_provider.rb +0 -48
  59. data/lib/bosh/providers/openstack.rb +0 -79
  60. data/lib/bosh/providers.rb +0 -21
  61. data/lib/bosh-bootstrap/cli.rb +0 -1347
  62. data/lib/bosh-bootstrap/commander/README.md +0 -47
  63. data/lib/bosh-bootstrap/commander/command.rb +0 -25
  64. data/lib/bosh-bootstrap/commander/commands.rb +0 -80
  65. data/lib/bosh-bootstrap/commander/local_server.rb +0 -68
  66. data/lib/bosh-bootstrap/commander/remote_script_command.rb +0 -51
  67. data/lib/bosh-bootstrap/commander/remote_server.rb +0 -137
  68. data/lib/bosh-bootstrap/commander/upload_command.rb +0 -17
  69. data/lib/bosh-bootstrap/commander.rb +0 -9
  70. data/lib/bosh-bootstrap/helpers/fog_setup.rb +0 -50
  71. data/lib/bosh-bootstrap/helpers/settings.rb +0 -99
  72. data/lib/bosh-bootstrap/helpers/settings_setter.rb +0 -41
  73. data/lib/bosh-bootstrap/helpers.rb +0 -3
  74. data/lib/bosh-bootstrap/stages/stage_micro_bosh_delete/bosh_micro_delete +0 -19
  75. data/lib/bosh-bootstrap/stages/stage_micro_bosh_delete.rb +0 -90
  76. data/lib/bosh-bootstrap/stages/stage_micro_bosh_deploy/bosh_micro_deploy +0 -79
  77. data/lib/bosh-bootstrap/stages/stage_micro_bosh_deploy/install_key_pair_for_user +0 -23
  78. data/lib/bosh-bootstrap/stages/stage_micro_bosh_deploy.rb +0 -146
  79. data/lib/bosh-bootstrap/stages/stage_micro_bosh_download/download_micro_bosh_stemcell +0 -93
  80. data/lib/bosh-bootstrap/stages/stage_micro_bosh_download.rb +0 -139
  81. data/lib/bosh-bootstrap/stages/stage_prepare_inception_vm/configure_git +0 -25
  82. data/lib/bosh-bootstrap/stages/stage_prepare_inception_vm/create_vcap_user +0 -79
  83. data/lib/bosh-bootstrap/stages/stage_prepare_inception_vm/install_base_packages +0 -30
  84. data/lib/bosh-bootstrap/stages/stage_prepare_inception_vm/install_bosh +0 -11
  85. data/lib/bosh-bootstrap/stages/stage_prepare_inception_vm/install_bosh_plugins +0 -25
  86. data/lib/bosh-bootstrap/stages/stage_prepare_inception_vm/install_hub +0 -26
  87. data/lib/bosh-bootstrap/stages/stage_prepare_inception_vm/install_ruby +0 -30
  88. data/lib/bosh-bootstrap/stages/stage_prepare_inception_vm/install_useful_gems +0 -29
  89. data/lib/bosh-bootstrap/stages/stage_prepare_inception_vm/validate_bosh_deployer +0 -18
  90. data/lib/bosh-bootstrap/stages/stage_prepare_inception_vm.rb +0 -69
  91. data/lib/bosh-bootstrap/stages/stage_salted_password/convert_salted_password +0 -11
  92. data/lib/bosh-bootstrap/stages/stage_salted_password.rb +0 -51
  93. data/lib/bosh-bootstrap/stages/stage_setup_new_bosh/setup_bosh_user +0 -29
  94. data/lib/bosh-bootstrap/stages/stage_setup_new_bosh.rb +0 -51
  95. data/lib/bosh-bootstrap/stages/stage_validate_inception_vm/validate_ubuntu +0 -6
  96. data/lib/bosh-bootstrap/stages/stage_validate_inception_vm.rb +0 -39
  97. data/lib/bosh-bootstrap/stages.rb +0 -10
  98. data/spec/assets/bosh/public_stemcells/aws_micro.out +0 -7
  99. data/spec/assets/micro_bosh_yml/micro_bosh.aws_ec2.yml +0 -35
  100. data/spec/assets/micro_bosh_yml/micro_bosh.aws_vpc.yml +0 -37
  101. data/spec/integration/aws/aws_basic_spec.rb +0 -39
  102. data/spec/integration/aws/aws_edge_prebuilt_ami_spec.rb +0 -46
  103. data/spec/integration/aws/aws_edge_prebuilt_spec.rb +0 -46
  104. data/spec/integration/aws/aws_edge_spec.rb +0 -45
  105. data/spec/unit/aws_spec.rb +0 -177
  106. data/spec/unit/bosh/providers/aws_spec.rb +0 -174
  107. data/spec/unit/cli_spec.rb +0 -134
  108. data/spec/unit/cli_ssh_spec.rb +0 -95
  109. data/spec/unit/cli_upgrade_inception_spec.rb +0 -29
  110. data/spec/unit/settings_setter_spec.rb +0 -29
  111. data/vendor/cache/POpen4-0.1.4.gem +0 -0
  112. data/vendor/cache/Platform-0.4.0.gem +0 -0
  113. data/vendor/cache/activesupport-3.2.8.gem +0 -0
  114. data/vendor/cache/awesome_print-1.1.0.gem +0 -0
  115. data/vendor/cache/aws-s3-0.6.3.gem +0 -0
  116. data/vendor/cache/blobstore_client-0.4.0.gem +0 -0
  117. data/vendor/cache/bosh_cli-1.0.3.gem +0 -0
  118. data/vendor/cache/bosh_common-0.5.4.gem +0 -0
  119. data/vendor/cache/builder-3.2.0.gem +0 -0
  120. data/vendor/cache/coderay-1.0.8.gem +0 -0
  121. data/vendor/cache/diff-lcs-1.1.3.gem +0 -0
  122. data/vendor/cache/escape-0.0.4.gem +0 -0
  123. data/vendor/cache/excon-0.20.1.gem +0 -0
  124. data/vendor/cache/fog-1.8.0.gem +0 -0
  125. data/vendor/cache/formatador-0.2.4.gem +0 -0
  126. data/vendor/cache/guard-1.6.2.gem +0 -0
  127. data/vendor/cache/guard-rspec-2.4.0.gem +0 -0
  128. data/vendor/cache/highline-1.6.18.gem +0 -0
  129. data/vendor/cache/httpclient-2.2.4.gem +0 -0
  130. data/vendor/cache/i18n-0.6.1.gem +0 -0
  131. data/vendor/cache/json_pure-1.6.8.gem +0 -0
  132. data/vendor/cache/listen-0.7.2.gem +0 -0
  133. data/vendor/cache/log4r-1.1.10.gem +0 -0
  134. data/vendor/cache/lumberjack-1.0.2.gem +0 -0
  135. data/vendor/cache/method_source-0.8.1.gem +0 -0
  136. data/vendor/cache/mime-types-1.22.gem +0 -0
  137. data/vendor/cache/multi_json-1.1.0.gem +0 -0
  138. data/vendor/cache/net-scp-1.0.4.gem +0 -0
  139. data/vendor/cache/net-ssh-2.2.2.gem +0 -0
  140. data/vendor/cache/net-ssh-gateway-1.1.0.gem +0 -0
  141. data/vendor/cache/netaddr-1.5.0.gem +0 -0
  142. data/vendor/cache/nokogiri-1.5.9.gem +0 -0
  143. data/vendor/cache/open4-1.3.0.gem +0 -0
  144. data/vendor/cache/progressbar-0.9.2.gem +0 -0
  145. data/vendor/cache/pry-0.9.11.4-java.gem +0 -0
  146. data/vendor/cache/pry-0.9.11.4.gem +0 -0
  147. data/vendor/cache/rake-10.0.3.gem +0 -0
  148. data/vendor/cache/rb-fsevent-0.9.3.gem +0 -0
  149. data/vendor/cache/redcard-1.0.0.gem +0 -0
  150. data/vendor/cache/rspec-2.12.0.gem +0 -0
  151. data/vendor/cache/rspec-core-2.12.2.gem +0 -0
  152. data/vendor/cache/rspec-expectations-2.12.1.gem +0 -0
  153. data/vendor/cache/rspec-mocks-2.12.2.gem +0 -0
  154. data/vendor/cache/ruby-atmos-pure-1.0.5.gem +0 -0
  155. data/vendor/cache/ruby-hmac-0.4.0.gem +0 -0
  156. data/vendor/cache/settingslogic-2.0.9.gem +0 -0
  157. data/vendor/cache/slop-3.4.3.gem +0 -0
  158. data/vendor/cache/spoon-0.0.1.gem +0 -0
  159. data/vendor/cache/terminal-table-1.4.5.gem +0 -0
  160. data/vendor/cache/thor-0.17.0.gem +0 -0
  161. data/vendor/cache/uuidtools-2.1.3.gem +0 -0
  162. data/vendor/cache/xml-simple-1.1.2.gem +0 -0
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bosh-bootstrap
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.2
4
+ version: 0.11.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,10 +9,10 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-04-20 00:00:00.000000000 Z
12
+ date: 2013-05-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
- name: thor
15
+ name: cyoi
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
@@ -28,93 +28,13 @@ dependencies:
28
28
  - !ruby/object:Gem::Version
29
29
  version: '0'
30
30
  - !ruby/object:Gem::Dependency
31
- name: highline
32
- requirement: !ruby/object:Gem::Requirement
33
- none: false
34
- requirements:
35
- - - ! '>='
36
- - !ruby/object:Gem::Version
37
- version: '0'
38
- type: :runtime
39
- prerelease: false
40
- version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
- requirements:
43
- - - ! '>='
44
- - !ruby/object:Gem::Version
45
- version: '0'
46
- - !ruby/object:Gem::Dependency
47
- name: settingslogic
48
- requirement: !ruby/object:Gem::Requirement
49
- none: false
50
- requirements:
51
- - - ! '>='
52
- - !ruby/object:Gem::Version
53
- version: '0'
54
- type: :runtime
55
- prerelease: false
56
- version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
- requirements:
59
- - - ! '>='
60
- - !ruby/object:Gem::Version
61
- version: '0'
62
- - !ruby/object:Gem::Dependency
63
- name: POpen4
64
- requirement: !ruby/object:Gem::Requirement
65
- none: false
66
- requirements:
67
- - - ! '>='
68
- - !ruby/object:Gem::Version
69
- version: '0'
70
- type: :runtime
71
- prerelease: false
72
- version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
- requirements:
75
- - - ! '>='
76
- - !ruby/object:Gem::Version
77
- version: '0'
78
- - !ruby/object:Gem::Dependency
79
- name: net-ssh
80
- requirement: !ruby/object:Gem::Requirement
81
- none: false
82
- requirements:
83
- - - ~>
84
- - !ruby/object:Gem::Version
85
- version: 2.2.1
86
- type: :runtime
87
- prerelease: false
88
- version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
- requirements:
91
- - - ~>
92
- - !ruby/object:Gem::Version
93
- version: 2.2.1
94
- - !ruby/object:Gem::Dependency
95
- name: net-scp
96
- requirement: !ruby/object:Gem::Requirement
97
- none: false
98
- requirements:
99
- - - ~>
100
- - !ruby/object:Gem::Version
101
- version: 1.0.4
102
- type: :runtime
103
- prerelease: false
104
- version_requirements: !ruby/object:Gem::Requirement
105
- none: false
106
- requirements:
107
- - - ~>
108
- - !ruby/object:Gem::Version
109
- version: 1.0.4
110
- - !ruby/object:Gem::Dependency
111
- name: fog
31
+ name: readwritesettings
112
32
  requirement: !ruby/object:Gem::Requirement
113
33
  none: false
114
34
  requirements:
115
35
  - - ~>
116
36
  - !ruby/object:Gem::Version
117
- version: 1.8.0
37
+ version: '3.0'
118
38
  type: :runtime
119
39
  prerelease: false
120
40
  version_requirements: !ruby/object:Gem::Requirement
@@ -122,23 +42,7 @@ dependencies:
122
42
  requirements:
123
43
  - - ~>
124
44
  - !ruby/object:Gem::Version
125
- version: 1.8.0
126
- - !ruby/object:Gem::Dependency
127
- name: escape
128
- requirement: !ruby/object:Gem::Requirement
129
- none: false
130
- requirements:
131
- - - ! '>='
132
- - !ruby/object:Gem::Version
133
- version: '0'
134
- type: :runtime
135
- prerelease: false
136
- version_requirements: !ruby/object:Gem::Requirement
137
- none: false
138
- requirements:
139
- - - ! '>='
140
- - !ruby/object:Gem::Version
141
- version: '0'
45
+ version: '3.0'
142
46
  - !ruby/object:Gem::Dependency
143
47
  name: redcard
144
48
  requirement: !ruby/object:Gem::Requirement
@@ -204,13 +108,13 @@ dependencies:
204
108
  - !ruby/object:Gem::Version
205
109
  version: '0'
206
110
  - !ruby/object:Gem::Dependency
207
- name: activesupport
111
+ name: fakeweb
208
112
  requirement: !ruby/object:Gem::Requirement
209
113
  none: false
210
114
  requirements:
211
115
  - - ! '>='
212
116
  - !ruby/object:Gem::Version
213
- version: 3.0.0
117
+ version: '0'
214
118
  type: :development
215
119
  prerelease: false
216
120
  version_requirements: !ruby/object:Gem::Requirement
@@ -218,12 +122,11 @@ dependencies:
218
122
  requirements:
219
123
  - - ! '>='
220
124
  - !ruby/object:Gem::Version
221
- version: 3.0.0
222
- description: Bootstrap a micro BOSH universe from one CLI
125
+ version: '0'
126
+ description: Bootstrap a micro bosh universe from one CLI
223
127
  email:
224
128
  - drnicwilliams@gmail.com
225
- executables:
226
- - bosh-bootstrap
129
+ executables: []
227
130
  extensions: []
228
131
  extra_rdoc_files: []
229
132
  files:
@@ -231,130 +134,58 @@ files:
231
134
  - .rspec
232
135
  - .travis.yml
233
136
  - ChangeLog.md
234
- - CleanupCi.md
235
137
  - Gemfile
236
138
  - Guardfile
237
139
  - LICENSE.txt
238
140
  - README.md
239
141
  - Rakefile
240
- - bin/bosh-bootstrap
142
+ - TODO.md
241
143
  - bosh-bootstrap.gemspec
242
- - docs/README.md
243
- - docs/devstack-openstack-tutorial.md
244
144
  - lib/bosh-bootstrap.rb
245
- - lib/bosh-bootstrap/cli.rb
246
- - lib/bosh-bootstrap/commander.rb
247
- - lib/bosh-bootstrap/commander/README.md
248
- - lib/bosh-bootstrap/commander/command.rb
249
- - lib/bosh-bootstrap/commander/commands.rb
250
- - lib/bosh-bootstrap/commander/local_server.rb
251
- - lib/bosh-bootstrap/commander/remote_script_command.rb
252
- - lib/bosh-bootstrap/commander/remote_server.rb
253
- - lib/bosh-bootstrap/commander/upload_command.rb
254
- - lib/bosh-bootstrap/helpers.rb
255
- - lib/bosh-bootstrap/helpers/fog_setup.rb
256
- - lib/bosh-bootstrap/helpers/settings.rb
257
- - lib/bosh-bootstrap/helpers/settings_setter.rb
258
- - lib/bosh-bootstrap/stages.rb
259
- - lib/bosh-bootstrap/stages/stage_micro_bosh_delete.rb
260
- - lib/bosh-bootstrap/stages/stage_micro_bosh_delete/bosh_micro_delete
261
- - lib/bosh-bootstrap/stages/stage_micro_bosh_deploy.rb
262
- - lib/bosh-bootstrap/stages/stage_micro_bosh_deploy/bosh_micro_deploy
263
- - lib/bosh-bootstrap/stages/stage_micro_bosh_deploy/install_key_pair_for_user
264
- - lib/bosh-bootstrap/stages/stage_micro_bosh_download.rb
265
- - lib/bosh-bootstrap/stages/stage_micro_bosh_download/download_micro_bosh_stemcell
266
- - lib/bosh-bootstrap/stages/stage_prepare_inception_vm.rb
267
- - lib/bosh-bootstrap/stages/stage_prepare_inception_vm/configure_git
268
- - lib/bosh-bootstrap/stages/stage_prepare_inception_vm/create_vcap_user
269
- - lib/bosh-bootstrap/stages/stage_prepare_inception_vm/install_base_packages
270
- - lib/bosh-bootstrap/stages/stage_prepare_inception_vm/install_bosh
271
- - lib/bosh-bootstrap/stages/stage_prepare_inception_vm/install_bosh_plugins
272
- - lib/bosh-bootstrap/stages/stage_prepare_inception_vm/install_hub
273
- - lib/bosh-bootstrap/stages/stage_prepare_inception_vm/install_ruby
274
- - lib/bosh-bootstrap/stages/stage_prepare_inception_vm/install_useful_gems
275
- - lib/bosh-bootstrap/stages/stage_prepare_inception_vm/validate_bosh_deployer
276
- - lib/bosh-bootstrap/stages/stage_salted_password.rb
277
- - lib/bosh-bootstrap/stages/stage_salted_password/convert_salted_password
278
- - lib/bosh-bootstrap/stages/stage_setup_new_bosh.rb
279
- - lib/bosh-bootstrap/stages/stage_setup_new_bosh/setup_bosh_user
280
- - lib/bosh-bootstrap/stages/stage_validate_inception_vm.rb
281
- - lib/bosh-bootstrap/stages/stage_validate_inception_vm/validate_ubuntu
145
+ - lib/bosh-bootstrap/cli/commands/delete.rb
146
+ - lib/bosh-bootstrap/cli/commands/deploy.rb
147
+ - lib/bosh-bootstrap/cli/commands/ssh.rb
148
+ - lib/bosh-bootstrap/cli/helpers.rb
149
+ - lib/bosh-bootstrap/cli/helpers/bundle.rb
150
+ - lib/bosh-bootstrap/cli/helpers/interactions.rb
151
+ - lib/bosh-bootstrap/cli/helpers/settings.rb
152
+ - lib/bosh-bootstrap/key_pair.rb
153
+ - lib/bosh-bootstrap/microbosh.rb
154
+ - lib/bosh-bootstrap/microbosh_providers.rb
155
+ - lib/bosh-bootstrap/microbosh_providers/aws.rb
156
+ - lib/bosh-bootstrap/microbosh_providers/base.rb
157
+ - lib/bosh-bootstrap/microbosh_providers/openstack.rb
158
+ - lib/bosh-bootstrap/microbosh_providers/vsphere.rb
159
+ - lib/bosh-bootstrap/network.rb
160
+ - lib/bosh-bootstrap/network_providers.rb
161
+ - lib/bosh-bootstrap/network_providers/aws.rb
162
+ - lib/bosh-bootstrap/network_providers/dummy.rb
163
+ - lib/bosh-bootstrap/network_providers/openstack.rb
282
164
  - lib/bosh-bootstrap/version.rb
283
- - lib/bosh/providers.rb
284
- - lib/bosh/providers/README.md
285
- - lib/bosh/providers/aws.rb
286
- - lib/bosh/providers/base_provider.rb
287
- - lib/bosh/providers/openstack.rb
165
+ - lib/bosh/cli/commands/bootstrap.rb
288
166
  - spec/assets/.gitkeep
289
- - spec/assets/bosh/public_stemcells/aws_micro.out
290
- - spec/assets/micro_bosh_yml/micro_bosh.aws_ec2.yml
291
- - spec/assets/micro_bosh_yml/micro_bosh.aws_vpc.yml
167
+ - spec/assets/microbosh_yml/micro_bosh.aws_ec2.yml
168
+ - spec/assets/microbosh_yml/micro_bosh.aws_vpc.yml
169
+ - spec/assets/microbosh_yml/micro_bosh.openstack.yml
170
+ - spec/assets/microbosh_yml/micro_bosh.vsphere.yml
292
171
  - spec/integration/.gitkeep
293
- - spec/integration/aws/aws_basic_spec.rb
294
- - spec/integration/aws/aws_edge_prebuilt_ami_spec.rb
295
- - spec/integration/aws/aws_edge_prebuilt_spec.rb
296
- - spec/integration/aws/aws_edge_spec.rb
172
+ - spec/integration/aws/aws_ec2_basic_spec.rb
297
173
  - spec/integration/aws/aws_helpers.rb
298
174
  - spec/spec_helper.rb
175
+ - spec/support/capture_stdout.rb
299
176
  - spec/unit/.gitkeep
300
- - spec/unit/aws_spec.rb
301
- - spec/unit/bosh/providers/aws_spec.rb
302
- - spec/unit/cli_spec.rb
303
- - spec/unit/cli_ssh_spec.rb
304
- - spec/unit/cli_upgrade_inception_spec.rb
305
- - spec/unit/settings_setter_spec.rb
306
- - vendor/cache/POpen4-0.1.4.gem
307
- - vendor/cache/Platform-0.4.0.gem
308
- - vendor/cache/activesupport-3.2.8.gem
309
- - vendor/cache/awesome_print-1.1.0.gem
310
- - vendor/cache/aws-s3-0.6.3.gem
311
- - vendor/cache/blobstore_client-0.4.0.gem
312
- - vendor/cache/bosh_cli-1.0.3.gem
313
- - vendor/cache/bosh_common-0.5.4.gem
314
- - vendor/cache/builder-3.2.0.gem
315
- - vendor/cache/coderay-1.0.8.gem
316
- - vendor/cache/diff-lcs-1.1.3.gem
317
- - vendor/cache/escape-0.0.4.gem
318
- - vendor/cache/excon-0.20.1.gem
319
- - vendor/cache/fog-1.8.0.gem
320
- - vendor/cache/formatador-0.2.4.gem
321
- - vendor/cache/guard-1.6.2.gem
322
- - vendor/cache/guard-rspec-2.4.0.gem
323
- - vendor/cache/highline-1.6.18.gem
324
- - vendor/cache/httpclient-2.2.4.gem
325
- - vendor/cache/i18n-0.6.1.gem
326
- - vendor/cache/json_pure-1.6.8.gem
327
- - vendor/cache/listen-0.7.2.gem
328
- - vendor/cache/log4r-1.1.10.gem
329
- - vendor/cache/lumberjack-1.0.2.gem
330
- - vendor/cache/method_source-0.8.1.gem
331
- - vendor/cache/mime-types-1.22.gem
332
- - vendor/cache/multi_json-1.1.0.gem
333
- - vendor/cache/net-scp-1.0.4.gem
334
- - vendor/cache/net-ssh-2.2.2.gem
335
- - vendor/cache/net-ssh-gateway-1.1.0.gem
336
- - vendor/cache/netaddr-1.5.0.gem
337
- - vendor/cache/nokogiri-1.5.9.gem
338
- - vendor/cache/open4-1.3.0.gem
339
- - vendor/cache/progressbar-0.9.2.gem
340
- - vendor/cache/pry-0.9.11.4-java.gem
341
- - vendor/cache/pry-0.9.11.4.gem
342
- - vendor/cache/rake-10.0.3.gem
343
- - vendor/cache/rb-fsevent-0.9.3.gem
344
- - vendor/cache/redcard-1.0.0.gem
345
- - vendor/cache/rspec-2.12.0.gem
346
- - vendor/cache/rspec-core-2.12.2.gem
347
- - vendor/cache/rspec-expectations-2.12.1.gem
348
- - vendor/cache/rspec-mocks-2.12.2.gem
349
- - vendor/cache/ruby-atmos-pure-1.0.5.gem
350
- - vendor/cache/ruby-hmac-0.4.0.gem
351
- - vendor/cache/settingslogic-2.0.9.gem
352
- - vendor/cache/slop-3.4.3.gem
353
- - vendor/cache/spoon-0.0.1.gem
354
- - vendor/cache/terminal-table-1.4.5.gem
355
- - vendor/cache/thor-0.17.0.gem
356
- - vendor/cache/uuidtools-2.1.3.gem
357
- - vendor/cache/xml-simple-1.1.2.gem
177
+ - spec/unit/cli/bootstrap_spec.rb
178
+ - spec/unit/commands/delete_spec.rb
179
+ - spec/unit/commands/deploy_spec.rb
180
+ - spec/unit/commands/ssh_spec.rb
181
+ - spec/unit/key_pair_spec.rb
182
+ - spec/unit/microbosh_providers/aws_spec.rb
183
+ - spec/unit/microbosh_providers/openstack_spec.rb
184
+ - spec/unit/microbosh_providers/vsphere_spec.rb
185
+ - spec/unit/microbosh_spec.rb
186
+ - spec/unit/network_providers/aws_spec.rb
187
+ - spec/unit/network_providers/openstack_spec.rb
188
+ - spec/unit/network_spec.rb
358
189
  homepage: https://github.com/StarkAndWayne/bosh-bootstrap
359
190
  licenses: []
360
191
  post_install_message:
@@ -375,30 +206,35 @@ required_rubygems_version: !ruby/object:Gem::Requirement
375
206
  version: '0'
376
207
  segments:
377
208
  - 0
378
- hash: -783619145019025745
209
+ hash: 2107311079188106960
379
210
  requirements: []
380
211
  rubyforge_project:
381
212
  rubygems_version: 1.8.25
382
213
  signing_key:
383
214
  specification_version: 3
384
- summary: bosh-bootstrap is a command line tool that you can run on your laptop and
385
- automatically get a microbosh (and an inception VM) deployed on either AWS or OpenStack.
215
+ summary: bosh-bootstrap configures and deploys a microbosh deployed on either AWS
216
+ or OpenStack.
386
217
  test_files:
387
218
  - spec/assets/.gitkeep
388
- - spec/assets/bosh/public_stemcells/aws_micro.out
389
- - spec/assets/micro_bosh_yml/micro_bosh.aws_ec2.yml
390
- - spec/assets/micro_bosh_yml/micro_bosh.aws_vpc.yml
219
+ - spec/assets/microbosh_yml/micro_bosh.aws_ec2.yml
220
+ - spec/assets/microbosh_yml/micro_bosh.aws_vpc.yml
221
+ - spec/assets/microbosh_yml/micro_bosh.openstack.yml
222
+ - spec/assets/microbosh_yml/micro_bosh.vsphere.yml
391
223
  - spec/integration/.gitkeep
392
- - spec/integration/aws/aws_basic_spec.rb
393
- - spec/integration/aws/aws_edge_prebuilt_ami_spec.rb
394
- - spec/integration/aws/aws_edge_prebuilt_spec.rb
395
- - spec/integration/aws/aws_edge_spec.rb
224
+ - spec/integration/aws/aws_ec2_basic_spec.rb
396
225
  - spec/integration/aws/aws_helpers.rb
397
226
  - spec/spec_helper.rb
227
+ - spec/support/capture_stdout.rb
398
228
  - spec/unit/.gitkeep
399
- - spec/unit/aws_spec.rb
400
- - spec/unit/bosh/providers/aws_spec.rb
401
- - spec/unit/cli_spec.rb
402
- - spec/unit/cli_ssh_spec.rb
403
- - spec/unit/cli_upgrade_inception_spec.rb
404
- - spec/unit/settings_setter_spec.rb
229
+ - spec/unit/cli/bootstrap_spec.rb
230
+ - spec/unit/commands/delete_spec.rb
231
+ - spec/unit/commands/deploy_spec.rb
232
+ - spec/unit/commands/ssh_spec.rb
233
+ - spec/unit/key_pair_spec.rb
234
+ - spec/unit/microbosh_providers/aws_spec.rb
235
+ - spec/unit/microbosh_providers/openstack_spec.rb
236
+ - spec/unit/microbosh_providers/vsphere_spec.rb
237
+ - spec/unit/microbosh_spec.rb
238
+ - spec/unit/network_providers/aws_spec.rb
239
+ - spec/unit/network_providers/openstack_spec.rb
240
+ - spec/unit/network_spec.rb
data/CleanupCi.md DELETED
@@ -1,8 +0,0 @@
1
- # Clean up Ci
2
-
3
- Currently, the travis runs are not self-destroying the servers. If CI fails, ask @drnic to run:
4
-
5
- ```
6
- fog = Fog::Compute::AWS.new(Fog.credentials.merge(region: 'us-east-1'))
7
- fog.security_groups.select {|sg| p sg.name =~ /inception-vm/}.each {|sg| fog.servers.select {|s| s.security_group_ids.include? sg.group_id}.each {|s| puts s; s.destroy}}; nil
8
- ```
data/bin/bosh-bootstrap DELETED
@@ -1,8 +0,0 @@
1
- #!/usr/bin/env ruby
2
- $:.push File.dirname(__FILE__) + '/../lib'
3
-
4
- require "rubygems"
5
- require "bosh-bootstrap"
6
- require "bosh-bootstrap/cli"
7
-
8
- Bosh::Bootstrap::Cli.start
data/docs/README.md DELETED
@@ -1,3 +0,0 @@
1
- #Tutorials
2
-
3
- [bosh-bootstrap on OpenStack](devstack-openstack-tutorial.md)
@@ -1,215 +0,0 @@
1
- #Deploy bosh-bootstrap on OpenStack (Using DevStack)
2
-
3
-
4
- This tutorial is intended for developers/testers without prior experience with OpenStack. However, it is also useful for OpenStack users as it provides interesting insights into this highly popular project.
5
- It is mainly designed to run bosh-bootstrap with minimum hardware requirements.
6
-
7
- ######Note:
8
- DevStack is only used for development/testing purposes. It is not for suitable for production mode.
9
- However, this tutorial still holds good for production scale OpenStack setup as there is hardly anything you have to do on your own,whatever the underlying IaaS is :)
10
-
11
- ##Prerequisities
12
-
13
- ###Hardware (Minimum)
14
-
15
- ```
16
-
17
- 4GB RAM (8 GB Preferred), 2 CPU Cores (4 Cores Preferred), 160GB Hard Disk
18
-
19
- ```
20
-
21
- ######Note:
22
- The hardware requirements will scale up when you move towards deploying bosh-cloudfoundry (It's not covered in this tutorial)
23
-
24
- ###Software
25
-
26
- ```
27
-
28
- 1. OS - Ubuntu 12.04 Server
29
- 2. VM Image - Ubuntu 10.04 Server
30
- 3. IaaS - OpenStack (DevStack in this case)
31
-
32
- ```
33
-
34
- ##Preparation
35
-
36
- #####Download devstack
37
-
38
- ```
39
-
40
- git clone https://github.com/openstack-dev/devstack.git
41
-
42
- ```
43
- #####Modify end-points in devstack/files/keystone_data.sh
44
-
45
- Change
46
-
47
- ```
48
-
49
- keystone endpoint-create \
50
- --region RegionOne \
51
- --service_id $GLANCE_SERVICE \
52
- --publicurl "http://$SERVICE_HOST:9292" \
53
- --adminurl "http://$SERVICE_HOST:9292" \
54
- --internalurl "http://$SERVICE_HOST:9292"
55
-
56
- ```
57
-
58
- to
59
-
60
- ```
61
-
62
- keystone endpoint-create \
63
- --region RegionOne \
64
- --service_id $GLANCE_SERVICE \
65
- --publicurl "http://$SERVICE_HOST:9292/v1.0" \
66
- --adminurl "http://$SERVICE_HOST:9292/v1.0" \
67
- --internalurl "http://$SERVICE_HOST:9292/v1.0"
68
-
69
- ```
70
-
71
- #####DevStack has a 5GB volume limit. However, you can increase it by modifying the following line in devstack/stackrc
72
-
73
- ```
74
-
75
- VOLUME_BACKING_FILE_SIZE=${VOLUME_BACKING_FILE_SIZE:-5130M}
76
-
77
- ```
78
-
79
- ######Note :
80
- This tutorial is based on 5GB volume limit only. But in general, having atleast 10GB volume for
81
- each instance is preferred. Feel free to play with volume limit.
82
-
83
- #####Install devstack
84
-
85
- ```
86
-
87
- cd devstack & ./stack.sh
88
-
89
- ```
90
-
91
- Define OpenStack env - OS_USERNAME,OS_PASSWORD,OS_TENANT_NAME,OS_AUTH_URL
92
-
93
- #####Download Ubuntu 10.04 server cloud image from http://cloud-images.ubuntu.com
94
-
95
- ```
96
-
97
- wget http://cloud-images.ubuntu.com/lucid/current/lucid-server-cloudimg-amd64-disk1.img
98
-
99
- ```
100
-
101
- #####Add image in OpenStack
102
-
103
- ```
104
-
105
- $ name=Ubuntu_10.04
106
- $ image=lucid-server-cloudimg-amd64-disk1.img
107
- $ glance image-create --name=$name --is-public=true --container-format=bare --disk-format=qcow2 < $image
108
-
109
- ```
110
-
111
- #####Add flavor [Make sure to add ephemeral disk as shown]
112
-
113
- ```
114
-
115
- $ nova flavor-create m1.bosh 6 2048 20 2 --ephemeral 20 --rxtx-factor 1 --is-public true
116
-
117
- ```
118
-
119
- #####Also, install ruby 1.9.3. Use rvm or any other method.
120
-
121
- #####Generate keypair (OPTIONAL)
122
- ######Note :
123
- As of 0.8+ bosh-bootstrap deploy uses openstack/aws to create a dedicated keypair and its stored in ~/.bosh_bootstrap/ssh/inception
124
-
125
- ```
126
-
127
- ssh-keygen
128
-
129
- ```
130
- #####Set up git
131
-
132
- ```
133
-
134
- git config --global user.name "Your Name Here"
135
- git config --global user.email "your_email@example.com"
136
-
137
- ```
138
-
139
- We are done preparing the IaaS(OpenStack) part. Now lets move up the stack.
140
-
141
- ##Play with bosh-bootstrap
142
-
143
- #####Download Gem
144
-
145
- ```
146
-
147
- gem install bosh-bootstrap
148
-
149
- ```
150
-
151
- #####bosh-bootstrap is designed to boot instance with 32GB inception VM and 16GB for BOSH server.
152
- For testing/development purpose, we will scale down the requirements(for devstack) to 3GB and 2GB respectively. Or change as per your requirements
153
-
154
- ```
155
-
156
- export BOSH_VOLUME_SIZE=2 OR export MICROBOSH_VOLUME_SIZE=2 OR export MICRO_BOSH_VOLUME_SIZE=2
157
-
158
- ```
159
-
160
- Run
161
-
162
- ```
163
-
164
- INCEPTION_VOLUME_SIZE=3 bosh-bootstrap deploy
165
-
166
- ```
167
-
168
- #####Start bootstrapping
169
- Deploy
170
-
171
- ```
172
-
173
- bosh-bootstrap deploy
174
-
175
- ```
176
-
177
- Answer few questions asked by bosh-bootstrap in the initial stages and then, sit back and relax (hopefully!)
178
-
179
- ```
180
-
181
- Stage 1: Choose infrastructure
182
- Stage 2: BOSH configuration
183
- Stage 3: Create/Allocate the Inception VM
184
- Stage 4: Preparing the Inception VM
185
- Stage 5: Deploying micro BOSH
186
- Stage 6: Setup bosh
187
-
188
- ```
189
-
190
- ######Notes:
191
-
192
- a) If the process fails in between due to some reason, you can restart bootstrapping after correcting the error, bootstrapping will continue from the point where it failed instead of from the beginning.
193
-
194
- b) If you want to start the process from the beginning, delete "~/.bosh-boostrap/manifest.yml" file.
195
-
196
- c) In case, the Inception VM fails to connect to internet or bosh-bootstrap is unable to mount volume to the instance, then the most probable reason is due to floating ip.Then
197
-
198
- ```
199
-
200
- Disassociate floating IP from the OpenStack dashboard.
201
-
202
- Edit "~/.bosh-bootstrap/manifest.yml" file and change the public IP to fixed IP of the instance.
203
-
204
- Redeploy bosh-bootstrap
205
-
206
- ```
207
-
208
- #####Finishing bootstrap
209
-
210
- i) If everything goes fine, you can see the list of VMs created by bosh-bootstrap. Also you can ssh into the inception VM by "bosh-bootstrap ssh". Check BOSH status and so on.
211
-
212
- ii) You can see the list of commands by executing "bosh-bootstrap help"
213
-
214
- iii) In case, you face any issue please raise a [ticket](https://github.com/StarkAndWayne/bosh-bootstrap/issues).
215
-
@@ -1,5 +0,0 @@
1
- # Providers
2
-
3
- Currently these files are kept in sync with bosh-cloudfoundry project.
4
-
5
- TODO - extract into shared library.