fauxhai 3.1.0 → 3.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (132) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +8 -0
  3. data/bin/fauxhai +2 -2
  4. data/fauxhai.gemspec +3 -3
  5. data/lib/fauxhai/fetcher.rb +4 -3
  6. data/lib/fauxhai/mocker.rb +4 -3
  7. data/lib/fauxhai/platforms/aix/6.1.json +6 -2
  8. data/lib/fauxhai/platforms/aix/7.1.json +6 -2
  9. data/lib/fauxhai/platforms/amazon/2012.09.json +63 -95
  10. data/lib/fauxhai/platforms/amazon/2013.09.json +79 -72
  11. data/lib/fauxhai/platforms/amazon/2014.03.json +127 -56
  12. data/lib/fauxhai/platforms/amazon/2014.09.json +63 -146
  13. data/lib/fauxhai/platforms/amazon/2015.03.json +99 -116
  14. data/lib/fauxhai/platforms/amazon/2015.09.json +25 -19
  15. data/lib/fauxhai/platforms/amazon/2016-03.json +332 -0
  16. data/lib/fauxhai/platforms/arch/3.10.5-1-ARCH.json +6 -2
  17. data/lib/fauxhai/platforms/centos/5.0.json +6 -2
  18. data/lib/fauxhai/platforms/centos/5.1.json +6 -2
  19. data/lib/fauxhai/platforms/centos/5.10.json +6 -2
  20. data/lib/fauxhai/platforms/centos/5.11.json +6 -2
  21. data/lib/fauxhai/platforms/centos/5.2.json +6 -2
  22. data/lib/fauxhai/platforms/centos/5.3.json +6 -2
  23. data/lib/fauxhai/platforms/centos/5.4.json +6 -2
  24. data/lib/fauxhai/platforms/centos/5.5.json +6 -2
  25. data/lib/fauxhai/platforms/centos/5.6.json +6 -2
  26. data/lib/fauxhai/platforms/centos/5.7.json +6 -2
  27. data/lib/fauxhai/platforms/centos/5.8.json +6 -2
  28. data/lib/fauxhai/platforms/centos/5.9.json +6 -2
  29. data/lib/fauxhai/platforms/centos/6.0.json +6 -2
  30. data/lib/fauxhai/platforms/centos/6.1.json +6 -2
  31. data/lib/fauxhai/platforms/centos/6.2.json +6 -2
  32. data/lib/fauxhai/platforms/centos/6.3.json +6 -2
  33. data/lib/fauxhai/platforms/centos/6.4.json +6 -2
  34. data/lib/fauxhai/platforms/centos/6.5.json +6 -2
  35. data/lib/fauxhai/platforms/centos/6.6.json +6 -2
  36. data/lib/fauxhai/platforms/centos/6.7.json +6 -2
  37. data/lib/fauxhai/platforms/centos/7.0.1406.json +6 -2
  38. data/lib/fauxhai/platforms/centos/7.0.json +6 -2
  39. data/lib/fauxhai/platforms/centos/7.1.1503.json +6 -2
  40. data/lib/fauxhai/platforms/centos/7.2.1511.json +6 -2
  41. data/lib/fauxhai/platforms/debian/6.0.5.json +2 -2
  42. data/lib/fauxhai/platforms/debian/7.0.json +2 -2
  43. data/lib/fauxhai/platforms/debian/7.1.json +2 -2
  44. data/lib/fauxhai/platforms/debian/7.2.json +2 -2
  45. data/lib/fauxhai/platforms/debian/7.4.json +2 -2
  46. data/lib/fauxhai/platforms/debian/7.5.json +2 -2
  47. data/lib/fauxhai/platforms/debian/7.6.json +6 -2
  48. data/lib/fauxhai/platforms/debian/7.7.json +6 -2
  49. data/lib/fauxhai/platforms/debian/7.8.json +6 -2
  50. data/lib/fauxhai/platforms/debian/7.9.json +6 -2
  51. data/lib/fauxhai/platforms/debian/8.0.json +6 -2
  52. data/lib/fauxhai/platforms/debian/8.1.json +6 -2
  53. data/lib/fauxhai/platforms/debian/8.2.json +6 -2
  54. data/lib/fauxhai/platforms/debian/jessie/sid.json +2 -2
  55. data/lib/fauxhai/platforms/debian/stretch/sid.json +6 -2
  56. data/lib/fauxhai/platforms/dragonfly4/4.2-RELEASE.json +6 -2
  57. data/lib/fauxhai/platforms/fedora/18.json +6 -2
  58. data/lib/fauxhai/platforms/fedora/19.json +6 -2
  59. data/lib/fauxhai/platforms/fedora/20.json +6 -2
  60. data/lib/fauxhai/platforms/fedora/21.json +6 -2
  61. data/lib/fauxhai/platforms/fedora/22.json +6 -2
  62. data/lib/fauxhai/platforms/fedora/23.json +6 -2
  63. data/lib/fauxhai/platforms/freebsd/10.0.json +6 -2
  64. data/lib/fauxhai/platforms/freebsd/10.1.json +6 -2
  65. data/lib/fauxhai/platforms/freebsd/10.2.json +6 -2
  66. data/lib/fauxhai/platforms/freebsd/8.4.json +2 -2
  67. data/lib/fauxhai/platforms/freebsd/9.1.json +6 -2
  68. data/lib/fauxhai/platforms/freebsd/9.2.json +6 -2
  69. data/lib/fauxhai/platforms/freebsd/9.3.json +6 -2
  70. data/lib/fauxhai/platforms/gentoo/2.1.json +2 -2
  71. data/lib/fauxhai/platforms/ios_xr/6.0.0.14I.json +6 -2
  72. data/lib/fauxhai/platforms/mac_os_x/10.10.json +6 -2
  73. data/lib/fauxhai/platforms/mac_os_x/10.11.1.json +12 -6
  74. data/lib/fauxhai/platforms/mac_os_x/10.6.8.json +2 -2
  75. data/lib/fauxhai/platforms/mac_os_x/10.7.4.json +2 -2
  76. data/lib/fauxhai/platforms/mac_os_x/10.8.2.json +2 -2
  77. data/lib/fauxhai/platforms/mac_os_x/10.9.2.json +2 -2
  78. data/lib/fauxhai/platforms/nexus/5.json +6 -2
  79. data/lib/fauxhai/platforms/omnios/151002.json +2 -2
  80. data/lib/fauxhai/platforms/omnios/151006.json +2 -2
  81. data/lib/fauxhai/platforms/omnios/151008.json +2 -2
  82. data/lib/fauxhai/platforms/omnios/151014.json +6 -2
  83. data/lib/fauxhai/platforms/openbsd/5.4.json +2 -2
  84. data/lib/fauxhai/platforms/opensuse/12.3.json +6 -2
  85. data/lib/fauxhai/platforms/opensuse/13.1.json +6 -2
  86. data/lib/fauxhai/platforms/opensuse/13.2.json +6 -2
  87. data/lib/fauxhai/platforms/opensuse/42.1.json +6 -2
  88. data/lib/fauxhai/platforms/oracle/5.10.json +2 -2
  89. data/lib/fauxhai/platforms/oracle/6.5.json +2 -2
  90. data/lib/fauxhai/platforms/oracle/6.6.json +6 -2
  91. data/lib/fauxhai/platforms/oracle/7.0.json +6 -2
  92. data/lib/fauxhai/platforms/oracle/7.1.json +6 -2
  93. data/lib/fauxhai/platforms/redhat/5.10.json +2 -2
  94. data/lib/fauxhai/platforms/redhat/5.6.json +2 -2
  95. data/lib/fauxhai/platforms/redhat/5.7.json +2 -2
  96. data/lib/fauxhai/platforms/redhat/5.8.json +2 -2
  97. data/lib/fauxhai/platforms/redhat/5.9.json +2 -2
  98. data/lib/fauxhai/platforms/redhat/6.0.json +2 -2
  99. data/lib/fauxhai/platforms/redhat/6.1.json +2 -2
  100. data/lib/fauxhai/platforms/redhat/6.2.json +2 -2
  101. data/lib/fauxhai/platforms/redhat/6.3.json +2 -2
  102. data/lib/fauxhai/platforms/redhat/6.4.json +2 -2
  103. data/lib/fauxhai/platforms/redhat/6.5.json +2 -2
  104. data/lib/fauxhai/platforms/redhat/6.6.json +6 -2
  105. data/lib/fauxhai/platforms/redhat/7.0.json +2 -2
  106. data/lib/fauxhai/platforms/redhat/7.1.json +6 -2
  107. data/lib/fauxhai/platforms/slackware/14.1.json +6 -2
  108. data/lib/fauxhai/platforms/smartos/5.11.json +2 -2
  109. data/lib/fauxhai/platforms/smartos/joyent_20130111T180733Z.json +2 -2
  110. data/lib/fauxhai/platforms/solaris2/5.10.json +9 -4
  111. data/lib/fauxhai/platforms/solaris2/5.11.json +1658 -799
  112. data/lib/fauxhai/platforms/suse/11.1.json +2 -2
  113. data/lib/fauxhai/platforms/suse/11.2.json +2 -2
  114. data/lib/fauxhai/platforms/suse/11.3.json +2 -2
  115. data/lib/fauxhai/platforms/suse/12.0.json +6 -2
  116. data/lib/fauxhai/platforms/ubuntu/12.04.json +6 -2
  117. data/lib/fauxhai/platforms/ubuntu/13.04.json +2 -2
  118. data/lib/fauxhai/platforms/ubuntu/13.10.json +2 -2
  119. data/lib/fauxhai/platforms/ubuntu/14.04.json +6 -2
  120. data/lib/fauxhai/platforms/ubuntu/14.10.json +6 -2
  121. data/lib/fauxhai/platforms/ubuntu/15.04.json +6 -2
  122. data/lib/fauxhai/platforms/ubuntu/15.10.json +6 -2
  123. data/lib/fauxhai/platforms/windows/10.json +6 -2
  124. data/lib/fauxhai/platforms/windows/2003R2.json +6 -2
  125. data/lib/fauxhai/platforms/windows/2008R2.json +6 -2
  126. data/lib/fauxhai/platforms/windows/2012.json +6 -2
  127. data/lib/fauxhai/platforms/windows/2012R2.json +6 -2
  128. data/lib/fauxhai/platforms/windows/8.1.json +6 -2
  129. data/lib/fauxhai/platforms/windows/8.json +6 -2
  130. data/lib/fauxhai/runner.rb +32 -27
  131. data/lib/fauxhai/version.rb +1 -1
  132. metadata +4 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0f8cfa32798da5c0f38d150f3e0c95a546099c63
