chef-provisioner 0.1.0 → 0.1.1

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: 33cfb47a7cad6bec6e4a97321d62ff5c3b362b56
4
- data.tar.gz: 1dc673bc1cb5a174e95cbadc4bdc259680403e4c
3
+ metadata.gz: 0b3aa0b2481675b1349631d58242a8b9e75c2e01
4
+ data.tar.gz: 8066e8e2f092024770eb708185f67c8419ca9b9d
5
5
  SHA512:
6
- metadata.gz: 3a72f7dd1a77f64079f8ed361900fa93963b1936178e9809fdbd7fef2af7a3a253f55453fc3fc27973836fc4e2aa9ae6f091d56afe322fc7a6f986f2108c6e09
7
- data.tar.gz: 1f55f40ae327dbc123722ecc65f3cf712d1a9f1e49988b00ba3c02a6560f5081dbeabf124b13926be50e484b5642baa9da07f3bb0f0c3e3a2f23a1c6b682c0f9
6
+ metadata.gz: 85695e8b3d183b271ff74d94a0b76aad147835ea54bba6d4ecb9859253baeeba89546810bbaf852fbf93284dd7fa2d5f72af84afc2e7b94109e48828fbb1e4ee
7
+ data.tar.gz: a34dfd3cf3f901cc9be8d52e7105f58931ea463ca02d2dd9417681fba9bc7ed976f3835338a85e78e49f00003f4aa2134e6f11eb284761efe8cd265095c66f56
@@ -27,7 +27,7 @@ module ChefProvisioner
27
27
  end
28
28
 
29
29
  def my_ip
30
- Socket.ip_address_list.find{|x| x.ipv4? && !x.ipv4_loopback?}.ip_address
30
+ Socket.ip_address_list.find{|x| x.ipv4? && !x.ipv4_loopback? && !x.ip_address.start_with?('169.254')}.ip_address
31
31
  end
32
32
 
33
33
  def setup_chef_client_file
@@ -1,4 +1,4 @@
1
1
  # Namespace for our gem
2
2
  module ChefProvisioner
3
- VERSION = '0.1.0'
3
+ VERSION = '0.1.1'
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chef-provisioner
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dale Hamel