facter 2.0.2-universal-darwin → 2.1.0-universal-darwin

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of facter might be problematic. Click here for more details.

Files changed (120) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +14 -0
  3. data/ext/project_data.yaml +9 -6
  4. data/lib/facter/core/execution/base.rb +3 -3
  5. data/lib/facter/core/suitable.rb +1 -5
  6. data/lib/facter/dhcp_servers.rb +39 -0
  7. data/lib/facter/ec2.rb +33 -26
  8. data/lib/facter/ec2/rest.rb +130 -0
  9. data/lib/facter/fqdn.rb +2 -0
  10. data/lib/facter/gce.rb +16 -0
  11. data/lib/facter/gce/metadata.rb +87 -0
  12. data/lib/facter/kernelmajversion.rb +8 -0
  13. data/lib/facter/kernelrelease.rb +8 -0
  14. data/lib/facter/memory.rb +21 -15
  15. data/lib/facter/netmask.rb +1 -1
  16. data/lib/facter/operatingsystem.rb +20 -0
  17. data/lib/facter/operatingsystemmajrelease.rb +2 -1
  18. data/lib/facter/operatingsystemrelease.rb +19 -0
  19. data/lib/facter/osfamily.rb +3 -1
  20. data/lib/facter/partitions.rb +35 -0
  21. data/lib/facter/physicalprocessorcount.rb +9 -0
  22. data/lib/facter/processor.rb +25 -25
  23. data/lib/facter/util/config.rb +3 -1
  24. data/lib/facter/util/dhcp_servers.rb +43 -0
  25. data/lib/facter/util/ec2.rb +5 -0
  26. data/lib/facter/util/formatter.rb +2 -1
  27. data/lib/facter/util/ip.rb +1 -1
  28. data/lib/facter/util/loader.rb +10 -1
  29. data/lib/facter/util/manufacturer.rb +15 -16
  30. data/lib/facter/util/memory.rb +12 -12
  31. data/lib/facter/util/netmask.rb +1 -1
  32. data/lib/facter/util/operatingsystem.rb +21 -0
  33. data/lib/facter/util/partitions.rb +41 -0
  34. data/lib/facter/util/partitions/linux.rb +65 -0
  35. data/lib/facter/util/posix.rb +16 -0
  36. data/lib/facter/util/processor.rb +8 -10
  37. data/lib/facter/util/resolution.rb +4 -0
  38. data/lib/facter/util/values.rb +29 -0
  39. data/lib/facter/util/virtual.rb +32 -3
  40. data/lib/facter/util/windows_root.rb +2 -32
  41. data/lib/facter/version.rb +1 -1
  42. data/lib/facter/virtual.rb +53 -12
  43. data/spec/fixtures/ifconfig/openbsd_bridge_rules +11 -0
  44. data/spec/fixtures/unit/dhcp_servers/nmcli_devices +4 -0
  45. data/spec/fixtures/unit/dhcp_servers/nmcli_devices_disconnected +4 -0
  46. data/spec/fixtures/unit/dhcp_servers/nmcli_eth0_dhcp +36 -0
  47. data/spec/fixtures/unit/dhcp_servers/nmcli_eth0_static +24 -0
  48. data/spec/fixtures/unit/dhcp_servers/nmcli_wlan0_dhcp +49 -0
  49. data/spec/fixtures/unit/dhcp_servers/nmcli_wlan0_static +37 -0
  50. data/spec/fixtures/unit/dhcp_servers/route +3 -0
  51. data/spec/fixtures/unit/dhcp_servers/route_nogw +1 -0
  52. data/spec/fixtures/unit/ec2/rest/meta-data/root +20 -0
  53. data/spec/fixtures/unit/gce/metadata/metadata.json +69 -0
  54. data/spec/fixtures/unit/kernelrelease/openbsd-5.3 +2 -0
  55. data/spec/fixtures/unit/kernelrelease/openbsd-5.3-current +3 -0
  56. data/spec/fixtures/unit/memory/aix-svmon +9 -0
  57. data/spec/fixtures/unit/memory/aix-swap_l +2 -0
  58. data/spec/fixtures/unit/memory/darwin-swapinfo-multiple +3 -0
  59. data/spec/fixtures/unit/memory/darwin-swapinfo-single +2 -0
  60. data/spec/fixtures/unit/memory/darwin-vm_stat +13 -0
  61. data/spec/fixtures/unit/memory/dragonfly-vmstat +3 -0
  62. data/spec/fixtures/unit/memory/freebsd-vmstat +3 -0
  63. data/spec/fixtures/unit/memory/linux-proc_meminfo +10 -0
  64. data/spec/fixtures/unit/memory/openbsd-vmstat +3 -0
  65. data/spec/fixtures/unit/memory/smartos_zone_swap_l-single +2 -0
  66. data/spec/fixtures/unit/memory/solaris-prtconf +4 -0
  67. data/spec/fixtures/unit/memory/solaris-swap_l-multiple +3 -0
  68. data/spec/fixtures/unit/memory/solaris-swap_l-single +2 -0
  69. data/spec/fixtures/unit/memory/solaris-vmstat +3 -0
  70. data/spec/fixtures/unit/netmask/ifconfig_aix_7.txt +3 -0
  71. data/spec/fixtures/unit/util/dhcp_servers/route +3 -0
  72. data/spec/fixtures/unit/util/dhcp_servers/route_nogw +1 -0
  73. data/spec/fixtures/unit/util/manufacturer/smartos_smbios +533 -0
  74. data/spec/fixtures/unit/util/operatingsystem/cumuluslinux.txt +8 -0
  75. data/spec/fixtures/unit/util/operatingsystem/redhat-7.txt +12 -0
  76. data/spec/fixtures/unit/util/operatingsystem/sabayon.txt +7 -0
  77. data/spec/fixtures/unit/util/operatingsystem/wheezy.txt +9 -0
  78. data/spec/fixtures/unit/util/partitions/partitions/mount +9 -0
  79. data/spec/fixtures/virtual/proc_1_cgroup/in_a_container +9 -0
  80. data/spec/fixtures/virtual/proc_1_cgroup/in_a_docker_container +8 -0
  81. data/spec/fixtures/virtual/proc_1_cgroup/not_in_a_container +9 -0
  82. data/spec/spec_helper.rb +1 -1
  83. data/spec/unit/core/execution/base_spec.rb +3 -5
  84. data/spec/unit/core/execution/posix_spec.rb +2 -2
  85. data/spec/unit/core/suitable_spec.rb +10 -0
  86. data/spec/unit/dhcp_servers_spec.rb +152 -0
  87. data/spec/unit/ec2/rest_spec.rb +145 -0
  88. data/spec/unit/ec2_spec.rb +87 -147
  89. data/spec/unit/fqdn_spec.rb +16 -0
  90. data/spec/unit/gce/metadata_spec.rb +49 -0
  91. data/spec/unit/gce_spec.rb +34 -0
  92. data/spec/unit/interfaces_spec.rb +9 -9
  93. data/spec/unit/kernelmajversion_spec.rb +14 -9
  94. data/spec/unit/kernelrelease_spec.rb +16 -0
  95. data/spec/unit/macaddress_spec.rb +12 -0
  96. data/spec/unit/memory_spec.rb +53 -122
  97. data/spec/unit/netmask_spec.rb +11 -0
  98. data/spec/unit/operatingsystem_spec.rb +19 -0
  99. data/spec/unit/operatingsystemmajrelease_spec.rb +1 -1
  100. data/spec/unit/operatingsystemrelease_spec.rb +8 -0
  101. data/spec/unit/osfamily_spec.rb +62 -0
  102. data/spec/unit/partitions_spec.rb +48 -0
  103. data/spec/unit/physicalprocessorcount_spec.rb +9 -0
  104. data/spec/unit/processor_spec.rb +15 -7
  105. data/spec/unit/util/config_spec.rb +13 -0
  106. data/spec/unit/util/dhcp_servers_spec.rb +63 -0
  107. data/spec/unit/util/ec2_spec.rb +4 -0
  108. data/spec/unit/util/formatter_spec.rb +50 -0
  109. data/spec/unit/util/loader_spec.rb +4 -4
  110. data/spec/unit/util/macosx_spec.rb +3 -2
  111. data/spec/unit/util/manufacturer_spec.rb +44 -0
  112. data/spec/unit/util/operatingsystem_spec.rb +92 -0
  113. data/spec/unit/util/partitions/partitions_spec.rb +67 -0
  114. data/spec/unit/util/partitions_spec.rb +19 -0
  115. data/spec/unit/util/posix_spec.rb +11 -0
  116. data/spec/unit/util/values_spec.rb +40 -0
  117. data/spec/unit/util/virtual_spec.rb +72 -2
  118. data/spec/unit/virtual_spec.rb +67 -18
  119. metadata +116 -4
  120. data/spec/fixtures/unit/util/loader/nosuchfact.rb +0 -1