4
- data.tar.gz: f634a93dfedd7a058520309680440c7d074d0040
3
+ metadata.gz: d3e04b0080f4863d1a998c188e1f4e078a03197a
4
+ data.tar.gz: e8fff77423484867d3bbb1f177fad33e929937a7
5
5
  SHA512:
6
- metadata.gz: 3ac3d581a97c9b0213e3417727c0e7f92e19cb06b2013e00287261d8aee092bbca553f03d3f83c46004d4f483f957b88a037778af1bffb5655596754e8c94ed3
7
- data.tar.gz: a4683f6931bad98905fb1ed3f03e295c061f7753c991067f7c7f6246c90849fc3fffadc417bf95c9cadb386139953dfc979329c6c84691590aeb3529326a5123
6
+ metadata.gz: 020c91a7d9883c980f06aad5f5f9e40e050bd8e16c646f5010a7d2ee5fc134bc7f00cf85d7a056d940eb951ebd6d67ef79a45ffa100ef72cf7070fe3e8610145
7
+ data.tar.gz: d67008355c275e52ed57479d7f154f0dda93d8e08c1aed46325a6e0b0377989be30d7689085ad705c0b4f1c1ad3e0cde14d43316c37d842ed93654553c862026
@@ -1,4 +1,12 @@
1
1
  # Fauxhai Changelog
