clc-chef-metal-vsphere 0.3.7 → 0.3.8
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 +4 -4
- data/lib/chef_metal_vsphere/version.rb +1 -1
- data/lib/chef_metal_vsphere/vsphere_driver.rb +5 -1
- 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: f36ee26e31694ea8ca82d5c5fcc8443af53c3448
|
4
|
+
data.tar.gz: d86c537c64f0bd2b20722dcfc3b90c9a3561561b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b18e932b16335e16ac56d443ee93c6dc4347ad6e92c29ad2756daf31393e9800d9d95c5a19622f20030c8031a377b62ebd0a8c6f07384e85e64b98f6915188ef
|
7
|
+
data.tar.gz: 90db4b3805b5331ac8d6ec6d6662fdcad07dde1fde1fdb1b83e8e5028ca67008add7fc7a7f34991b81ba15da1a2a9e13d4a187b494e83a1363574633c6f8114b
|
@@ -244,7 +244,11 @@ module ChefMetalVsphere
|
|
244
244
|
machine = machine_for(machine_spec, machine_options, vm)
|
245
245
|
|
246
246
|
if is_static
|
247
|
-
|
247
|
+
host_lookup = machine.execute_always('host google.com')
|
248
|
+
if host_lookup.exitstatus != 0
|
249
|
+
if host_lookup.stdout.include?("setlocale: LC_ALL")
|
250
|
+
machine.execute_always('dpkg-reconfigure locales')
|
251
|
+
end
|
248
252
|
distro = machine.execute_always("lsb_release -i | sed -e 's/Distributor ID://g'").stdout.strip
|
249
253
|
Chef::Log.info "Found distro:#{distro}"
|
250
254
|
if distro == 'Ubuntu'
|