onering-report-plugins 0.0.33 → 0.0.34
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.
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
report do
|
|
2
2
|
interfaces = {}
|
|
3
|
+
ips = []
|
|
3
4
|
|
|
4
5
|
Facter.value('network_interfaces').each do |iface|
|
|
5
6
|
iface = iface.to_sym
|
|
@@ -13,6 +14,8 @@ report do
|
|
|
13
14
|
interfaces[iface][:mac] = mac if mac
|
|
14
15
|
interfaces[iface][:mtu] = mtu if mtu
|
|
15
16
|
|
|
17
|
+
ips << Facter.value("ipaddress_#{iface}")
|
|
18
|
+
|
|
16
19
|
addresses = [{
|
|
17
20
|
:ip => Facter.value("ipaddress_#{iface}"),
|
|
18
21
|
:netmask => Facter.value("netmask_#{iface}")
|
|
@@ -50,6 +53,7 @@ report do
|
|
|
50
53
|
end
|
|
51
54
|
|
|
52
55
|
property :network, {
|
|
56
|
+
:@ip => ips,
|
|
53
57
|
:@interfaces => interfaces.values
|
|
54
58
|
}
|
|
55
59
|
end
|