@@ -1,37 +1,7 @@
1
- require 'windows/system_info'
2
- require 'windows/security'
3
- require 'sys/admin'
1
+ require 'win32/security'
4
2
 
5
3
  module Facter::Util::Root
6
- extend ::Windows::SystemInfo
7
- extend ::Windows::Security
8
-
9
4
  def self.root?
10
- # if Vista or later, check for unrestricted process token
11
- return Win32::Security.elevated_security? unless windows_version < 6.0
12
-
13
- # otherwise 2003 or less
14
- check_token_membership
15
- end
16
-
17
- def self.check_token_membership
18
- sid = 0.chr * 80
19
- size = [80].pack('L')
20
- member = 0.chr * 4
21
-
22
- unless CreateWellKnownSid(Windows::Security::WinBuiltinAdministratorsSid, nil, sid, size)
23
- raise "Failed to create administrators SID"
24
- end
25
-
26
- unless IsValidSid(sid)
27
- raise "Invalid SID"
28
- end
29
-
30
- unless CheckTokenMembership(nil, sid, member)
31
- raise "Failed to check membership"
32
- end
33
-
34
- # Is administrators SID enabled in calling thread's access token?
35
- member.unpack('L')[0] == 1
5
+ Win32::Security.elevated_security?
36
6
  end
