Created
January 24, 2014 16:24
-
-
Save bmhatfield/8600671 to your computer and use it in GitHub Desktop.
Working Ohai Plugin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require_plugin "#{os}::network" | |
provides 'ipaddress' | |
if virtualization['system'] == 'vbox' | |
network['interfaces']['eth1']['addresses'].each do |ip, params| | |
if params['family'] == 'inet' | |
ipaddress ip | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment