This file contains hidden or 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
{ | |
"metadata": { | |
"compute": { | |
"location": "westus", | |
"name": "timtest", | |
"offer": "UbuntuServer", | |
"osType": "Linux", | |
"platformFaultDomain": "0", | |
"platformUpdateDomain": "0", | |
"publisher": "Canonical", |
This file contains hidden or 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
"metadata": { | |
"compute": { | |
"location": "westus", | |
"name": "timtest", | |
"offer": "UbuntuServer", | |
"osType": "Linux", | |
"platformFaultDomain": "0", | |
"platformUpdateDomain": "0", | |
"publisher": "Canonical", |
This file contains hidden or 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
ami-id | |
ami-launch-index | |
ami-manifest-path | |
block-device-mapping/ | |
hostname | |
instance-action | |
instance-id | |
instance-type | |
local-hostname | |
local-ipv4 |
This file contains hidden or 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
{ | |
"compute": { | |
"location": "westus", | |
"name": "timtest", | |
"offer": "UbuntuServer", | |
"osType": "Linux", | |
"platformFaultDomain": "0", | |
"platformUpdateDomain": "0", | |
"publisher": "Canonical", | |
"sku": "17.04", |
This file contains hidden or 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
Ohai.plugin :WindowsPatches do | |
provides "windowspatches" | |
collect_data :windows do | |
windowspatches Mash.new | |
patch_data = shell_out('powershell.exe -NoLogo -NonInteractive -NoProfile -command "Get-HotFix | ConvertTo-Json"') | |
parser = FFI_Yajl::Parser.new | |
windowspatches["updates"] = [] | |
windowspatches["details"] = Mash.new |
This file contains hidden or 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
{ | |
"chef_packages": { | |
"chef": { | |
"version": "13.1.31", | |
"chef_root": "C:/opscode/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.1.31-universal-mingw32/lib" | |
}, | |
"ohai": { | |
"version": "13.1.0", | |
"ohai_root": "C:/opscode/chef/embedded/lib/ruby/gems/2.4.0/gems/ohai-13.1.0/lib/ohai" | |
} |
This file contains hidden or 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
\{ | |
"chef_packages": { | |
"chef": { | |
"version": "13.1.31", | |
"chef_root": "C:/opscode/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.1.31-universal-mingw32/lib" |
This file contains hidden or 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
{ | |
"chef_packages": { | |
"chef": { | |
"version": "13.1.31", | |
"chef_root": "C:/opscode/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.1.31-universal-mingw32/lib" | |
}, | |
"ohai": { | |
"version": "13.1.0", | |
"ohai_root": "C:/opscode/chef/embedded/lib/ruby/gems/2.4.0/gems/ohai-13.1.0/lib/ohai" | |
} |
This file contains hidden or 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
{ | |
"chef_packages": { | |
"chef": { | |
"version": "13.1.31", | |
"chef_root": "C:/opscode/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.1.31-universal-mingw32/lib" | |
}, | |
"ohai": { | |
"version": "13.1.0", | |
"ohai_root": "C:/opscode/chef/embedded/lib/ruby/gems/2.4.0/gems/ohai-13.1.0/lib/ohai" | |
} |
This file contains hidden or 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
{ "chef_packages": { "chef": { "version": "13.1.31", "chef_root": "C:/opscode/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.1.31-universal-mingw32/lib" }, "ohai": { "version": "13.1.0", "ohai_root": "C:/opscode/chef/embedded/lib/ruby/gems/2.4.0/gems/ohai-13.1.0/lib/ohai" } }, "command": { }, "counters": { "network": { "interfaces": { "lo": { "tx": { "queuelen": "1", "bytes": 0, "packets": 0, "errors": 0, "drop": 0, "carrier": 0, "collisions": 0 }, "rx": { "bytes": 0, "packets": 0, "errors": 0, "drop": 0, "overrun": 0 } }, "0xe": { "rx": { "bytes": 0, "packets": 0, "errors": 0, "drop": 0, "overrun": 0, "frame": 0, "compressed": 0, "multicast": 0 }, "tx": { |