2
+
3
+ ## v3.2.0
4
+ - Updated OS X 10.11 to include root_group and kernel processor information
5
+ - Recaptured Solaris 5.11 with the latest Ohai
6
+ - Updated CPU attributes and fixed memory to be in kB on Solaris 5.10
7
+ - Added node['virtualization']['systems'] = {} to the runner and updated data in existing dumps
8
+ - Updated the runner to mock out chef_packages install paths using Omnibus paths not gem install paths and added it to existing dumps.
9
+
2
10
  ## v3.1.0
3
11
  - Added collection of root_group, init_package, and cpu cores to the runner
4
12
  - Added root_group to existing Linux systems
@@ -13,8 +13,8 @@ unless (args & ['-v', '--version']).empty?
13
13
  end
14
14
 
15
15
  unless (args & ['-h', '--help']).empty?
16
- puts "Usage: fauxhai"
17
- puts "(There are no flags or options)"
16
+ puts 'Usage: fauxhai'
17
+ puts '(There are no flags or options)'
18
18
  exit(0)
19
19
  end
20
20
 
@@ -7,15 +7,15 @@ Gem::Specification.new do |spec|
7
7
  spec.version = Fauxhai::VERSION
8
8
  spec.authors = ['Seth Vargo']
9
9
  spec.email = ['sethvargo@gmail.com']
10
- spec.description = %q{Easily mock out ohai data}
11
- spec.summary = %q{Fauxhai provides an easy way to mock out your ohai data for testing with chefspec!}
10
+ spec.description = 'Easily mock out ohai data'
11
+ spec.summary = 'Fauxhai provides an easy way to mock out your ohai data for testing with chefspec!'
12
12
  spec.homepage = 'https://github.com/customink/fauxhai'