37
7
  end
@@ -1,6 +1,6 @@
1
1
  module Facter
2
2
  if not defined? FACTERVERSION then
3
- FACTERVERSION = '2.0.2'
3
+ FACTERVERSION = '2.1.0'
4
4
  end
5
5
 
6
6
  # Returns the running version of Facter.
@@ -5,9 +5,11 @@
5
5
  # Resolution:
6
6
  # Assumes physical unless proven otherwise.
7
7
  #
8
- # On Darwin, use the macosx util module to acquire the SPDisplaysDataType,
9
- # from that parse it to see if it's VMWare or Parallels pretending to be the
10
- # display.
8
+ # On Darwin, use the macosx util module to acquire the SPHardwareDataType and
9
+ # SPEthernetDataType, from which it is possible to determine if the host is a
10
+ # VMware, Parallels, or VirtualBox. This previously used SPDisplaysDataType
11
+ # which was not reliable if running headless, and also caused lagging issues
12
+ # on actual Macs.
11
13
  #
12
14
  # On Linux, BSD, Solaris and HPUX:
13
15
  # Much of the logic here is obscured behind util/virtual.rb, which rather
@@ -16,9 +18,9 @@
16
18
  # contents of files in there.
17
19
  # If after all the other tests, it's still seen as physical, then it tries to
18
20
  # parse the output of the "lspci", "dmidecode" and "prtdiag" and parses them
19
- # for obvious signs of being under VMWare, Parallels or VirtualBox.
21
+ # for obvious signs of being under VMware, Parallels or VirtualBox.
20
22
  # Finally it checks for the existence of vmware-vmx, which would hint it's
21
- # VMWare.
23
+ # VMware.
22
24
  #
23
25
  # Caveats:
24
26
  # Many checks rely purely on existence of files.
@@ -32,13 +34,18 @@ Facter.add("virtual") do
32
34
  setcode do
33
35
  require 'facter/util/macosx'
34
36
  result = "physical"
35
- output = Facter::Util::Macosx.profiler_data("SPDisplaysDataType")
37
+ # use SPHardwareDataType for VMware and VirtualBox, since it is the most
38
+ # reliable source.
39
+ output = Facter::Util::Macosx.profiler_data("SPHardwareDataType")
36
40
  if output.is_a?(Hash)
