chef-metal-fogsphere 0.1.0.alpha.27 → 0.1.0.alpha.28
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/chef-metal-fogsphere.gemspec +1 -1
- data/lib/clc_driver.rb +4 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0d12e46e616c03b0df0bd91b120daee150235bf8
|
4
|
+
data.tar.gz: bdea990f0122cbc62e37f265401553c576114581
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ba3741cab22ace6d5cff983f9615d3cb13b913de4c2b9796564f4f495b278d35fc2f6fc9cc617e15067c3dc7469609e83f074971a3be31d99cee3a9860bb1291
|
7
|
+
data.tar.gz: cebe4a219a82c38788e0ae25a5fba1ae713952e6fe17b1a4b3e0ac8d8113c12b2f1fc4fba969b145e07a3cbf13b34c990bd15e673ae6059b76db4b3f719c28ce
|
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |gem|
|
6
6
|
gem.name = "chef-metal-fogsphere"
|
7
|
-
gem.version = '0.1.0.alpha.
|
7
|
+
gem.version = '0.1.0.alpha.28'
|
8
8
|
gem.license = 'Apache 2.0'
|
9
9
|
gem.authors = ["Matt Wrock"]
|
10
10
|
gem.email = ["matt@centurylinkcloud.com"]
|
data/lib/clc_driver.rb
CHANGED
@@ -139,13 +139,14 @@ module ChefMetalVsphere
|
|
139
139
|
begin
|
140
140
|
server = compute.get_virtual_machine("#{bootstrap_options[:dest_folder]}/#{machine_spec.name}", bootstrap_options[:datacenter])
|
141
141
|
Chef::Log.info "machine already created: #{bootstrap_options[:dest_folder]}/#{machine_spec.name}"
|
142
|
-
|
142
|
+
server_id = server['id']
|
143
143
|
rescue Fog::Compute::Vsphere::NotFound
|
144
144
|
end
|
145
145
|
|
146
146
|
if ! server
|
147
147
|
clone_results = compute.vm_clone(convert_to_strings(bootstrap_options))
|
148
148
|
server = compute.servers.get(clone_results['new_vm']['id'])
|
149
|
+
server_id = server.id
|
149
150
|
if(bootstrap_options[:additional_disk_size_gb] && bootstrap_options[:additional_disk_size_gb].is_a?(Integer) && bootstrap_options[:additional_disk_size_gb] > 0)
|
150
151
|
volume_options = {
|
151
152
|
'server_id' => server.id,
|
@@ -159,7 +160,7 @@ module ChefMetalVsphere
|
|
159
160
|
machine_spec.location = {
|
160
161
|
'driver_url' => driver_url,
|
161
162
|
'driver_version' => '0.0.1',
|
162
|
-
'server_id' =>
|
163
|
+
'server_id' => server_id,
|
163
164
|
'allocated_at' => Time.now.utc.to_s
|
164
165
|
}
|
165
166
|
machine_spec.location['key_name'] = bootstrap_options[:key_name] if bootstrap_options[:key_name]
|
@@ -167,7 +168,7 @@ module ChefMetalVsphere
|
|
167
168
|
machine_spec.location[key] = machine_options[key.to_sym] if machine_options[key.to_sym]
|
168
169
|
end
|
169
170
|
|
170
|
-
action_handler.performed_action "machine #{machine_spec.name} created as #{
|
171
|
+
action_handler.performed_action "machine #{machine_spec.name} created as #{server_id} on #{driver_url}"
|
171
172
|
server
|
172
173
|
end
|
173
174
|
|