13
13
  spec.license = 'MIT'
14
14
 
15
15
  spec.required_ruby_version = '>= 1.9'
16
16
 
17
17
  spec.files = `git ls-files`.split($\)
18
- spec.executables = spec.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
18
+ spec.executables = spec.files.grep(%r{^bin/}).map { |f| File.basename(f) }
19
19
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
20
20
  spec.require_paths = ['lib']
21
21
 
@@ -15,7 +15,7 @@ module Fauxhai
15
15
  end
16
16
 
17
17
  # cache this data so we do not have to SSH again
18
- File.open(cache_file, 'w+'){ |f| f.write(@data.to_json) }
18
+ File.open(cache_file, 'w+') { |f| f.write(@data.to_json) }
19
19
  end
20
20
 
21
21
  yield(@data) if block_given?
@@ -23,7 +23,7 @@ module Fauxhai
23
23
  if defined?(ChefSpec)
24
24
  data = @data
25
25
  ::ChefSpec::ChefRunner.send :define_method, :fake_ohai do |ohai|
26
- data.each_pair do |attribute,value|
26
+ data.each_pair do |attribute, value|
27
27
  ohai[attribute] = value
28
28
  end
29
29
  end
@@ -37,7 +37,7 @@ module Fauxhai
37
37
  end
38
38
 
39
39
  def cached?
40
- File.exists?(cache_file)
40
+ File.exist?(cache_file)
41
41
  end
42
42
 
43
43
  def cache_key
@@ -64,6 +64,7 @@ module Fauxhai
64
64
  end
65
65
 
66
66
  private
67
+
67
68
  def host
68
69
  @host ||= begin
69
70
  raise ArgumentError, ':host is a required option for Fauxhai.fetch' unless @options[:host]
@@ -39,20 +39,21 @@ module Fauxhai
39
39
  end
40
40
 
41
41
  private
42
+
42
43
  def fauxhai_data
43
44
  @fauxhai_data ||= lambda do
44
45
  # If a path option was specified, use it
45
46
  if @options[:path]
46
47
  filepath = File.expand_path(@options[:path])
47
48
 
48
- unless File.exists?(filepath)
49
+ unless File.exist?(filepath)
49
50
  raise Fauxhai::Exception::InvalidPlatform.new("You specified a path to a JSON file on the local system that does not exist: '#{filepath}'")
50
51
  end
51
52
  else
52
53
  filepath = File.join(platform_path, "#{version}.json")
53
54
  end
54
55
 
55
- if File.exists?(filepath)
56
+ if File.exist?(filepath)
56
57
  JSON.parse( File.read(filepath) )
57
58
  elsif
58
59
  # Try loading from github (in case someone submitted a PR with a new file, but we haven't
@@ -68,7 +69,7 @@ module Fauxhai
68
69
  path = Pathname.new(filepath)
69
70
  FileUtils.mkdir_p(path.dirname)
70
71
 
71
- File.open(filepath, 'w'){ |f| f.write(response_body) }
72
+ File.open(filepath, 'w') { |f| f.write(response_body) }
72
73
  return JSON.parse(response_body)
73
74
  else
74
75
  raise Fauxhai::Exception::InvalidPlatform.new("Could not find platform '#{platform}/#{version}' in any of the sources!")
@@ -559,11 +559,11 @@
559
559
  "chef_packages": {
560
560
  "chef": {
561
561
  "version": "12.0.0.alpha.0",
562
- "chef_root": "/usr/local/gems/chef-12.0.0.alpha.0/lib"
562
+ "chef_root": "/opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.0.0.alpha.0/lib"
563
563
  },
564
564
  "ohai": {
565
565
  "version": "7.2.0",
566
- "ohai_root": "/usr/local/gems/ohai-7.2.0/lib/ohai"
566
+ "ohai_root": "/opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-7.2.0/lib/ohai"
567
567
  }
568
568
  },
569
569
  "counters": {
@@ -674,5 +674,9 @@
674
674
  },
675
675
  "memory": {
676
676
  "total": "1048576kB"
677
+ },
678
+ "virtualization": {
679
+ "systems": {
680
+ }
677
681
  }
678
682
  }
@@ -568,11 +568,11 @@
568
568
  "chef_packages": {
569
569
  "chef": {
570
570
  "version": "12.0.0.alpha.0",
571
- "chef_root": "/usr/local/gems/chef-12.0.0.alpha.0/lib"
571
+ "chef_root": "/opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.0.0.alpha.0/lib"
572
572
  },
573
573
  "ohai": {
574
574
  "version": "7.2.0",
575
- "ohai_root": "/usr/local/gems/ohai-7.2.0/lib/ohai"
575
+ "ohai_root": "/opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-7.2.0/lib/ohai"
576
576
  }
577
577
  },
578
578
  "counters": {
@@ -683,5 +683,9 @@
683
683
  },
684
684
  "memory": {
685
685
  "total": "1048576kB"
686
+ },
687
+ "virtualization": {
688
+ "systems": {
689
+ }
686
690
  }
687
691
  }
@@ -1,122 +1,91 @@
1
1
  {
2
2
  "kernel": {
3
3
  "name": "Linux",
4
- "release": "3.2.30-49.59.amzn1.x86_64",
5
- "version": "#1 SMP Wed Oct 3 19:54:33 UTC 2012",
4
+ "release": "3.2.38-5.48.amzn1.x86_64",
5
+ "version": "#1 SMP Wed Feb 13 01:07:25 UTC 2013",
6
6
  "machine": "x86_64",
7
+ "processor": "x86_64",
8
+ "os": "GNU/Linux",
7
9
  "modules": {
8
- "ext3": {
9
- "size": "211770",
10
- "refcount": "1"
11
- },
12
- "jbd": {
13
- "size": "77405",
14
- "refcount": "1"
15
- },
16
10
  "ipv6": {
17
- "size": "317151",
11
+ "size": "317603",
18
12
  "refcount": "10"
19
13
  },
20
14
  "binfmt_misc": {
21
- "size": "7368",
15
+ "size": "7695",
22
16
  "refcount": "1"
23
17
  },
18
+ "dm_mod": {
19
+ "size": "75314",
20
+ "refcount": "0"
21
+ },
24
22
  "scsi_mod": {
25
- "size": "199543",
23
+ "size": "199417",
26
24
  "refcount": "0"
27
25
  },
28
26
  "ext4": {
29
- "size": "456530",
27
+ "size": "456134",
30
28
  "refcount": "1"
31
29
  },
32
30
  "mbcache": {
33
- "size": "7109",
34
- "refcount": "2"
31
+ "size": "7270",
32
+ "refcount": "1"
35
33
  },
36
34
  "jbd2": {
37
- "size": "86650",
35
+ "size": "86039",
38
36
  "refcount": "1"
39
37
  },
40
38
  "crc16": {
41
- "size": "1527",
42
- "refcount": "1"
43
- },
44
- "dm_mirror": {
45
- "size": "13888",
46
- "refcount": "0"
47
- },
48
- "dm_region_hash": {
49
- "size": "9528",
39
+ "size": "1557",
50
40
  "refcount": "1"
51
- },
52
- "dm_log": {
53
- "size": "9143",
54
- "refcount": "2"
55
- },
56
- "dm_mod": {
57
- "size": "74308",
58
- "refcount": "2"
59
41
  }
60
- },
61
- "os": "GNU/Linux"
42
+ }
62
43
  },
63
44
  "os": "linux",
64
- "os_version": "3.2.30-49.59.amzn1.x86_64",
45
+ "os_version": "3.2.38-5.48.amzn1.x86_64",
46
+ "lsb": {
47
+ },
65
48
  "platform": "amazon",
66
49
  "platform_version": "2012.09",
67
50
  "platform_family": "rhel",
68
- "cpu": {
69
- "real": 1,
70
- "total": 1,
71
- "cores": 1
72
- },
73
- "memory": {
74
- "total": "1048576kB"
75
- },
76
- "ohai_time": 1352176490.6813455,
77
51
  "dmi": {
78
52
  },
53
+ "root_group": "root",
79
54
  "command": {
80
55
  "ps": "ps -ef"
81
56
  },
82
57
  "filesystem": {
83
58
  "/dev/xvda1": {
84
- "kb_size": "8256952",
85
- "kb_used": "1022016",
86
- "kb_available": "7151052",
87
- "percent_used": "13%",
59
+ "kb_size": "2064208",
60
+ "kb_used": "881284",
61
+ "kb_available": "1161964",
62
+ "percent_used": "44%",
88
63
  "mount": "/",
64
+ "total_inodes": "131072",
65
+ "inodes_used": "35565",
66
+ "inodes_available": "95507",
67
+ "inodes_percent_used": "28%",
89
68
  "fs_type": "ext4",
90
69
  "mount_options": [
91
70
  "rw",
92
71
  "noatime"
93
- ],
94
- "uuid": "ebbf1f1c-fb71-40aa-93a3-056b455e5127",
95
- "label": "/"
72
+ ]
96
73
  },
