clc-chef-metal-vsphere 0.3.6 → 0.3.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/chef_metal_vsphere/version.rb +1 -1
- data/lib/chef_metal_vsphere/vsphere_driver.rb +2 -0
- 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: 4bae3066ffaa6c846668d54f72ff4c24f4f7488f
|
4
|
+
data.tar.gz: cc7e238a302925336a2c2a86e51b7e3bc183bc6f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4d1e3b6f90a4a26d6438bccc1b3c9cbe5096e8096cb08ebf998d87fa85a9d37f4478c9473b9cd7caddb4530f7a9e21e2a6c337f26ec1b6f37fc123913522e032
|
7
|
+
data.tar.gz: 3b90c6db293e5902110b302d395c0abfd35fb2df4373fae45e64e8f6903eb0ab42dcc9687604b4ea7da9e9836c127382f5466abb6780d6b3933f2ea04ee478ce
|
@@ -246,8 +246,10 @@ module ChefMetalVsphere
|
|
246
246
|
if is_static
|
247
247
|
if machine.execute_always('host google.com').exitstatus != 0
|
248
248
|
distro = machine.execute_always("lsb_release -i | sed -e 's/Distributor ID://g'").stdout.strip
|
249
|
+
Chef::Log.info "Found distro:#{distro}"
|
249
250
|
if distro == 'Ubuntu'
|
250
251
|
distro_version = (machine.execute_always("lsb_release -r | sed -e s/[^0-9.]//g")).stdout.strip.to_f
|
252
|
+
Chef::Log.info "Found distro version:#{distro_version}"
|
251
253
|
if distro_version>= 12.04
|
252
254
|
Chef::Log.info "Ubuntu version 12.04 or greater. Need to patch DNS."
|
253
255
|
interfaces_file = "/etc/network/interfaces"
|