clc-chef-metal-vsphere 0.3.23 → 0.3.24

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: 1f410895408718c56d212dc25ff9e335335a59d0
4
- data.tar.gz: adf5d2c8da935f61827dccf8f382339ccc32992c
3
+ metadata.gz: f41902a9b6b5ce10b4454928abf90ccb06983904
4
+ data.tar.gz: 7900df3c1cff8fc04592213f2984de1c29926c23
5
5
  SHA512:
6
- metadata.gz: e658a1fab56d10ea386eafdbc11539277ea642ee0d07f27afb640192ac3247589dcc729b6e9c032db24fb213153c12f91fc3d49324bfa111caeb17b156808a14
7
- data.tar.gz: 7383c8e350d345185515f55ff3ff9b852bfbf753a4fe55606a12918c213acaedc2280ad69a6f2cf52bef6084dbddf164af8a8cf5754bc5dac61b13f5805d873b
6
+ metadata.gz: c1b92bd25d8c18df12af9b86950b24e07055b5f034a2d9fb32916244056758959b461469275471b393dafdee39e9fd63b09d648afe0fa1ad33b3b1ed9b62d9df
7
+ data.tar.gz: 7993ceabed8a0da4931f14991b9da9f470b486b0958bf697b47146f28d1f6e7717cbe1f3d02e4b796163eb907dd308f24e5cbac8a7518d89240a81f724f07b4b
@@ -1,3 +1,3 @@
1
1
  module ChefMetalVsphere
2
- VERSION = '0.3.23'
2
+ VERSION = '0.3.24'
3
3
  end
@@ -209,7 +209,7 @@ module ChefMetalVsphere
209
209
  action_handler.report_progress "waiting for customizations to complete and find #{vm_ip}"
210
210
  now = Time.now.utc
211
211
  until (Time.now.utc - now) > 90 || (vm.guest.net.map { |net| net.ipAddress}.flatten).include?(vm_ip) do
212
- print "-"
212
+ puts "IP addresses on #{machine_spec.name} are #{vm.guest.net.map { |net| net.ipAddress}.flatten}"
213
213
  sleep 5
214
214
  end
215
215
  if !(vm.guest.net.map { |net| net.ipAddress}.flatten).include?(vm_ip)
@@ -238,14 +238,20 @@ module ChefMetalVsphere
238
238
  if(options[:customization_spec].is_a?(Hash))
239
239
  cust_options = options[:customization_spec]
240
240
  raise ArgumentError, "domain is required" unless cust_options.key?(:domain)
241
+ cust_ip_settings = nil
241
242
  if cust_options.key?(:ipsettings) and cust_options[:ipsettings].key?(:ip)
242
243
  raise ArgumentError, "ip and subnetMask is required for static ip" unless cust_options[:ipsettings].key?(:ip) and
243
244
  cust_options[:ipsettings].key?(:subnetMask)
244
245
  cust_ip_settings = RbVmomi::VIM::CustomizationIPSettings.new(cust_options[:ipsettings])
246
+ puts "customizing #{vm_name} with static IP cust_options[:ipsettings][:ip]"
245
247
  cust_ip_settings.ip = RbVmomi::VIM::CustomizationFixedIp(:ipAddress => cust_options[:ipsettings][:ip])
246
248
  end
247
249
  cust_domain = cust_options[:domain]
248
- cust_ip_settings ||= RbVmomi::VIM::CustomizationIPSettings.new(:ip => RbVmomi::VIM::CustomizationDhcpIpGenerator.new())
250
+ if cust_ip_settings.nil?
251
+ puts "customizing #{vm_name} with dynamic IP"
252
+ cust_ip_settings= RbVmomi::VIM::CustomizationIPSettings.new(:ip => RbVmomi::VIM::CustomizationDhcpIpGenerator.new())
253
+ end
254
+
249
255
  cust_ip_settings.dnsDomain = cust_domain
250
256
  cust_global_ip_settings = RbVmomi::VIM::CustomizationGlobalIPSettings.new
251
257
  cust_global_ip_settings.dnsServerList = cust_ip_settings.dnsServerList
@@ -10,16 +10,19 @@
10
10
  :create_timeout => 600,
11
11
  :bootstrap_options => {
12
12
  :datacenter => 'QA1',
13
- :template_name => 'WIN2012R2DTC-64',
13
+ :template_name => 'UBUNTU-12-64-TEMPLATE',
14
+ #:template_name => 'WIN2012R2DTC-64',
14
15
  :vm_folder => 'DLAB',
15
16
  :datastore => 'QA1-2-SFIRE-01',
16
17
  :num_cpus => 2,
17
- :network_name => ['vlan_20_172.21.20', 'vlan10_172.21.10-vm'],
18
+ :network_name => ['vlan_20_172.21.20'],
19
+ #:network_name => ['vlan_20_172.21.20', 'vlan10_172.21.10-vm'],
18
20
  :memory_mb => 4096,
19
21
  :resource_pool => 'CLSTR02/DLAB',
20
22
  :additional_disk_size_gb => 50,
21
23
  :ssh => {
22
- :user => 'administrator',
24
+ :user => 'root',
25
+ #:user => 'administrator',
23
26
  :password => 'Password123',
24
27
  :paranoid => false,
25
28
  :port => 22
@@ -41,3 +44,4 @@
41
44
  },
42
45
  :log_level => :debug
43
46
  }
47
+
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: clc-chef-metal-vsphere
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.23
4
+ version: 0.3.24
5
5
  platform: ruby
6
6
  authors:
7
7
  - CenturyLink Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-16 00:00:00.000000000 Z
11
+ date: 2014-07-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: chef