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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8dc9de58ac096054c0ccd4ad0cbc3447a29b8fba
4
- data.tar.gz: 1b8b13dd3ac5e0f6f2649e32cbeeaa8edc9fe020
3
+ metadata.gz: 0d12e46e616c03b0df0bd91b120daee150235bf8
4
+ data.tar.gz: bdea990f0122cbc62e37f265401553c576114581
5
5
  SHA512:
6
- metadata.gz: a0b72e9514b89a054acd07b39b3e5b15dac717ef53c3711dc227a8e69882e600712f037d65b913e8f59a78a98213d466638b6830917910b00c1a852d63cb618b
7
- data.tar.gz: a51aef168321247817b5c1b623e6e6aec859b328cef9a7d336eb99a3776e4e439aa0a545bcc70f602d9f6bb7b4c4ee3125f3a4f26cd76193bbedb508f67f5583
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.27'
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
- puts server
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' => 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 #{server.id} on #{driver_url}"
171
+ action_handler.performed_action "machine #{machine_spec.name} created as #{server_id} on #{driver_url}"
171
172
  server
172
173
  end
173
174
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chef-metal-fogsphere
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0.alpha.27
4
+ version: 0.1.0.alpha.28
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Wrock