bosh-stemcell 1.3130.0 → 1.3137.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 867e11511075e3aa627cc0b5d655538791e96025
4
- data.tar.gz: 1461ebf36af32b878e9011668b3b6e1c95fa4b20
3
+ metadata.gz: 98381535bdb5531edab4ec928eaa9a1234d472c3
4
+ data.tar.gz: 33276a1a1bb0e7e4ad971df221bee37bdeb8d351
5
5
  SHA512:
6
- metadata.gz: 9ee57ec160f46b64de853816365a68db6b2c31e2555441e3c3cdf22d47602ed1defa6b3a58c3154112bb4d20a57c1c514e76bbb0e1c5e84aad60c1f478847ae8
7
- data.tar.gz: 262a579143f084c3be0b0096cc391e67392bca33344d3657dc7af32d1ca5deef8728ae2bf8e2121db82a524d5f210ada87d01c23b412c07767de07c555d86d78
6
+ metadata.gz: fa50963622002b559bf11f4afa5a7440c073a63cf4ee0379d9aa5a80190f1924a48e1f407278db0cd4673f5c3b36eda13c6727f1c568f0eaf9d12c1ab347c4fe
7
+ data.tar.gz: e4e96d9cfe249f7463729153d9ca3f48e86e4849e4f2418eef536bb97e300c1ad1164cb378dc5ac341b096bea954bb582de006d9f17a7bff05e687a817fe25a1
@@ -167,6 +167,8 @@ module Bosh::Stemcell
167
167
  ' --tag ~exclude_on_aws'
168
168
  when 'openstack'
169
169
  ' --tag ~exclude_on_openstack'
170
+ when 'azure'
171
+ ' --tag ~exclude_on_azure'
170
172
  else
171
173
  ''
172
174
  end
@@ -12,6 +12,8 @@ module Bosh::Stemcell
12
12
  Warden.new
13
13
  when 'vcloud'
14
14
  Vcloud.new
15
+ when 'azure'
16
+ Azure.new
15
17
  when 'null'
16
18
  NullInfrastructure.new
17
19
  else
@@ -106,5 +108,15 @@ module Bosh::Stemcell
106
108
  {'root_device_name' => '/dev/sda1'}
107
109
  end
108
110
  end
111
+
112
+ class Azure < Base
113
+ def initialize
114
+ super(name: 'azure', hypervisor: 'hyperv', default_disk_size: 3072, disk_formats: ['vhd'])
115
+ end
116
+
117
+ def additional_cloud_properties
118
+ {'root_device_name' => '/dev/sda1'}
119
+ end
120
+ end
109
121
  end
110
122
  end
@@ -46,11 +46,13 @@ module Bosh::Stemcell
46
46
  when Infrastructure::OpenStack then
47
47
  openstack_stages
48
48
  when Infrastructure::Vsphere then
49
- vsphere_stages
49
+ vsphere_vcloud_stages
50
50
  when Infrastructure::Vcloud then
51
- vcloud_stages
51
+ vsphere_vcloud_stages
52
52
  when Infrastructure::Warden then
53
53
  warden_stages
54
+ when Infrastructure::Azure then
55
+ azure_stages
54
56
  end
55
57
 
56
58
  stages.concat(finish_stemcell_stages)
@@ -64,6 +66,8 @@ module Bosh::Stemcell
64
66
  qcow2_package_stages
65
67
  when 'ovf' then
66
68
  ovf_package_stages
69
+ when 'vhd' then
70
+ vhd_package_stages
67
71
  when 'files' then
68
72
  files_package_stages
69
73
  end
@@ -74,132 +78,55 @@ module Bosh::Stemcell
74
78
  def_delegators :@definition, :infrastructure, :operating_system, :agent
75
79
 
76
80
  def openstack_stages
77
- if is_centos? || is_rhel?
81
+ stages = if is_centos? || is_rhel?
78
82
  [
79
83
  :system_network,
80
- # Misc
81
- :system_parameters,
82
- # Finalisation,
83
- :bosh_clean,
84
- :bosh_harden,
85
- :bosh_disable_password_authentication,
86
- :bosh_openstack_agent_settings,
87
- :disable_blank_passwords,
88
- :bosh_clean_ssh,
89
- :image_create,
90
- :image_install_grub,
91
84
  ]
92
85
  else
93
86
  [
94
87
  :system_network,
95
- # Misc
96
88
  :system_openstack_clock,
97
89
  :system_openstack_modules,
98
- :system_parameters,
99
- # Finalisation,
100
- :bosh_clean,
101
- :bosh_harden,
102
- :bosh_disable_password_authentication,
103
- :bosh_openstack_agent_settings,
104
- :disable_blank_passwords,
105
- :bosh_clean_ssh,
106
- # Image/bootloader
107
- :image_create,
108
- :image_install_grub,
109
90
  ]
110
91
  end
111
- end
112
92
 