37
- result = "parallels" if output["spdisplays_vendor-id"] =~ /0x1ab8/
38
- result = "parallels" if output["spdisplays_vendor"] =~ /[Pp]arallels/
39
- result = "vmware" if output["spdisplays_vendor-id"] =~ /0x15ad/
40
- result = "vmware" if output["spdisplays_vendor"] =~ /VM[wW]are/
41
- result = "virtualbox" if output["spdisplays_vendor-id"] =~ /0x80ee/
41
+ result = "vmware" if output["machine_model"] =~ /VMware/
42
+ result = "virtualbox" if output["boot_rom_version"] =~ /VirtualBox/
43
+ end
44
+ # Parallels passes through almost all of the host's hardware info to the
45
+ # virtual machine, so use a different field.
46
+ output = Facter::Util::Macosx.profiler_data("SPEthernetDataType")
47
+ if output.is_a?(Hash)
48
+ result = "parallels" if output["spethernet_subsystem-vendor-id"] =~ /0x1ab8/
42
49
  end
43
50
  result
44
51
  end
@@ -91,13 +98,14 @@ Facter.add("virtual") do
91
98
  confine :kernel => 'OpenBSD'
92
99
  has_weight 10
93
100
  setcode do
94
- output = Facter::Core::Execution.exec('sysctl -n hw.product 2>/dev/null')
101
+ output = Facter::Util::POSIX.sysctl("hw.product")
95
102
  if output
96
103
  lines = output.split("\n")
97
104
  next "parallels" if lines.any? {|l| l =~ /Parallels/ }
98
105
  next "vmware" if lines.any? {|l| l =~ /VMware/ }
99
106
  next "virtualbox" if lines.any? {|l| l =~ /VirtualBox/ }
100
107
  next "xenhvm" if lines.any? {|l| l =~ /HVM domU/ }
108
+ next "ovirt" if lines.any? {|l| l =~ /oVirt Node/ }
101
109
  end
102
110
  end
103
111
  end
@@ -244,6 +252,39 @@ Facter.add("virtual") do
244
252
  end
245
253
  end
246
254
  end
255
+
256
+ ##
257
+ # virtual fact specific to linux containers. This also works for Docker
258
+ # containers running in lxc.
259
+ Facter.add("virtual") do
260
+ has_weight 700
261
+ confine :kernel => "Linux"
262
+
263
+ setcode do
264
+ "lxc" if Facter::Util::Virtual.lxc?
265
+ end
266
+ end
267
+
268
+ ##
269
+ # virtual fact specific to docker containers.
270
+ Facter.add("virtual") do
271
+ has_weight 750
272
+ confine :kernel => "Linux"
273
+
274
+ setcode do
275
+ "docker" if Facter::Util::Virtual.docker?
276
+ end
277
+ end
278
+
279
+ Facter.add("virtual") do
280
+ has_weight 600
281
+ confine :kernel => "Linux"
282
+
283
+ setcode do
284
+ "gce" if Facter::Util::Virtual.gce?
285
+ end
286
+ end
287
+
247
288
  # Fact: is_virtual
248
289
  #
249
290
  # Purpose: returning true or false for if a machine is virtualised or not.
