Class CloudAttrs
In: lib/ohai/plugins/cloud_v2.rb
Parent: Object

Class to help enforce the interface exposed to node[:cloud] (OHAI-542)

cloud[:provider] - (String) the cloud provider the VM is running on.

cloud[:public_hostname] - (String) a fully qualified hostname cloud[:local_hostname] - (String) a hostname resolvable on the internal (private) network

cloud[:public_ipv4_addrs] - (Array) a list of all publicly accessible IPv4 addresses cloud[:local_ipv4_addrs] - (Array) a list of all private IPv4 addresses cloud[:public_ipv4] - (String) the first public IPv4 address detected cloud[:local_ipv4] - (String) the first private IPv4 address detected

cloud[:public_ipv6_addrs] - (Array) a list of all publicly accessible IPv6 addresses cloud[:local_ipv6_addrs] - (Array) a list of all private IPv6 addresses cloud[:public_ipv6] - (String) the first public IPv6 address detected cloud[:local_ipv6] - (String) the first private IPv6 address detected

Methods

Attributes

local_hostname  [W] 
provider  [W] 
public_hostname  [W] 

Public Class methods

Public Instance methods

[Validate]