simp-rspec-puppet-facts 1.0.1 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (47) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +97 -3
  3. data/facts/1.6/centos-6-x86_64.facts +0 -0
  4. data/facts/1.6/centos-7-x86_64.facts +0 -0
  5. data/facts/1.6/redhat-6-x86_64.facts +0 -0
  6. data/facts/1.6/redhat-7-x86_64.facts +0 -0
  7. data/facts/1.7/centos-6-x86_64.facts +104 -0
  8. data/facts/1.7/centos-7-x86_64.facts +102 -0
  9. data/facts/1.7/redhat-6-x86_64.facts +107 -0
  10. data/facts/1.7/redhat-7-x86_64.facts +102 -0
  11. data/facts/2.0/centos-6-x86_64.facts +200 -0
  12. data/facts/2.0/centos-7-x86_64.facts +194 -0
  13. data/facts/2.0/redhat-6-x86_64.facts +196 -0
  14. data/facts/2.0/redhat-7-x86_64.facts +195 -0
  15. data/facts/2.1/centos-6-x86_64.facts +212 -0
  16. data/facts/2.1/centos-7-x86_64.facts +212 -0
  17. data/facts/2.1/redhat-6-x86_64.facts +208 -0
  18. data/facts/2.1/redhat-7-x86_64.facts +213 -0
  19. data/facts/2.2/centos-6-x86_64.facts +235 -0
  20. data/facts/2.2/centos-7-x86_64.facts +235 -0
  21. data/facts/2.2/redhat-6-x86_64.facts +231 -0
  22. data/facts/2.2/redhat-7-x86_64.facts +236 -0
  23. data/facts/2.3/centos-6-x86_64.facts +236 -0
  24. data/facts/2.3/centos-7-x86_64.facts +236 -0
  25. data/facts/2.3/redhat-6-x86_64.facts +232 -0
  26. data/facts/2.3/redhat-7-x86_64.facts +237 -0
  27. data/facts/2.4/centos-6-x86_64.facts +236 -0
  28. data/facts/2.4/centos-7-x86_64.facts +236 -0
  29. data/facts/2.4/redhat-6-x86_64.facts +232 -0
  30. data/facts/2.4/redhat-7-x86_64.facts +237 -0
  31. data/facts/3.0/centos-6-x86_64.facts +339 -0
  32. data/facts/3.0/centos-7-x86_64.facts +343 -0
  33. data/facts/3.0/redhat-6-x86_64.facts +338 -0
  34. data/facts/3.0/redhat-7-x86_64.facts +348 -0
  35. data/facts/3.1/centos-6-x86_64.facts +368 -0
  36. data/facts/3.1/centos-7-x86_64.facts +372 -0
  37. data/facts/3.1/redhat-6-x86_64.facts +367 -0
  38. data/facts/3.1/redhat-7-x86_64.facts +377 -0
  39. data/facts/Gemfile +11 -0
  40. data/facts/Vagrantfile +34 -0
  41. data/facts/get_facts.sh +35 -0
  42. data/lib/simp/rspec-puppet-facts.rb +100 -40
  43. data/lib/simp/version.rb +4 -0
  44. data/spec/fixtures/metadata.json +2 -2
  45. data/spec/simp_rspec_puppet_facts_spec.rb +120 -51
  46. data/spec/spec_helper.rb +0 -6
  47. metadata +107 -70
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b69360aae2a367b1e890bd1473582da6f630b9a0
4
- data.tar.gz: 237e380a547802561b737ce1c325ff90d8f751f0
3
+ metadata.gz: 9a9aea519d49324856ee779326aac28d8ff02c26
4
+ data.tar.gz: d0a55816ad751a31d398f0ba02648dab423a8e18
5
5
  SHA512:
6
- metadata.gz: 85acce415845a0b1802721884641362a44c81292105daa9e73527cbdaef7210bed468e508f1397b2e2a7bdddf5846fcd1bf995d51358c6c3f129f6d579b95072
7
- data.tar.gz: 49366716ee81b0c3abc5ad995fc64ea5cb8c6fb5295153dc0041a788f5ac9dafc6704c97973f8860371881f5dbe0b4b0f6b9cd3d8ace49574f3adb1095560790
6
+ metadata.gz: 87e26cc74ca899dc65ab39429b74ab442fd451073a9bdfe1d80d5dde76c5572165c199d5cc2c8849a88eef85072e4a19108d4e0d88117c3469aa636969598dd0
7
+ data.tar.gz: 3526dd37597989ccae2b7d0bc441e0328250738f6dce3070ca9bb393946d05a8a9cfd7189dba86d87e5cdb60d11ce881b52fba31e9fbab27c77a613a527cfddb
data/README.md CHANGED
@@ -6,7 +6,101 @@
6
6
 
7
7
  Simplify (ahem: "SIMPlify") your unit tests by looping on every supported Operating System and populating facts.
8
8
 