97
74
  "tmpfs": {
98
- "kb_size": "848480",
75
+ "kb_size": "304328",
99
76
  "kb_used": "0",
100
- "kb_available": "848480",
77
+ "kb_available": "304328",
101
78
  "percent_used": "0%",
102
79
  "mount": "/dev/shm",
80
+ "total_inodes": "76082",
81
+ "inodes_used": "1",
82
+ "inodes_available": "76081",
83
+ "inodes_percent_used": "1%",
103
84
  "fs_type": "tmpfs",
104
85
  "mount_options": [
105
86
  "rw"
106
87
  ]
107
88
  },
108
- "/dev/xvda2": {
109
- "kb_size": "153899044",
110
- "kb_used": "192068",
111
- "kb_available": "145889352",
112
- "percent_used": "1%",
113
- "mount": "/media/ephemeral0",
114
- "fs_type": "ext3",
115
- "mount_options": [
116
- "rw"
117
- ],
118
- "uuid": "05ed183c-12fd-465b-afc1-4c5081537b08"
119
- },
120
89
  "proc": {
121
90
  "mount": "/proc",
122
91
  "fs_type": "proc",
@@ -147,10 +116,6 @@
147
116
  "rw"
148
117
  ]
149
118
  },
150
- "/dev/xvda3": {
151
- "fs_type": "swap",
152
- "uuid": "0e291033-975c-419d-a126-7dc4418001c4"
153
- },
154
119
  "rootfs": {
155
120
  "mount": "/",
156
121
  "fs_type": "rootfs",
@@ -163,42 +128,32 @@
163
128
  "fs_type": "devtmpfs",
164
129
  "mount_options": [
165
130
  "rw",
166
- "nosuid",
167
131
  "relatime",
168
- "size=837648k",
169
- "nr_inodes=209412",
132
+ "size=296148k",
133
+ "nr_inodes=74037",
170
134
  "mode=755"
171
135
  ]
172
136
  }
173
137
  },
174
- "root_group": "root",
138
+ "ohai_time": 1458950465.4448612,
139
+ "init_package": "init",
175
140
  "languages": {
176
141
  "ruby": {
177
- "platform": "x86_64-linux",
178
- "version": "1.8.7",
179
- "release_date": "2012-02-08",
180
- "target": "x86_64-amazon-linux-gnu",
181
- "target_cpu": "x86_64",
182
- "target_vendor": "amazon",
183
- "target_os": "linux",
184
- "host": "x86_64-redhat-linux-gnu",
185
- "host_cpu": "x86_64",
186
- "host_os": "linux-gnu",
187
- "host_vendor": "redhat",
188
142
  "bin_dir": "/usr/local/bin",
189
- "ruby_bin": "/usr/local/bin/ruby",
143
+ "gem_bin": "/usr/local/bin/gem",
190
144
  "gems_dir": "/usr/local/gems",
191
- "gem_bin": "/usr/local/bin/gem"
192
- }
145
+ "ruby_bin": "/usr/local/bin/ruby"
146
+ },
147
+ "powershell": null
193
148
  },
194
149
  "chef_packages": {
195
150
  "chef": {
196
- "version": "10.16.2",
197
- "chef_root": "/usr/local/gems/chef-10.16.2/lib"
151
+ "version": "12.8.1",
152
+ "chef_root": "/opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.8.1/lib"
198
153
  },
199
154
  "ohai": {
200
- "version": "6.14.0",
201
- "ohai_root": "/usr/local/gems/ohai-6.14.0/lib/ohai"
155
+ "version": "8.11.1",
156
+ "ohai_root": "/opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.11.1/lib/ohai"
202
157
  }
203
158
  },