@@ -0,0 +1,11 @@
1
+ bridge0: flags=41
2
+ groups: bridge
3
+ priority 32768 hellotime 2 fwddelay 15 maxage 20 holdcnt 6 proto rstp
4
+ vlan1 flags=3
5
+ port 5 ifpriority 0 ifcost 0
6
+ em0 flags=7
7
+ port 1 ifpriority 0 ifcost 0
8
+ block out on em0 src 00:24:21:ef:1b:de
9
+ pflog0: flags=41 mtu 33152
10
+ priority: 0
11
+ groups: pflog
@@ -0,0 +1,4 @@
1
+ DEVICE TYPE STATE
2
+ wlan0 802-11-wireless connected
3
+ eth0 802-3-ethernet connected
4
+ eth1 802-3-ethernet disconnected
@@ -0,0 +1,4 @@
1
+ DEVICE TYPE STATE
2
+ wlan0 802-11-wireless disconnected
3
+ eth0 802-3-ethernet disconnected
4
+ eth1 802-3-ethernet disconnected
@@ -0,0 +1,36 @@
1
+ GENERAL.DEVICE: eth0
2
+ GENERAL.TYPE: 802-3-ethernet
3
+ GENERAL.VENDOR: Realtek Semiconductor Co., Ltd.
4
+ GENERAL.PRODUCT: RTL8111/8168 PCI Express Gigabit Ethernet controller
5
+ GENERAL.DRIVER: r8169
6
+ GENERAL.DRIVER-VERSION: 2.3LK-NAPI
7
+ GENERAL.FIRMWARE-VERSION:
8
+ GENERAL.HWADDR: D4:BE:D9:34:67:68
9
+ GENERAL.STATE: 100 (connected)
10
+ GENERAL.REASON: 0 (No reason given)
11
+ GENERAL.UDI: /sys/devices/pci0000:00/0000:00:1c.0/0000:07:00.0/net/eth0
12
+ GENERAL.IP-IFACE: eth0
13
+ GENERAL.NM-MANAGED: yes
14
+ GENERAL.AUTOCONNECT: yes
15
+ GENERAL.FIRMWARE-MISSING: no
16
+ GENERAL.CONNECTION: /org/freedesktop/NetworkManager/ActiveConnection/9
17
+ CAPABILITIES.CARRIER-DETECT: yes
18
+ CAPABILITIES.SPEED: 1000 Mb/s
19
+ CONNECTIONS.AVAILABLE-CONNECTION-PATHS: /org/freedesktop/NetworkManager/Settings/{1,2}
20
+ CONNECTIONS.AVAILABLE-CONNECTIONS[1]: acafdb99-23e4-49e5-a3e6-0a00575312b5 | Office
21
+ CONNECTIONS.AVAILABLE-CONNECTIONS[2]: d6aaee51-2ed8-4b05-82ac-365c9c74b44e | DHCP
22
+ WIRED-PROPERTIES.CARRIER: on
23
+ IP4.ADDRESS[1]: ip = 192.168.1.10, gw = 192.168.1.1
24
+ IP4.DNS[1]: 192.168.1.1
25
+ DHCP4.OPTION[1]: time_offset = 0
26
+ DHCP4.OPTION[2]: expiry = 1401991971
27
+ DHCP4.OPTION[3]: broadcast_address = 192.168.1.255
28
+ DHCP4.OPTION[4]: dhcp_message_type = 5
29
+ DHCP4.OPTION[5]: dhcp_lease_time = 9999999
30
+ DHCP4.OPTION[6]: ip_address = 192.168.1.10
31
+ DHCP4.OPTION[7]: subnet_mask = 255.255.255.0
32
+ DHCP4.OPTION[8]: routers = 192.168.1.1
33
+ DHCP4.OPTION[9]: domain_name_servers = 192.168.1.1
34
+ DHCP4.OPTION[10]: network_number = 192.168.1.0
35
+ DHCP4.OPTION[11]: default_ip_ttl = 64
36
+ DHCP4.OPTION[12]: dhcp_server_identifier = 192.168.1.1
@@ -0,0 +1,24 @@
1
+ GENERAL.DEVICE: eth0
2
+ GENERAL.TYPE: 802-3-ethernet
3
+ GENERAL.VENDOR: Realtek Semiconductor Co., Ltd.
4
+ GENERAL.PRODUCT: RTL8111/8168 PCI Express Gigabit Ethernet controller
5
+ GENERAL.DRIVER: r8169
6
+ GENERAL.DRIVER-VERSION: 2.3LK-NAPI
7
+ GENERAL.FIRMWARE-VERSION:
8
+ GENERAL.HWADDR: D4:BE:D9:34:67:68
9
+ GENERAL.STATE: 100 (connected)
10
+ GENERAL.REASON: 0 (No reason given)
11
+ GENERAL.UDI: /sys/devices/pci0000:00/0000:00:1c.0/0000:07:00.0/net/eth0
12
+ GENERAL.IP-IFACE: eth0
13
+ GENERAL.NM-MANAGED: yes
14
+ GENERAL.AUTOCONNECT: yes
15
+ GENERAL.FIRMWARE-MISSING: no
16
+ GENERAL.CONNECTION: /org/freedesktop/NetworkManager/ActiveConnection/9
17
+ CAPABILITIES.CARRIER-DETECT: yes
18
+ CAPABILITIES.SPEED: 1000 Mb/s
19
+ CONNECTIONS.AVAILABLE-CONNECTION-PATHS: /org/freedesktop/NetworkManager/Settings/{1,2}
20
+ CONNECTIONS.AVAILABLE-CONNECTIONS[1]: acafdb99-23e4-49e5-a3e6-0a00575312b5 | Office
21
+ CONNECTIONS.AVAILABLE-CONNECTIONS[2]: d6aaee51-2ed8-4b05-82ac-365c9c74b44e | DHCP
22
+ WIRED-PROPERTIES.CARRIER: on
23
+ IP4.ADDRESS[1]: ip = 192.168.1.10, gw = 192.168.1.1
24
+ IP4.DNS[1]: 192.168.1.1
@@ -0,0 +1,49 @@
1
+ GENERAL.DEVICE: wlan0
2
+ GENERAL.TYPE: 802-11-wireless
3
+ GENERAL.VENDOR: Intel Corporation
4
+ GENERAL.PRODUCT: Centrino Advanced-N 6235 AGN
5
+ GENERAL.DRIVER: iwlwifi
6
+ GENERAL.DRIVER-VERSION: 3.11.0-12-generic
7
+ GENERAL.FIRMWARE-VERSION: 18.168.6.1
8
+ GENERAL.HWADDR: C4:85:08:06:2C:55
9
+ GENERAL.STATE: 100 (connected)
10
+ GENERAL.REASON: 0 (No reason given)
11
+ GENERAL.UDI: /sys/devices/pci0000:00/0000:00:1c.2/0000:08:00.0/net/wlan0
12
+ GENERAL.IP-IFACE: wlan0
13
+ GENERAL.NM-MANAGED: yes
14
+ GENERAL.AUTOCONNECT: yes
15
+ GENERAL.FIRMWARE-MISSING: no
16
+ GENERAL.CONNECTION: /org/freedesktop/NetworkManager/ActiveConnection/10
17
+ CAPABILITIES.CARRIER-DETECT: no
18
+ CAPABILITIES.SPEED: 13 Mb/s
19
+ CONNECTIONS.AVAILABLE-CONNECTION-PATHS: /org/freedesktop/NetworkManager/Settings/{3}
20
+ CONNECTIONS.AVAILABLE-CONNECTIONS[1]: 7a82c94b-afba-498b-9a62-30ebb335b365 | Auto OptusCD3_80ac32
21
+ WIFI-PROPERTIES.WEP: yes
22
+ WIFI-PROPERTIES.WPA: yes
23
+ WIFI-PROPERTIES.WPA2: yes
24
+ WIFI-PROPERTIES.TKIP: yes
25
+ WIFI-PROPERTIES.CCMP: yes
26
+ WIFI-PROPERTIES.AP: yes
27
+ WIFI-PROPERTIES.ADHOC: yes
28
+ AP[1].SSID: 'TestSSid'
29
+ AP[1].BSSID: C8:F9:F9:BE:F1:4E
30
+ AP[1].MODE: Infrastructure
31
+ AP[1].FREQ: 5745 MHz
32
+ AP[1].RATE: 54 MB/s
33
+ AP[1].SIGNAL: 72
34
+ AP[1].SECURITY: WPA WPA2 Enterprise
35
+ AP[1].ACTIVE: no
36
+ IP4.ADDRESS[1]: ip = 192.168.2.10/24, gw = 192.168.2.1
37
+ IP4.DNS[1]: 192.168.2.1
38
+ DHCP4.OPTION[1]: time_offset = 0
39
+ DHCP4.OPTION[2]: expiry = 1401991971
40
+ DHCP4.OPTION[3]: broadcast_address = 192.168.0.255
41
+ DHCP4.OPTION[4]: dhcp_message_type = 5
42
+ DHCP4.OPTION[5]: dhcp_lease_time = 9999999
43
+ DHCP4.OPTION[6]: ip_address = 192.168.2.10
44
+ DHCP4.OPTION[7]: subnet_mask = 255.255.255.0
45
+ DHCP4.OPTION[8]: routers = 192.168.2.1
46
+ DHCP4.OPTION[9]: domain_name_servers = 192.168.2.1
47
+ DHCP4.OPTION[10]: network_number = 192.168.2.0
48
+ DHCP4.OPTION[11]: default_ip_ttl = 64
49
+ DHCP4.OPTION[12]: dhcp_server_identifier = 192.168.2.1
@@ -0,0 +1,37 @@
1
+ GENERAL.DEVICE: wlan0
2
+ GENERAL.TYPE: 802-11-wireless
3
+ GENERAL.VENDOR: Intel Corporation
4
+ GENERAL.PRODUCT: Centrino Advanced-N 6235 AGN
5
+ GENERAL.DRIVER: iwlwifi
6
+ GENERAL.DRIVER-VERSION: 3.11.0-12-generic
7
+ GENERAL.FIRMWARE-VERSION: 18.168.6.1
8
+ GENERAL.HWADDR: C4:85:08:06:2C:55
9
+ GENERAL.STATE: 100 (connected)
10
+ GENERAL.REASON: 0 (No reason given)
11
+ GENERAL.UDI: /sys/devices/pci0000:00/0000:00:1c.2/0000:08:00.0/net/wlan0
12
+ GENERAL.IP-IFACE: wlan0
13
+ GENERAL.NM-MANAGED: yes
14
+ GENERAL.AUTOCONNECT: yes
15
+ GENERAL.FIRMWARE-MISSING: no
16
+ GENERAL.CONNECTION: /org/freedesktop/NetworkManager/ActiveConnection/10
17
+ CAPABILITIES.CARRIER-DETECT: no
18
+ CAPABILITIES.SPEED: 13 Mb/s
19
+ CONNECTIONS.AVAILABLE-CONNECTION-PATHS: /org/freedesktop/NetworkManager/Settings/{3}
20
+ CONNECTIONS.AVAILABLE-CONNECTIONS[1]: 7a82c94b-afba-498b-9a62-30ebb335b365 | Auto OptusCD3_80ac32
21
+ WIFI-PROPERTIES.WEP: yes
22
+ WIFI-PROPERTIES.WPA: yes
23
+ WIFI-PROPERTIES.WPA2: yes
24
+ WIFI-PROPERTIES.TKIP: yes
25
+ WIFI-PROPERTIES.CCMP: yes
26
+ WIFI-PROPERTIES.AP: yes
27
+ WIFI-PROPERTIES.ADHOC: yes
28
+ AP[1].SSID: 'TestSSid'
29
+ AP[1].BSSID: C8:F9:F9:BE:F1:4E
30
+ AP[1].MODE: Infrastructure
31
+ AP[1].FREQ: 5745 MHz
32
+ AP[1].RATE: 54 MB/s
33
+ AP[1].SIGNAL: 72
34
+ AP[1].SECURITY: WPA WPA2 Enterprise
35
+ AP[1].ACTIVE: no
36
+ IP4.ADDRESS[1]: ip = 192.168.2.10/24, gw = 192.168.2.1
37
+ IP4.DNS[1]: 192.168.2.1
@@ -0,0 +1,3 @@
1
+ Iface Destination Gateway Flags RefCnt Use Metric Mask MTU Window IRTT
2
+ eth0 00000000 0110100A 0003 0 0 0 00000000 0 0 0
3
+ eth0 0010100A 00000000 0001 0 0 1 00FCFFFF 0 0 0
@@ -0,0 +1 @@
1
+ Iface Destination Gateway Flags RefCnt Use Metric Mask MTU Window IRTT
@@ -0,0 +1,20 @@
1
+ ami-id
2
+ ami-launch-index
3
+ ami-manifest-path
4
+ block-device-mapping/
5
+ hostname
6
+ instance-action
7
+ instance-id
8
+ instance-type
9
+ kernel-id
10
+ local-hostname
11
+ local-ipv4
12
+ mac
13
+ metrics/
14
+ network/
15
+ placement/
16
+ profile
17
+ public-hostname
18
+ public-ipv4
19
+ public-keys/
20
+ reservation-id
@@ -0,0 +1,69 @@
1
+ {
2
+ "instance": {
3
+ "attributes": {},
4
+ "description": "",
5
+ "disks": [
6
+ {
7
+ "deviceName": "gce-facts",
8
+ "index": 0,
9
+ "mode": "READ_WRITE",
10
+ "type": "PERSISTENT"
11
+ }
12
+ ],
13
+ "hostname": "gce-facts.c.dev-sand-box.internal",
14
+ "id": 18287562037867659655,
15
+ "image": "projects/485161417235/images/centos6",
16
+ "machineType": "projects/485161417235/machineTypes/n1-standard-1",
17
+ "maintenanceEvent": "NONE",
18
+ "networkInterfaces": [
19
+ {
20
+ "accessConfigs": [
21
+ {
22
+ "externalIp": "23.251.145.218",
23
+ "type": "ONE_TO_ONE_NAT"
24
+ }
25
+ ],
26
+ "forwardedIps": [],
27
+ "ip": "10.240.193.246",
28
+ "network": "projects/485161417235/networks/default"
29
+ }
30
+ ],
31
+ "scheduling": {
32
+ "automaticRestart": "TRUE",
33
+ "onHostMaintenance": "MIGRATE"
34
+ },
35
+ "serviceAccounts": {
36
+ "485161417235-u737tauareitfc5ju1t5cbmdrasr4giv@developer.gserviceaccount.com": {
37
+ "aliases": [
38
+ "default"
39
+ ],
40
+ "email": "485161417235-u737tauareitfc5ju1t5cbmdrasr4giv@developer.gserviceaccount.com",
41
+ "scopes": [
42
+ "https://www.googleapis.com/auth/compute",
43
+ "https://www.googleapis.com/auth/devstorage.full_control",
44
+ "https://www.googleapis.com/auth/userinfo.email"
45
+ ]
46
+ },
47
+ "default": {
48
+ "aliases": [
49
+ "default"
50
+ ],
51
+ "email": "485161417235-u737tauareitfc5ju1t5cbmdrasr4giv@developer.gserviceaccount.com",
52
+ "scopes": [
53
+ "https://www.googleapis.com/auth/compute",
54
+ "https://www.googleapis.com/auth/devstorage.full_control",
55
+ "https://www.googleapis.com/auth/userinfo.email"
56
+ ]
57
+ }
58
+ },
59
+ "tags": [],
60
+ "zone": "projects/485161417235/zones/us-central1-b"
61
+ },
62
+ "project": {
63
+ "attributes": {
64
+ "sshKeys": "justin:ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDKTIyNpvkUHk71q79CfiMOiY9xL9bOazvDfsCLD1UaK+g6kugMRxxiFRIB7aOajOrQl/+ZJ3Cy16f/D6zmSLTMJSIQKiJsGFyCdfkbZ6YKDSKMOpqlZCSeErpJp74X4Olg37DLqkFH2MtuoclrkheY0f87CMTGc/ICr6zDF2DoYM7yCU7y8s6FckcDs6xBUYd+phduQLLuEiUxB95neESvV0ZiD4IoJsEMOj5Y5VLqvmbozlHVu8OqVtUxNj5iIwXMGG/hROvjtZQfFRYn64xhINDt/ozbesh5ah1zn6FosGwfuYM5WJeTsUN53iiXIsDDks2Kv3bLu4fOSQ/P9LEF justin@holguinj.wifi.puppetlabs.net\nadrien:ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCtYeE0mv03TdEZ/1Gd6SEOkG0QCFzBH/rGqji75WJpMrr9UKti7wAN3nFBWp6ElM1pxmnzGBqJPxFfsIkjRhm89hh123KlaorJQZU5pftGXGNMUo/cd/idqu3OXTMs149TGrZAlowKdzOPIx9ndNJQW6OtKmn8yFgxXFpB6kJRccjeh0erDk9Zdv+/PZL1UWmDBlNh9exPsUV9qTclih/jI1PAbA+/8Oj8MqlxrlsTltjczPe/TUbvpw/d/12d1EIF6F3f498Y4mAwB/ERQIKb55b3NwPjQJ+RwZIRpayQ8nvhxJmAn8xtbyTF4o5ORHICbGqLpbmc52h2pUieqJqf adrien@grey"
65
+ },
66
+ "numericProjectId": 485161417235,
67
+ "projectId": "dev-sand-box"
68
+ }
69
+ }
@@ -0,0 +1,2 @@
1
+ OpenBSD 5.3 (GENERIC.MP) #2: Fri May 17 15:54:55 CEST 2013
2
+ root@binpatch-53-i386.mtier.org:/home/jasper/binpatchng/work-binpatch53-i386/src/sys/arch/i386/compile/GENERIC.MP
@@ -0,0 +1,3 @@
1
+ OpenBSD 5.3-current (GENERIC.MP) #130: Wed Jun 5 15:15:03 MDT 2013
2
+ deraadt@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
3
+
@@ -0,0 +1,9 @@
1
+ Unit: KB
2
+ --------------------------------------------------------------------------------------
3
+ size inuse free pin virtual available mmode
4
+ memory 32768000 9948408 22819592 2432080 4448928 27231828 Ded
5
+ pg space 34078720 15000
6
+
7
+ work pers clnt other
8
+ pin 1478228 0 0 953852
9
+ in use 4448928 0 5499480