9
- This gem acts as a shim in front of the most excellent [mcanevet/rspec-puppet-facts](https://github.com/mcanevet/rspec-puppet-facts) and can be used as a drop-in replacement when testing for SIMP.
10
-
11
9
  ## Motivation
12
- The `on_supported_os` method provided by rspec-puppet-facts provides facts captured from actual systems (captured in a brilliantly elegant [Vagrantfile](https://github.com/mcanevet/rspec-puppet-facts/blob/master/facts/Vagrantfile)). However, many SIMP tests require additional custom facts.
10
+ The `on_supported_os` method provided by rspec-puppet-facts provides facts captured from running Vagrant systems. However, many SIMP tests require additional custom facts.
11
+
12
+ This gem acts as a shim in front of [mcanevet/rspec-puppet-facts](https://github.com/mcanevet/rspec-puppet-facts) and can be used as a drop-in replacement when testing for SIMP. It uses a combination of Vagrant-captured SIMP facts and logic to model certain environments (e.g., SELinux modes, LSB facts being present or not).
13
+
14
+ ## Usage
15
+
16
+ ### Basic usage
17
+
18
+ Use this code inside `spec_helper.rb`:
19
+ ```ruby
20
+ require 'simp/rspec-puppet-facts'
21
+ include Simp::RspecPuppetFacts
22
+ ```
23
+
24
+ Use this structure inside your `*_spec.rb` files:
25
+ ```ruby
26
+ require 'spec_helper'
27
+
28
+ describe 'module_name::class_name' do
29
+ # loops through and provides facts for each supported os in metadata.json
30
+ on_supported_os.each do |os, base_facts|
31
+ context "on #{os}" do
32
+ let(:facts){ base_facts.dup }
33
+ it { is_expected.to compile.with_all_deps }
34
+ end
35
+ end
36
+ end
37
+ ```
38
+
39
+ ### Providing options
40
+ See the [options](#options) for details
41
+ ```ruby
42
+ on_supported_os({:extra_facts=>{:username=>'flastname'}})
43
+ on_supported_os({:selinux_mode=>:permissive})
44
+ ```
45
+
46
+
47
+ ## Options
48
+
49
+ ### `:extra_facts`
50
+
51
+ _[default: {}]_
52
+
53
+ Override or add extra facts to each os/facts hash.
54
+
55
+ **NOTE:** Facts managed by internal logic (such as `:selinux`, `:selinux_current_mode`, `:tmp_mount_*`, etc) will still be overwritten. To avoid this, use `:extra_facts_immutable` instead.
56
+
57
+
58
+ ### `:extra_facts_immutable`
59
+
60
+ _[default: {}]_
61
+
62
+ Override or add extra facts to each os/facts hash. These facts cannot be altered by internal logic (such as `:selinux_mode`).
63
+
64
+ ### `:selinux_mode`
65
+
66
+ _[default: **`:enforcing`**]_
67
+
68
+ Given an enforcement mode (`:enforcing`, `:permissive`, or `:disabled`), overrides the following facts:
69
+ - `selinux`
70
+ - `selinux_current_mode`
71
+ - `selinux_state`
72
+ - `tmp_mount_*` _(only modifies existing `tmp_mount*` facts)_
73
+
74
+ #### Example: Default SELinux mode (`:enforcing`)
75
+
76
+ ```ruby
77
+ # Default facts (`.first.last` returns facts for the first os)
78
+ facts_hash = on_supported_os.first.last
79
+ facts_hash.values_at(:selinux,:selinux_current_mode,:selinux_state,:tmp_mount_dev_shm)
80
+ ### => [true, "enforcing", "enforcing", "rw,relatime,seclabel"]
81
+ ```
82
+
83
+
84
+ #### Example: Setting facts to model when SELinux is `disabled`
85
+
86
+ ```ruby
87
+ # Set selinux mode to `disabled`
88
+ facts_hash = on_supported_os({:selinux_mode => :disabled}).first.last
89
+ facts_hash.values_at(:selinux,:selinux_current_mode,:selinux_state,:tmp_mount_dev_shm)
90
+ ### => [false, "disabled", "disabled", "rw,relatime"]
91
+ ```
92
+
93
+ ## Environment Variables
94
+ ### `SIMP_FACTS_OS`
95
+ Restricts test matrix to the OS strings provided in a comma-delimited list.
96
+ - **Example:** `SIMP_FACTS_OS=redhat-6-x86_64,redhat-7-x86_64`
97
+
98
+
99
+ ### `SIMP_FACTS_lsb`
100
+ - `no`
101
+
102
+
103
+ ## How to capture new facts
104
+ - Place any modules containing facts you want to capture under `modules/`
105
+ - Run `vagrant up`
106
+ **NOTE:** This replaces any older fact data
File without changes
File without changes
File without changes
File without changes
@@ -0,0 +1,104 @@
1
+ {
2
+ "gem_version": "~> 1.7.0",
3
+ "lib": "/vagrant/modules/apache/lib/facter:/vagrant/modules/foreman/lib/facter:/vagrant/modules/freeradius/lib/facter:/vagrant/modules/openldap/lib/facter:/vagrant/modules/pupmod/lib/facter:/vagrant/modules/simplib/lib/facter:/vagrant/modules/stdlib/lib/facter:/vagrant/modules/tpm/lib/facter:/vagrant/modules/xwindows/lib/facter:",
4
+ "architecture": "x86_64",
5
+ "augeasversion": "1.4.0",
6
+ "kernel": "Linux",
7
+ "blockdevice_sda_size": 21474836480,
8
+ "blockdevice_sda_vendor": "ATA",
9
+ "blockdevice_sda_model": "VBOX HARDDISK",
10
+ "blockdevices": "sda",
11
+ "domain": "example.com",
12
+ "macaddress": "08:00:27:98:CA:98",
13
+ "osfamily": "RedHat",
14
+ "operatingsystem": "CentOS",
15
+ "facterversion": "1.7.6",
16
+ "filesystems": "ext4,iso9660",
17
+ "fqdn": "foo.example.com",
18
+ "hardwareisa": "x86_64",
19
+ "hardwaremodel": "x86_64",
20
+ "hostname": "foo",
21
+ "id": "root",
22
+ "interfaces": "eth0,lo",
23
+ "ipaddress_eth0": "10.0.2.15",
24
+ "macaddress_eth0": "08:00:27:98:CA:98",
25
+ "netmask_eth0": "255.255.255.0",
26
+ "mtu_eth0": "1500",
27
+ "ipaddress_lo": "127.0.0.1",
28
+ "netmask_lo": "255.0.0.0",
29
+ "mtu_lo": "65536",
30
+ "ipaddress": "10.0.2.15",
31
+ "kernelmajversion": "2.6",
32
+ "kernelrelease": "2.6.32-504.el6.x86_64",
33
+ "kernelversion": "2.6.32",
34
+ "boardmanufacturer": "Oracle Corporation",
35
+ "boardproductname": "VirtualBox",
36
+ "boardserialnumber": "0",
37
+ "bios_vendor": "innotek GmbH",
38
+ "bios_version": "VirtualBox",
39
+ "bios_release_date": "12/01/2006",
40
+ "manufacturer": "innotek GmbH",
41
+ "productname": "VirtualBox",
42
+ "serialnumber": "0",
43
+ "uuid": "744D861E-723F-4811-A97E-7DB0430088C6",
44
+ "type": "Other",
45
+ "memorysize": "490.39 MB",
46
+ "memoryfree": "372.45 MB",
47
+ "swapsize": "992.00 MB",
48
+ "swapfree": "991.86 MB",
49
+ "swapsize_mb": "992.00",
50
+ "swapfree_mb": "991.86",
51
+ "memorysize_mb": "490.39",
52
+ "memoryfree_mb": "372.45",
53
+ "memorytotal": "490.39 MB",
54
+ "netmask": "255.255.255.0",
55
+ "network_eth0": "10.0.2.0",
56
+ "network_lo": "127.0.0.0",
57
+ "operatingsystemmajrelease": "6",
58
+ "operatingsystemrelease": "6.6",
59
+ "path": "/home/vagrant/vendor/bundler/ruby/2.1.0/bin:/opt/puppetlabs/puppet/bin:/opt/puppetlabs/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin",
60
+ "physicalprocessorcount": 1,
61
+ "processor0": "Intel(R) Core(TM) i7-5557U CPU @ 3.10GHz",
62
+ "processorcount": "1",
63
+ "ps": "ps -ef",
64
+ "puppetversion": "3.8.7",
65
+ "rubysitedir": "/opt/puppetlabs/puppet/lib/ruby/site_ruby/2.1.0",
66
+ "rubyversion": "2.1.7",
67
+ "selinux": "false",
68
+ "sshdsakey": "AAAAB3NzaC1kc3MAAACBAOSOdC70GK+62b1DmmHw37vZ6VEUcQLv9AfkTvjcqOrKrTNGNMcY+fzJtbcfTG4i21YEDa8CSHoYtsrfZy4nLamc+CIclQONCXNR1W+jCXpe/mjY7V0p9JjKDsTMX+o9jFsuBNYLpPK5w/udoUvVEETET66Rffh7ylVdwrGsw72vAAAAFQCsxMUYvE0SSNELWgJeNZUl0MMxlwAAAIEAyssLRdOH4F0ijHHFbsQbreJSWpJSb7JMwOTVzECe97KfsoCV6VUuMBsTg/4GKWxHxK35z/VZSftPfFFaAtIERtStRfYlelZOZ0ftuc4+VZmQ4OWiOV2gBrWCUzPeo9BcFMWzeQEPpn2ZIabAn9lfdAzf/2dtYiZScgesW1DKG3MAAACADhQF5ON8mfbTUwEem0PvB9JER0cm8CE1qYCa6UFRVQNGr9UhTUC9+layi4U858Qi1W98UNavmogVc1mMiGlOODVQRUb0VTlUHRVVaFAANd4iW0n8Iy+fcaS6soDMYyw2UYwpFjHWeBE9Gf8ESg7aJVt14BJpQkVX/plsjWvGh5w=",
69
+ "sshfp_dsa": "SSHFP 2 1 0e9e8e299b19eb61dd5f9eea7b142f9ac7df2cd3\nSSHFP 2 2 03106abaacaa1af5103053b6e933bb603c933bb9ebc0f3d962ac9cc2ba35e37d",
70
+ "sshrsakey": "AAAAB3NzaC1yc2EAAAABIwAAAQEA1aDd89yysGoH+u57JguOVc1HOAURwMzsyiE58Un4qdB6RWdfHbzx+hhaYMk6HpUU2pYcHpFL+RPNsXLWx6wH2e/HvRfOi1pHxElpX9P8Q1jwKDIgEzAVRhnTIejDw0MiKv8EVIXexcs8ZGrfcVh1eRSGlGUyJs+vY7MVbMlmL6cuz4mf70Gf55YRPCyXuubyicz9bthyClykHzR8PPjCYL/hXyNed69TqlC2/xDqOs5apK/ND5nytA4irCZGh3POABxapIAjcSYU3MR7VMpV5CbUoPaeW8Zvldbbdf41Hg0mScAAvutJNgdy6p5Wy/WLAa6otJ2RiVAYNP+l5sDz2Q==",
71
+ "sshfp_rsa": "SSHFP 1 1 92e88fd08705813da6d5f9b7d5f79355282b9397\nSSHFP 1 2 58e36c85866db8936510aadd0785ef700c172dd1ecc2d30c4d52996fc53a8bac",
72
+ "timezone": "UTC",
73
+ "uniqueid": "007f0100",
74
+ "uptime": "0:01 hours",
75
+ "uptime_days": 0,
76
+ "uptime_hours": 0,
77
+ "uptime_seconds": 74,
78
+ "virtual": "kvm",
79
+ "is_virtual": "true",
80
+ "openldap_arch": "i386",
81
+ "puppet_ruby_dir": "/home/vagrant/vendor/bundler/ruby/2.1.0/gems/puppet-3.8.7/lib/puppet",
82
+ "acpid_enabled": true,
83
+ "defaultgateway": "10.0.2.2",
84
+ "defaultgatewayiface": "eth0",
85
+ "fips_enabled": false,
86
+ "fullrun": "false",
87
+ "grub_version": "0.97",
88
+ "has_clustering": false,
89
+ "init_systems": [
90
+ "rc",
91
+ "upstart",
92
+ "sysv"
93
+ ],
94
+ "runlevel": "3",
95
+ "shmall": "4294967296",
96
+ "tmp_mount_dev_shm": "rw,relatime",
97
+ "tmp_mount_path_dev_shm": "tmpfs",
98
+ "tmp_mount_fstype_dev_shm": "tmpfs",
99
+ "uid_min": "500",
100
+ "is_pe": false,
101
+ "root_home": "/root",
102
+ "has_tpm": false,
103
+ "gdm_version": "0.0.0"
104
+ }
@@ -0,0 +1,102 @@
1
+ {
2
+ "gem_version": "~> 1.7.0",
3
+ "lib": "/vagrant/modules/apache/lib/facter:/vagrant/modules/foreman/lib/facter:/vagrant/modules/freeradius/lib/facter:/vagrant/modules/openldap/lib/facter:/vagrant/modules/pupmod/lib/facter:/vagrant/modules/simplib/lib/facter:/vagrant/modules/stdlib/lib/facter:/vagrant/modules/tpm/lib/facter:/vagrant/modules/xwindows/lib/facter:",
4
+ "architecture": "x86_64",
5
+ "augeasversion": "1.4.0",
6
+ "kernel": "Linux",
7
+ "blockdevice_sda_size": 21474836480,
8
+ "blockdevice_sda_vendor": "ATA",
9
+ "blockdevice_sda_model": "VBOX HARDDISK",
10
+ "blockdevices": "sda",
11
+ "domain": "example.com",
12
+ "macaddress": "08:00:27:be:2b:28",
13
+ "osfamily": "RedHat",
14
+ "operatingsystem": "CentOS",
15
+ "facterversion": "1.7.6",
16
+ "filesystems": "xfs",
17
+ "fqdn": "foo.example.com",
18
+ "hardwareisa": "x86_64",
19
+ "hardwaremodel": "x86_64",
20
+ "hostname": "foo",
21
+ "id": "root",
22
+ "interfaces": "enp0s3,lo",
23
+ "ipaddress_enp0s3": "10.0.2.15",
24
+ "macaddress_enp0s3": "08:00:27:be:2b:28",
25
+ "netmask_enp0s3": "255.255.255.0",
26
+ "ipaddress_lo": "127.0.0.1",
27
+ "netmask_lo": "255.0.0.0",
28
+ "ipaddress": "10.0.2.15",
29
+ "kernelmajversion": "3.10",
30
+ "kernelrelease": "3.10.0-123.el7.x86_64",
31
+ "kernelversion": "3.10.0",
32
+ "boardmanufacturer": "Oracle Corporation",
33
+ "boardproductname": "VirtualBox",
34
+ "boardserialnumber": "0",
35
+ "bios_vendor": "innotek GmbH",
36
+ "bios_version": "VirtualBox",
37
+ "bios_release_date": "12/01/2006",
38
+ "manufacturer": "innotek GmbH",
39
+ "productname": "VirtualBox",
40
+ "serialnumber": "0",
41
+ "uuid": "C2A0AE40-3196-4933-B3ED-6190E43931A1",
42
+ "type": "Other",
43
+ "memorysize": "490.41 MB",
44
+ "memoryfree": "307.93 MB",
45
+ "swapsize": "1.03 GB",
46
+ "swapfree": "1.03 GB",
47
+ "swapsize_mb": "1056.00",
48
+ "swapfree_mb": "1055.80",
49
+ "memorysize_mb": "490.41",
50
+ "memoryfree_mb": "307.93",
51
+ "memorytotal": "490.41 MB",
52
+ "netmask": "255.255.255.0",
53
+ "network_enp0s3": "10.0.2.0",
54
+ "network_lo": "127.0.0.0",
55
+ "operatingsystemmajrelease": "7",
56
+ "operatingsystemrelease": "7.0.1406",
57
+ "path": "/home/vagrant/vendor/bundler/ruby/2.1.0/bin:/opt/puppetlabs/puppet/bin:/opt/puppetlabs/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin",
58
+ "physicalprocessorcount": 1,
59
+ "processor0": "Intel(R) Core(TM) i7-5557U CPU @ 3.10GHz",
60
+ "processorcount": "1",
61
+ "ps": "ps -ef",
62
+ "puppetversion": "3.8.7",
63
+ "rubysitedir": "/opt/puppetlabs/puppet/lib/ruby/site_ruby/2.1.0",
64
+ "rubyversion": "2.1.7",
65
+ "selinux": "false",
66
+ "sshrsakey": "AAAAB3NzaC1yc2EAAAADAQABAAABAQDLMo35gwbuqQvRq1gy6L8vddeyMNBYr5WPVcftMKSJR1jmwzxcZ+h0AEb3KPfoMHkqe9Xy+3oN981qe5ZCE780HO884AaXzXry9zdWQjGysrI+zHQbqbpOkYAGsVbJiQ7VnH7lMVZo2jCbABj4OdsbeCOeP3oDXTNCTaWWdQChzqvYgNBvb0mg/na1l0naQ1nsJYD85O8ZRQ9U/JOADMaOjummfOb2z7MgskZ9abm5eFCCQl+wUUNXKqQx+uyVM4lyyoTHpW3M2IV0P9wxhWJF6eovwyREGuMgJCs6kbHCFty7HtAYbzziabgQav8pMe68aBqjshbpU6ll/+aXWhD1",
67
+ "sshfp_rsa": "SSHFP 1 1 f25e9ad2faddbe75263cfee4fa97dc965bc1d581\nSSHFP 1 2 0173e386031a134e4cbfb7f6971788761a5aa3d9e39dafcf163f003de2537199",
68
+ "sshecdsakey": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBBcSUcHQOfBDZElr6PBmxc/4ZDaIhsugXM7OE2SQj35iOMCN/I3XfINMo8SvBIQ6CsBqPnzgbKRBs7e1FPFnsT4=",
69
+ "sshfp_ecdsa": "SSHFP 3 1 91edfdf5e7e098f4392606865c017dabc26804bb\nSSHFP 3 2 f00c65a1884bfec52db11de89254f0bfd46baf9e759546654c94371a05ee0dba",
70
+ "timezone": "UTC",
71
+ "uniqueid": "007f0100",
72
+ "uptime": "0:01 hours",
73
+ "uptime_days": 0,
74
+ "uptime_hours": 0,
75
+ "uptime_seconds": 71,
76
+ "virtual": "virtualbox",
77
+ "is_virtual": "true",
78
+ "openldap_arch": "i386",
79
+ "puppet_ruby_dir": "/home/vagrant/vendor/bundler/ruby/2.1.0/gems/puppet-3.8.7/lib/puppet",
80
+ "acpid_enabled": false,
81
+ "defaultgateway": "10.0.2.2",
82
+ "defaultgatewayiface": "enp0s3",
83
+ "fips_enabled": false,
84
+ "fullrun": "false",
85
+ "grub_version": "2.02~beta2",
86
+ "has_clustering": false,
87
+ "init_systems": [
88
+ "rc",
89
+ "systemd",
90
+ "sysv"
91
+ ],
92
+ "runlevel": "3",
93
+ "shmall": "268435456",
94
+ "tmp_mount_dev_shm": "rw,nosuid,nodev",
95
+ "tmp_mount_path_dev_shm": "tmpfs",
96
+ "tmp_mount_fstype_dev_shm": "tmpfs",
97
+ "uid_min": "1000",
98
+ "is_pe": false,
99
+ "root_home": "/root",
100
+ "has_tpm": false,
101
+ "gdm_version": "0.0.0"
102
+ }
@@ -0,0 +1,107 @@
1
+ {
2
+ "gem_version": "~> 1.7.0",
3
+ "lib": "/vagrant/modules/apache/lib/facter:/vagrant/modules/foreman/lib/facter:/vagrant/modules/freeradius/lib/facter:/vagrant/modules/openldap/lib/facter:/vagrant/modules/pupmod/lib/facter:/vagrant/modules/simplib/lib/facter:/vagrant/modules/stdlib/lib/facter:/vagrant/modules/tpm/lib/facter:/vagrant/modules/xwindows/lib/facter:",
4
+ "architecture": "x86_64",
5
+ "augeasversion": "1.4.0",
6
+ "kernel": "Linux",
7
+ "blockdevice_sr0_size": 1073741312,
8
+ "blockdevice_sr0_vendor": "VBOX",
9
+ "blockdevice_sr0_model": "CD-ROM",
10
+ "blockdevice_sda_size": 32212254720,
11
+ "blockdevice_sda_vendor": "ATA",
12
+ "blockdevice_sda_model": "VBOX HARDDISK",
13
+ "blockdevices": "sda,sr0",
14
+ "domain": "example.com",
15
+ "macaddress": "08:00:27:D5:6F:26",
16
+ "osfamily": "RedHat",
17
+ "operatingsystem": "RedHat",
18
+ "facterversion": "1.7.6",
19
+ "filesystems": "ext4,iso9660",
20
+ "fqdn": "foo.example.com",
21
+ "hardwareisa": "x86_64",
22
+ "hardwaremodel": "x86_64",
23
+ "hostname": "foo",
24
+ "id": "root",
25
+ "interfaces": "eth0,lo",
26
+ "ipaddress_eth0": "10.0.2.15",
27
+ "macaddress_eth0": "08:00:27:D5:6F:26",
28
+ "netmask_eth0": "255.255.255.0",
29
+ "mtu_eth0": "1500",
30
+ "ipaddress_lo": "127.0.0.1",
31
+ "netmask_lo": "255.0.0.0",
32
+ "mtu_lo": "16436",
33
+ "ipaddress": "10.0.2.15",
34
+ "kernelmajversion": "2.6",
35
+ "kernelrelease": "2.6.32-431.el6.x86_64",
36
+ "kernelversion": "2.6.32",
37
+ "boardmanufacturer": "Oracle Corporation",
38
+ "boardproductname": "VirtualBox",
39
+ "boardserialnumber": "0",
40
+ "bios_vendor": "innotek GmbH",
41
+ "bios_version": "VirtualBox",
42
+ "bios_release_date": "12/01/2006",
43
+ "manufacturer": "innotek GmbH",
44
+ "productname": "VirtualBox",
45
+ "serialnumber": "0",
46
+ "uuid": "13768983-8D2B-451F-937F-ADDD3C6DBE40",
47
+ "type": "Other",
48
+ "memorysize": "1.83 GB",
49
+ "memoryfree": "1.69 GB",
50
+ "swapsize": "3.00 GB",
51
+ "swapfree": "3.00 GB",
52
+ "swapsize_mb": "3071.99",
53
+ "swapfree_mb": "3071.99",
54
+ "memorysize_mb": "1877.43",
55
+ "memoryfree_mb": "1733.10",
56
+ "memorytotal": "1.83 GB",
57
+ "netmask": "255.255.255.0",
58
+ "network_eth0": "10.0.2.0",
59
+ "network_lo": "127.0.0.0",
60
+ "operatingsystemmajrelease": "6",
61
+ "operatingsystemrelease": "6.5",
62
+ "path": "/home/vagrant/vendor/bundler/ruby/2.1.0/bin:/opt/puppetlabs/puppet/bin:/opt/puppetlabs/bin:/usr/local/sbin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin",
63
+ "physicalprocessorcount": 1,
64
+ "processor0": "Intel(R) Core(TM) i7-5557U CPU @ 3.10GHz",
65
+ "processorcount": "1",
66
+ "ps": "ps -ef",
67
+ "puppetversion": "3.8.7",
68
+ "rubysitedir": "/opt/puppetlabs/puppet/lib/ruby/site_ruby/2.1.0",
69
+ "rubyversion": "2.1.7",
70
+ "selinux": "false",
71
+ "sshdsakey": "AAAAB3NzaC1kc3MAAACBAMJzRC1Dam9XK/uinH37BE09gJ6Jdcjdk1S4INQ4QOm4TqKO3j6glXZWGNikEG/mUzLIU8UOZBYddD4uRNLvOYUtUnHMzRn6teQflK9CNROt4EsuZ6BWS4LJIc4rxXwMnl/sdIXA3y3fWJXts5ju506/B0E+om1OZmF2HECVdyV5AAAAFQCFfk4wYSRwajtOsdVnnwbsBfmySQAAAIBfIIKqK2Uyscs9s5+dVM11FlhSD0jKt3PlaedePz8xXP4YpgvaqlL+vWkqAJe/wNrbRGHE8IoFRb6g4oSoSjqTo671fM6jPge5ceia5MqaTwSUi2/jULK8j2nPuj01lpMgZRSo5+1f3KekhMUKQNoA/BRrqdn5KLC2RaLTy3h0WQAAAIEAo0kyGMbkEBcPQibgfOJTuJFZ8l2590C0uSAu+EUOD0FafiurpgVyjUVCkviO0o9CMLqyuz1fLy6WhSl93GquVzNLGFZgJdqtFQjXPcdrLG+CA8D8WwLNqlHeq2FoBU6Ziqc/PS9UnwwLevNvz6RQLDO1e3A7KGF79TQH/PzNom4=",
72
+ "sshfp_dsa": "SSHFP 2 1 6b3b4f61ce5589131af398bd375d3c3648b0acca\nSSHFP 2 2 756f3d89fd3eba29d9d2e6945985f643fd150195f9ecc485e4bb4f21ea2643f7",
73
+ "sshrsakey": "AAAAB3NzaC1yc2EAAAABIwAAAQEA5Ci2vpmnOFndAZpEJTIdE3KtK7QVU7Gxi2Gi3r/ilo0q52mFxn+A6CNdZqDapWTlbWhnAE78edjy5sLuQ8tF6zvPjadkXBG3UZH1ZmN50MjISS3WbOfgv2X0SiF7u8xykTrGsYOdPlEM2gk1XbwfnsDby084Zn1d9X6WE5l436MtLxpq/dbL2CMHpJfLlcQL5gGFrqoNxQI7F8oTFn3SyoBggsQxn5bfCas/vQzx4wSHB5TbEdZIRwZFrGKqcMfHuh3Vh9QUtuDO+ceEcBZ7ION4Eu4Yylpy3X9bOo44ufkJX4Xa/BqX7uv8ywvcy4yXJDHY7RUVnjsV3R1KS+bRuw==",
74
+ "sshfp_rsa": "SSHFP 1 1 da5db57b9a35167ded726929889a678802e29c14\nSSHFP 1 2 e66cf0d1c6c52f9bf2841cc33ae439b886d61985604d2de0ad25bc1288c99bf5",
75
+ "timezone": "EDT",
76
+ "uniqueid": "007f0100",
77
+ "uptime": "0:00 hours",
78
+ "uptime_days": 0,
79
+ "uptime_hours": 0,
80
+ "uptime_seconds": 56,
81
+ "virtual": "kvm",
82
+ "is_virtual": "true",
83
+ "openldap_arch": "i386",
84
+ "puppet_ruby_dir": "/home/vagrant/vendor/bundler/ruby/2.1.0/gems/puppet-3.8.7/lib/puppet",
85
+ "acpid_enabled": true,
86
+ "defaultgateway": "10.0.2.2",
87
+ "defaultgatewayiface": "eth0",
88
+ "fips_enabled": false,
89
+ "fullrun": "false",
90
+ "grub_version": "0.97",
91
+ "has_clustering": false,
92
+ "init_systems": [
93
+ "rc",
94
+ "upstart",
95
+ "sysv"
96
+ ],
97
+ "runlevel": "3",
98
+ "shmall": "4294967296",
99
+ "tmp_mount_dev_shm": "rw,relatime",
100
+ "tmp_mount_path_dev_shm": "tmpfs",
101
+ "tmp_mount_fstype_dev_shm": "tmpfs",
102
+ "uid_min": "500",
103
+ "is_pe": false,
104
+ "root_home": "/root",
105
+ "has_tpm": false,
106
+ "gdm_version": "0.0.0"
107
+ }
@@ -0,0 +1,102 @@
1
+ {
2
+ "gem_version": "~> 1.7.0",
3
+ "lib": "/vagrant/modules/apache/lib/facter:/vagrant/modules/foreman/lib/facter:/vagrant/modules/freeradius/lib/facter:/vagrant/modules/openldap/lib/facter:/vagrant/modules/pupmod/lib/facter:/vagrant/modules/simplib/lib/facter:/vagrant/modules/stdlib/lib/facter:/vagrant/modules/tpm/lib/facter:/vagrant/modules/xwindows/lib/facter:",
4
+ "architecture": "x86_64",
5
+ "augeasversion": "1.4.0",
6
+ "kernel": "Linux",
7
+ "blockdevice_sda_size": 38654705664,
8
+ "blockdevice_sda_vendor": "ATA",
9
+ "blockdevice_sda_model": "VBOX HARDDISK",
10
+ "blockdevices": "sda",
11
+ "domain": "example.com",
12
+ "macaddress": "08:00:27:fb:4e:9e",
13
+ "osfamily": "RedHat",
14
+ "operatingsystem": "RedHat",
15
+ "facterversion": "1.7.6",
16
+ "filesystems": "xfs",
17
+ "fqdn": "foo.example.com",
18
+ "hardwareisa": "x86_64",
19
+ "hardwaremodel": "x86_64",
20
+ "hostname": "foo",
21
+ "id": "root",
22
+ "interfaces": "enp0s3,lo",
23
+ "ipaddress_enp0s3": "10.0.2.15",
24
+ "macaddress_enp0s3": "08:00:27:fb:4e:9e",
25
+ "netmask_enp0s3": "255.255.255.0",
26
+ "ipaddress_lo": "127.0.0.1",
27
+ "netmask_lo": "255.0.0.0",
28
+ "ipaddress": "10.0.2.15",
29
+ "kernelmajversion": "3.10",
30
+ "kernelrelease": "3.10.0-327.el7.x86_64",
31
+ "kernelversion": "3.10.0",
32
+ "boardmanufacturer": "Oracle Corporation",
33
+ "boardproductname": "VirtualBox",
34
+ "boardserialnumber": "0",
35
+ "bios_vendor": "innotek GmbH",
36
+ "bios_version": "VirtualBox",
37
+ "bios_release_date": "12/01/2006",
38
+ "manufacturer": "innotek GmbH",
39
+ "productname": "VirtualBox",
40
+ "serialnumber": "0",
41
+ "uuid": "34D3157B-EE15-4BB7-80B4-1CAB1D14262F",
42
+ "type": "Other",
43
+ "memorysize": "489.04 MB",
44
+ "memoryfree": "314.43 MB",
45
+ "swapsize": "1024.00 MB",
46
+ "swapfree": "1024.00 MB",
47
+ "swapsize_mb": "1024.00",
48
+ "swapfree_mb": "1024.00",
49
+ "memorysize_mb": "489.04",
50
+ "memoryfree_mb": "314.43",
51
+ "memorytotal": "489.04 MB",
52
+ "netmask": "255.255.255.0",
53
+ "network_enp0s3": "10.0.2.0",
54
+ "network_lo": "127.0.0.0",
55
+ "operatingsystemmajrelease": "7",
56
+ "operatingsystemrelease": "7.2",
57
+ "path": "/home/vagrant/vendor/bundler/ruby/2.1.0/bin:/opt/puppetlabs/puppet/bin:/opt/puppetlabs/bin:/usr/local/sbin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin",
58
+ "physicalprocessorcount": 1,
59
+ "processor0": "Intel(R) Core(TM) i7-5557U CPU @ 3.10GHz",
60
+ "processorcount": "1",
61
+ "ps": "ps -ef",
62
+ "puppetversion": "3.8.7",
63
+ "rubysitedir": "/opt/puppetlabs/puppet/lib/ruby/site_ruby/2.1.0",
64
+ "rubyversion": "2.1.7",
65
+ "selinux": "false",
66
+ "sshrsakey": "AAAAB3NzaC1yc2EAAAADAQABAAABAQCske477GChfDYp42V41KDzWPm4tFaizuv6pgDX5ta+Mmx+aIzH8sHqEJI8CHbueD4RPcewrVhuCKjVp/8L9Ei+Fvix45Hu5SFcGMsNnYU0xIZ7DIPMmrYxfaN7LOv7mpNQuRgteOSiEsVtBbBnITnnOsmSFS325cg1exEhO714w6Zrq2Ba2iE1iIsbI+B5i5MCmRtxx8lXf7mm26dzwLgzEehyVSunDrsNSLOSKe2ak/fPwuANozePIFaBPAnzbqdC0vlZhPIXS4Es5FGkBWjURGC3sgkMRhIwVl1JKCID1ShBIwF5iS3TrLFBN1KswpULNeWS+BKwZ3a7XNedtxvB",
67
+ "sshfp_rsa": "SSHFP 1 1 d9ef3f8744fb5c16b18285bf1bc3d8dc466a9061\nSSHFP 1 2 9489100f59197122bb05f1cc36e786de0dae1f2bef8148ad1eca98e5c068147f",
68
+ "sshecdsakey": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBFfbV5ASN7bH9k8g3xRPTnWgtJZ34JEJuA5cLPVXOFtx9RVa1JRDMkhReLCNoYebvFNqZR/jyILoGd8zonv0HpE=",
69
+ "sshfp_ecdsa": "SSHFP 3 1 d44325c8395220c069b904fb775545ea172028a9\nSSHFP 3 2 a60f5d46c5f1aae180628f668b5c2f253d5134911dac877de0746563659e964a",
70
+ "timezone": "EDT",
71
+ "uniqueid": "007f0100",
72
+ "uptime": "0:00 hours",
73
+ "uptime_days": 0,
74
+ "uptime_hours": 0,
75
+ "uptime_seconds": 54,
76
+ "virtual": "kvm",
77
+ "is_virtual": "true",
78
+ "openldap_arch": "i386",
79
+ "puppet_ruby_dir": "/home/vagrant/vendor/bundler/ruby/2.1.0/gems/puppet-3.8.7/lib/puppet",
80
+ "acpid_enabled": false,
81
+ "defaultgateway": "10.0.2.2",
82
+ "defaultgatewayiface": "enp0s3",
83
+ "fips_enabled": false,
84
+ "fullrun": "false",
85
+ "grub_version": "2.02~beta2",
86
+ "has_clustering": false,
87
+ "init_systems": [
88
+ "rc",
89
+ "systemd",
90
+ "sysv"
91
+ ],
92
+ "runlevel": "3",
93
+ "shmall": "18446744073692774399",
94
+ "tmp_mount_dev_shm": "rw,nosuid,nodev",
95
+ "tmp_mount_path_dev_shm": "tmpfs",
96
+ "tmp_mount_fstype_dev_shm": "tmpfs",
97
+ "uid_min": "1000",
98
+ "is_pe": false,
99
+ "root_home": "/root",
100
+ "has_tpm": false,
101
+ "gdm_version": "0.0.0"
102
+ }