113
- def finish_stemcell_stages
114
- [
115
- :bosh_package_list
93
+ stages += [
94
+ :system_parameters,
95
+ :bosh_clean,
96
+ :bosh_harden,
97
+ :bosh_openstack_agent_settings,
98
+ :bosh_clean_ssh,
99
+ :image_create,
100
+ :image_install_grub,
116
101
  ]
117
102
  end
118
103
 
119
- def vsphere_stages
120
- if is_centos?
121
- [
122
- :system_network,
123
- :system_open_vm_tools,
124
- :system_vsphere_cdrom,
125
- :system_parameters,
126
- :bosh_clean,
127
- :bosh_harden,
128
- :bosh_vsphere_agent_settings,
129
- :disable_blank_passwords,
130
- :bosh_clean_ssh,
131
- :image_create,
132
- :image_install_grub,
133
- ]
134
- else
135
- [
136
- :system_network,
137
- :system_open_vm_tools,
138
- :system_vsphere_cdrom,
139
- # Misc
140
- :system_parameters,
141
- # Finalisation
142
- :bosh_clean,
143
- :bosh_harden,
144
- :bosh_vsphere_agent_settings,
145
- :disable_blank_passwords,
146
- :bosh_clean_ssh,
147
- # Image/bootloader
148
- :image_create,
149
- :image_install_grub,
150
- ]
151
- end
152
- end
153
-
154
- def vcloud_stages
155
- if is_centos?
156
- [
157
- :system_network,
158
- :system_open_vm_tools,
159
- :system_vsphere_cdrom,
160
- :system_parameters,
161
- :bosh_clean,
162
- :bosh_harden,
163
- :bosh_vsphere_agent_settings,
164
- :disable_blank_passwords,
165
- :bosh_clean_ssh,
166
- :image_create,
167
- :image_install_grub,
168
- ]
169
- else
170
- [
171
- :system_network,
172
- :system_open_vm_tools,
173
- :system_vsphere_cdrom,
174
- # Misc
175
- :system_parameters,
176
- # Finalisation
177
- :bosh_clean,
178
- :bosh_harden,
179
- :bosh_vsphere_agent_settings,
180
- :disable_blank_passwords,
181
- :bosh_clean_ssh,
182
- # Image/bootloader
183
- :image_create,
184
- :image_install_grub,
185
- ]
186
- end
104
+ def vsphere_vcloud_stages
105
+ [
106
+ :system_network,
107
+ :system_open_vm_tools,
108
+ :disable_blank_passwords,
109
+ :system_vsphere_cdrom,
110
+ :system_parameters,
111
+ :bosh_clean,
112
+ :bosh_harden,
113
+ :bosh_enable_password_authentication,
114
+ :bosh_vsphere_agent_settings,
115
+ :bosh_clean_ssh,
116
+ :image_create,
117
+ :image_install_grub,
118
+ ]
187
119
  end
188
120
 
189
121
  def aws_stages
190
122
  [
191
- # Misc
192
123
  :system_network,
193
124
  :system_aws_modules,
194
125
  :system_parameters,
195
- # Finalisation
196
126
  :bosh_clean,
197
127
  :bosh_harden,
198
- :bosh_disable_password_authentication,
199
128
  :bosh_aws_agent_settings,
200
- :disable_blank_passwords,
201
129
  :bosh_clean_ssh,
202
- # Image/bootloader
203
130
  :image_create,
204
131
  :image_install_grub,
205
132
  :image_aws_update_grub,
@@ -210,17 +137,36 @@ module Bosh::Stemcell
210
137
  [
211
138
  :system_parameters,
212
139
  :base_warden,
213
- # Finalisation
214
140
  :bosh_clean,
215
141
  :bosh_harden,
142
+ :bosh_enable_password_authentication,
143
+ :bosh_clean_ssh,
144
+ :image_create,
145
+ ]
146
+ end
147
+
148
+ def azure_stages
149
+ [
150
+ :system_azure_network,
151
+ :system_azure_wala,
152
+ :system_parameters,
153
+ :bosh_clean,
154
+ :bosh_harden,
155
+ :bosh_azure_agent_settings,
216
156
  :bosh_clean_ssh,
217
- # only used for spec test
218
157
  :image_create,
158
+ :image_install_grub,
159
+ ]
160
+ end
161
+
162
+ def finish_stemcell_stages
163
+ [
164
+ :bosh_package_list
219
165
  ]
220
166
  end
221
167
 
222
168
  def centos_os_stages
223
- [
169
+ [
224
170
  :base_centos,
225
171
  :base_runsvdir,
226
172
  :base_centos_packages,
@@ -297,6 +243,7 @@ module Bosh::Stemcell
297
243
  :bosh_monit,
298
244
  :bosh_ntpdate,
299
245
  :bosh_sudoers,
246
+ :disable_blank_passwords,
300
247
  ]
301
248
  end
302
249
 
@@ -320,6 +267,12 @@ module Bosh::Stemcell
320
267
  ]
321
268
  end
322
269
 
270
+ def vhd_package_stages
271
+ [
272
+ :prepare_vhd_image_stemcell,
273
+ ]
274
+ end
275
+
323
276
  def files_package_stages
324
277
  [
325
278
  :prepare_files_image_stemcell,
@@ -1,5 +1,5 @@
1
1
  module Bosh
2
2
  module Stemcell
3
- VERSION = '1.3130.0'
3
+ VERSION = '1.3137.0'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bosh-stemcell
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3130.0
4
+ version: 1.3137.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pivotal
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-11-10 00:00:00.000000000 Z
11
+ date: 2015-11-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bosh_aws_cpi
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 1.3130.0
33
+ version: 1.3137.0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 1.3130.0
40
+ version: 1.3137.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: fakefs
43
43
  requirement: !ruby/object:Gem::Requirement