204
159
  "counters": {
@@ -263,7 +218,8 @@
263
218
  "network": {
264
219
  "default_gateway": "10.0.0.1",
265
220
  "default_interface": "eth0",
266
- "settings": {},
221
+ "settings": {
222
+ },
267
223
  "interfaces": {
268
224
  "eth0": {
269
225
  "addresses": {
@@ -299,5 +255,17 @@
299
255
  }
300
256
  },
301
257
  "uptime": "30 days 15 hours 07 minutes 30 seconds",
302
- "uptime_seconds": 2646450
258
+ "uptime_seconds": 2646450,
259
+ "cpu": {
260
+ "real": 1,
261
+ "total": 1,
262
+ "cores": 1
263
+ },
264
+ "memory": {
265
+ "total": "1048576kB"
266
+ },
267
+ "virtualization": {
268
+ "systems": {
269
+ }
270
+ }
303
271
  }
@@ -1,132 +1,131 @@
1
1
  {
2
+ "lsb": {
3
+ },
2
4
  "kernel": {
3
5
  "name": "Linux",
4
- "release": "3.4.68-59.97.amzn1.x86_64",
5
- "version": "#1 SMP Tue Nov 5 07:40:09 UTC 2013",
6
- "machine": "x86_64",
6
+ "release": "3.4.68-59.97.amzn1.i686",
7
+ "version": "#1 SMP Tue Nov 5 07:39:21 UTC 2013",
8
+ "machine": "i686",
9
+ "processor": "i686",
10
+ "os": "GNU/Linux",
7
11
  "modules": {
8
- "ext3": {
9
- "size": "215312",
10
- "refcount": "1"
11
- },
12
- "jbd": {
13
- "size": "79093",
14
- "refcount": "1"
15
- },
16
12
  "ipv6": {
17
- "size": "329579",
13
+ "size": "282375",
18
14
  "refcount": "10"
19
15
  },
20
16
  "binfmt_misc": {
21
- "size": "7864",
17
+ "size": "6420",
22
18
  "refcount": "1"
23
19
  },
24
20
  "scsi_mod": {
25
- "size": "203562",
21
+ "size": "171899",
26
22
  "refcount": "0"
27
23
  },
28
24
  "acpiphp": {
29
- "size": "17564",
25
+ "size": "15344",
30
26
  "refcount": "0"
31
27
  },
32
28
  "pci_hotplug": {
33
- "size": "12845",
29
+ "size": "10695",
34
30
  "refcount": "1"
35
31
  },
36
32
  "crc32c_intel": {
37
- "size": "2187",
33
+ "size": "1695",
34
+ "refcount": "0"
35
+ },
36
+ "aesni_intel": {
37
+ "size": "9483",
38
38
  "refcount": "0"
39
39
  },
40
+ "cryptd": {
41
+ "size": "7818",
42
+ "refcount": "1"
43
+ },
44
+ "aes_i586": {
45
+ "size": "7222",
46
+ "refcount": "1"
47
+ },
48
+ "aes_generic": {
49
+ "size": "26367",
50
+ "refcount": "2"
51
+ },
40
52
  "microcode": {
41
- "size": "12515",
53
+ "size": "9641",
42
54
  "refcount": "0"
43
55
  },
44
56
  "ext4": {
45
- "size": "468843",
57
+ "size": "424800",
46
58
  "refcount": "1"
47
59
  },
48
60
  "mbcache": {
49
- "size": "7407",
50
- "refcount": "2"
61
+ "size": "5559",
62
+ "refcount": "1"
51
63
  },
52
64
  "jbd2": {
53
- "size": "92431",
65
+ "size": "80824",
54
66
  "refcount": "1"
55
67
  },
56
68
  "crc16": {
57
- "size": "1566",
69
+ "size": "1282",
58
70
  "refcount": "1"
59
71
  },
60
72
  "dm_mirror": {
61
- "size": "14096",
73
+ "size": "12266",
62
74
  "refcount": "0"
63
75
  },
64
76
  "dm_region_hash": {
65
- "size": "9733",
77
+ "size": "8012",
66
78
  "refcount": "1"
67
79
  },
68
80
  "dm_log": {
69
- "size": "9396",
81
+ "size": "8257",
70
82
  "refcount": "2"
71
83
  },
72
84
  "dm_mod": {
73
- "size": "78506",
85
+ "size": "66416",
74
86
  "refcount": "2"
75
87
  }
76
- },
77
- "os": "GNU/Linux"
88
+ }
78
89
  },
79
90
  "os": "linux",
80
- "os_version": "3.4.68-59.97.amzn1.x86_64",
81
- "command": {
82
- "ps": "ps -ef"
83
- },
84
- "dmi": {
85
- },
86
- "lsb": {
87
- },
91
+ "os_version": "3.4.68-59.97.amzn1.i686",
88
92
  "platform": "amazon",
89
93
  "platform_version": "2013.09",
90
94
  "platform_family": "rhel",
91
- "ohai_time": 1395617389.734144,
92
95
  "filesystem": {
93
96
  "/dev/xvda1": {
94
97
  "kb_size": "8256952",
95
- "kb_used": "1309776",
96
- "kb_available": "6863292",
97
- "percent_used": "17%",
98
+ "kb_used": "1283900",
99
+ "kb_available": "6889168",
100
+ "percent_used": "16%",
98
101
  "mount": "/",
102
+ "total_inodes": "524288",
103
+ "inodes_used": "53098",
104
+ "inodes_available": "471190",
105
+ "inodes_percent_used": "11%",
99
106
  "fs_type": "ext4",
100
107
  "mount_options": [
101
108
  "rw",
102
109
  "noatime"
103
110
  ],
104
- "uuid": "1701d228-e1bd-4094-a14c-8c64d6819362",
111
+ "uuid": "b5d93184-d426-4052-82fb-1d630c4a37dc",
105
112
  "label": "/"
106
113
  },
107
114
  "tmpfs": {
108
- "kb_size": "848344",
115
+ "kb_size": "307688",
109
116
  "kb_used": "0",
110
- "kb_available": "848344",
117
+ "kb_available": "307688",
111
118
  "percent_used": "0%",
112
119
  "mount": "/dev/shm",
120
+ "total_inodes": "76922",
121
+ "inodes_used": "1",
122
+ "inodes_available": "76921",
123
+ "inodes_percent_used": "1%",
113
124
  "fs_type": "tmpfs",
114
125
  "mount_options": [
115
126
  "rw"
116
127
  ]
117
128
  },
118
- "/dev/xvda2": {
119
- "kb_size": "153899044",
120
- "kb_used": "192068",
121
- "kb_available": "145889352",
122
- "percent_used": "1%",
123
- "mount": "/media/ephemeral0",
124
- "fs_type": "ext3",
125
- "mount_options": [
126
- "rw"
127
- ],
128
- "uuid": "b3c490c3-3a22-4bf9-8dc1-a80729216b70"
129
- },
130
129
  "proc": {
131
130
  "mount": "/proc",
132
131
  "fs_type": "proc",
@@ -157,10 +156,6 @@
157
156
  "rw"
158
157
  ]
159
158
  },
160
- "/dev/xvda3": {
161
- "fs_type": "swap",
162
- "uuid": "a3e34831-91a5-46ce-9b0e-109fde024db3"
163
- },
164
159
  "rootfs": {
165
160
  "mount": "/",
166
161
  "fs_type": "rootfs",
@@ -174,40 +169,48 @@
174
169
  "mount_options": [
175
170
  "rw",
176
171
  "relatime",
177
- "size=836300k",
178
- "nr_inodes=209075",
172
+ "size=299852k",
173
+ "nr_inodes=74963",
179
174
  "mode=755"
180
175
  ]
181
176
  }
182
177
  },
178
+ "command": {
179
+ "ps": "ps -ef"
180
+ },
181
+ "ohai_time": 1458950458.7630599,
182
+ "dmi": {
183
+ },
184
+ "init_package": "init",
183
185
  "root_group": "root",
184
186
  "languages": {
185
187
  "ruby": {
186
- "platform": "x86_64-linux",
188
+ "platform": "i386-linux",
187
189
  "version": "1.8.7",
188
190
  "release_date": "2013-06-27",
189
- "target": "x86_64-amazon-linux-gnu",
190
- "target_cpu": "x86_64",
191
+ "target": "i686-amazon-linux-gnu",
192
+ "target_cpu": "i386",
191
193
  "target_vendor": "amazon",
192
194
  "target_os": "linux",
193
- "host": "x86_64-redhat-linux-gnu",
194
- "host_cpu": "x86_64",
195
+ "host": "i686-redhat-linux-gnu",
196
+ "host_cpu": "i686",
195
197
  "host_os": "linux-gnu",
196
198
  "host_vendor": "redhat",
197
199
  "bin_dir": "/usr/local/bin",
198
200
  "ruby_bin": "/usr/local/bin/ruby",
199
201
  "gems_dir": "/usr/local/gems",
200
202
  "gem_bin": "/usr/local/bin/gem"
201
- }
203
+ },
204
+ "powershell": null
202
205
  },
203
206
  "chef_packages": {
204
207
  "chef": {
205
- "version": "11.10.4",
206
- "chef_root": "/usr/local/gems/chef-11.10.4/lib"
208
+ "version": "12.8.1",
209
+ "chef_root": "/opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.8.1/lib"
207
210
  },
208
211
  "ohai": {
209
- "version": "6.20.0",
210
- "ohai_root": "/usr/local/gems/ohai-6.20.0/lib/ohai"
212
+ "version": "8.11.1",
213
+ "ohai_root": "/opt/chef/embedded/lib/ruby/gems/2.1.0/gems/ohai-8.11.1/lib/ohai"
211
214
  }
212
215
  },
213
216
  "counters": {
@@ -317,5 +320,9 @@
317
320
  },
318
321
  "memory": {
319
322
  "total": "1048576kB"
323
+ },
324
+ "virtualization": {
325
+ "systems": {
326
+ }
320
327
  }
321
328
  }