simp-rspec-puppet-facts 3.1.1 → 3.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (51) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +31 -3
  3. data/Rakefile +1 -0
  4. data/facts/2.5/amazon-2-x86_64.facts +1171 -0
  5. data/facts/2.5/centos-6-x86_64.facts +673 -457
  6. data/facts/2.5/centos-7-x86_64.facts +1004 -425
  7. data/facts/2.5/centos-8-x86_64.facts +532 -274
  8. data/facts/2.5/oraclelinux-6-x86_64.facts +139 -258
  9. data/facts/2.5/oraclelinux-7-x86_64.facts +315 -186
  10. data/facts/2.5/oraclelinux-8-x86_64.facts +525 -282
  11. data/facts/2.5/redhat-6-x86_64.facts +675 -536
  12. data/facts/2.5/redhat-7-x86_64.facts +353 -225
  13. data/facts/2.5/redhat-8-x86_64.facts +520 -278
  14. data/facts/2.5/rocky-8-x86_64.facts +1323 -0
  15. data/facts/3.6/amazon-2-x86_64.facts +1171 -0
  16. data/facts/4.2/almalinux-8-x86_64.facts +1366 -0
  17. data/facts/4.2/almalinux-9-x86_64.facts +1335 -0
  18. data/facts/4.2/amazon-2-x86_64.facts +1218 -0
  19. data/facts/4.2/centos-7-x86_64.facts +1267 -0
  20. data/facts/4.2/centos-8-x86_64.facts +1316 -0
  21. data/facts/4.2/centos-9-x86_64.facts +1308 -0
  22. data/facts/4.2/oraclelinux-7-x86_64.facts +1251 -0
  23. data/facts/4.2/oraclelinux-8-x86_64.facts +1307 -0
  24. data/facts/4.2/redhat-7-x86_64.facts +1220 -0
  25. data/facts/4.2/redhat-8-x86_64.facts +1300 -0
  26. data/facts/4.2/redhat-9-x86_64.facts +1312 -0
  27. data/facts/4.2/rocky-8-x86_64.facts +1507 -0
  28. data/facts/4.2/windows-2012_r2-x64.facts +473 -0
  29. data/facts/4.2/windows-2016-x64.facts +517 -0
  30. data/facts/4.2/windows-2019-x64.facts +517 -0
  31. data/facts/4.2/windows-2022-x64.facts +519 -0
  32. data/lib/simp/rspec-puppet-facts.rb +48 -24
  33. data/lib/simp/version.rb +1 -1
  34. data/spec/acceptance/nodesets/almalinux8.yml +23 -0
  35. data/spec/acceptance/nodesets/almalinux9.yml +23 -0
  36. data/spec/acceptance/nodesets/amzn2.yml +23 -0
  37. data/spec/acceptance/nodesets/centos7.yml +1 -1
  38. data/spec/acceptance/nodesets/centos8.yml +2 -2
  39. data/spec/acceptance/nodesets/centos9.yml +23 -0
  40. data/spec/acceptance/nodesets/rhel8.yml +2 -1
  41. data/spec/acceptance/nodesets/{oel6.yml → rhel9.yml} +4 -3
  42. data/spec/acceptance/nodesets/rocky8.yml +25 -0
  43. data/spec/acceptance/nodesets/win_2012r2.yml +12 -2
  44. data/spec/acceptance/nodesets/win_2016.yml +12 -2
  45. data/spec/acceptance/nodesets/win_2019.yml +12 -1
  46. data/spec/acceptance/nodesets/win_2022.yml +38 -0
  47. data/spec/acceptance/suites/default/00_default_spec.rb +7 -3
  48. data/spec/fixtures/metadata.json +17 -13
  49. data/spec/simp_rspec_puppet_facts_spec.rb +12 -10
  50. data/spec/spec_helper_acceptance.rb +32 -1
  51. metadata +101 -51
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 92fd58d99f0c54c343c6fac9f4d1035bfdd66593a04734917887dd7d694920a4
4
- data.tar.gz: e11d62f3b7bda27713e6a67319cd62743b74d265ed21bf7cc5ca50f966dd28ef
3
+ metadata.gz: d148a7bb12e2b1a2ecad254f1e27d78d95b6a65764dee67086180319d5b5dd5c
4
+ data.tar.gz: 49f56b264fab6c7b831b517307a98a9f6ea88456e6ee7effc33b683aa5959281
5
5
  SHA512:
6
- metadata.gz: e3e62e73e7b19d9e0716b1176aa20d38ed886317aadce360bc37b5a63c0adffd6f79df058afc5f8eddb31069db7da6c59d9445c4878ea4749eef14c3e6b76653
7
- data.tar.gz: 8a72c92f51145c22e6273c4d208e026176ab34415eec928f45de5a496eda139e8c1e2f79629b1e42d97b9a13be4bf4efe68b42941c8d6839e28a4a1d4dbbd6a3
6
+ metadata.gz: 744d18a1575e905f8f98bacfdf7672f5fe40d09fab7a1667ebbbc2ab4477d93e3c826eab1d1be7ad30cf5e7988e5e059c9598914b68fd5eff1036c6df28cb3bd
7
+ data.tar.gz: fab38ac6b14907df813afc45aa1d3788957211e404629bd8db2c0610c260bbf74031c12e9b9a0a948b5dda20c8efd388644487a8a2813608b2366397d087d604
data/README.md CHANGED
@@ -109,19 +109,47 @@ facts_hash.values_at(:selinux,:selinux_current_mode,:selinux_state,:tmp_mount_de
109
109
 
110
110
  ## Environment Variables
111
111
 
112
+ ### `FACTER_GEM_VERSION`
113
+
114
+ Set to install a specific version of `facter`. Only works on systems where
115
+ `puppet` can be installed natively via `gem`.
116
+
117
+ ### `BEAKER_facter_ng`
118
+
119
+ Set to `yes` to switch over to using `facter-ng` (Facter 4) for collection.
120
+
121
+ Requires using `beaker` to collect facts.
122
+
112
123
  ### `SIMP_FACTS_OS`
113
124
 
114
- Restricts test matrix to the OS strings provided in a comma-delimited list.
115
- - **Example:** `SIMP_FACTS_OS=redhat-6-x86_64,redhat-7-x86_64`
125
+ Restricts test matrix to OS strings/partial strings/regexps provided in a
126
+ comma-delimited list.
127
+
128
+ - **Example:** `SIMP_FACTS_OS=redhat-7-x86_64,centos`
116
129
 
117
130
 
118
131
  ### `SIMP_FACTS_lsb`
119
132
 
120
- - `no`
133
+ Mock the output of historical lsb facts
134
+
135
+ - Disable by setting to `no`
121
136
 
122
137
 
123
138
  ## How to capture new facts
124
139
 
140
+ ### Beaker (preferred)
141
+
142
+ - Add nodesets to `spec/acceptance/nodesets`
143
+ - Run `bundle exec rake beaker:suites[default,ALL]`
144
+ - Replace `ALL` with the name of a specific nodeset if you only want to
145
+ collect on a single OS.
146
+ - Review the facts in the `collected_facts` directory.
147
+ - Update the facts in the associated `facts` directory.
148
+ - Make sure to rename the file as `<lowercase_os>-<major_version>-<arch>`
149
+
150
+ ### Vagrant
151
+
125
152
  - Place any modules containing facts you want to capture under `modules/`
126
153
  - Run `vagrant up`
127
154
  **NOTE:** This replaces any older fact data
155
+
data/Rakefile CHANGED
@@ -1,4 +1,5 @@
1
1
  require 'simp/rake/beaker'
2
+ require 'bundler/gem_tasks'
2
3
 
3
4
  Simp::Rake::Beaker.new(__dir__)
4
5