simp-rspec-puppet-facts 3.2.0 → 3.5.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (54) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +31 -3
  3. data/facts/2.5/almalinux-8-x86_64.facts +1337 -0
  4. data/facts/2.5/almalinux-9-x86_64.facts +1309 -0
  5. data/facts/2.5/amazon-2-x86_64.facts +357 -336
  6. data/facts/2.5/centos-7-x86_64.facts +215 -148
  7. data/facts/2.5/centos-8-x86_64.facts +244 -240
  8. data/facts/2.5/centos-9-x86_64.facts +1290 -0
  9. data/facts/2.5/oraclelinux-7-x86_64.facts +231 -163
  10. data/facts/2.5/oraclelinux-8-x86_64.facts +180 -188
  11. data/facts/2.5/redhat-7.9-x86_64.facts +1202 -0
  12. data/facts/2.5/redhat-8-x86_64.facts +189 -196
  13. data/facts/2.5/redhat-9-x86_64.facts +1291 -0
  14. data/facts/2.5/rocky-8-x86_64.facts +425 -270
  15. data/facts/2.5/windows-2012_r2-x64.facts +470 -0
  16. data/facts/2.5/windows-2016-x64.facts +514 -0
  17. data/facts/2.5/windows-2019-x64.facts +514 -0
  18. data/facts/2.5/windows-2022-x64.facts +516 -0
  19. data/facts/4.2/almalinux-8-x86_64.facts +1366 -0
  20. data/facts/4.2/almalinux-9-x86_64.facts +1335 -0
  21. data/facts/4.2/amazon-2-x86_64.facts +1218 -0
  22. data/facts/4.2/centos-7-x86_64.facts +1267 -0
  23. data/facts/4.2/centos-8-x86_64.facts +1316 -0
  24. data/facts/4.2/centos-9-x86_64.facts +1308 -0
  25. data/facts/4.2/oraclelinux-7-x86_64.facts +1251 -0
  26. data/facts/4.2/oraclelinux-8-x86_64.facts +1307 -0
  27. data/facts/4.2/redhat-7-x86_64.facts +1220 -0
  28. data/facts/4.2/redhat-8-x86_64.facts +1300 -0
  29. data/facts/4.2/redhat-9-x86_64.facts +1312 -0
  30. data/facts/4.2/rocky-8-x86_64.facts +1507 -0
  31. data/facts/4.2/windows-2012_r2-x64.facts +473 -0
  32. data/facts/4.2/windows-2016-x64.facts +517 -0
  33. data/facts/4.2/windows-2019-x64.facts +517 -0
  34. data/facts/4.2/windows-2022-x64.facts +519 -0
  35. data/lib/simp/rspec-puppet-facts.rb +48 -24
  36. data/lib/simp/version.rb +1 -1
  37. data/spec/acceptance/nodesets/almalinux8.yml +23 -0
  38. data/spec/acceptance/nodesets/almalinux9.yml +23 -0
  39. data/spec/acceptance/nodesets/amzn2.yml +23 -0
  40. data/spec/acceptance/nodesets/centos8.yml +1 -1
  41. data/spec/acceptance/nodesets/centos9.yml +23 -0
  42. data/spec/acceptance/nodesets/rhel8.yml +2 -1
  43. data/spec/acceptance/nodesets/rhel9.yml +23 -0
  44. data/spec/acceptance/nodesets/rocky8.yml +1 -1
  45. data/spec/acceptance/nodesets/win_2012r2.yml +12 -2
  46. data/spec/acceptance/nodesets/win_2016.yml +12 -2
  47. data/spec/acceptance/nodesets/win_2019.yml +12 -1
  48. data/spec/acceptance/nodesets/win_2022.yml +38 -0
  49. data/spec/acceptance/suites/default/00_default_spec.rb +7 -3
  50. data/spec/acceptance/suites/default/nodesets +1 -1
  51. data/spec/fixtures/metadata.json +17 -13
  52. data/spec/simp_rspec_puppet_facts_spec.rb +12 -10
  53. data/spec/spec_helper_acceptance.rb +32 -1
  54. metadata +116 -55
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 205ae23b3c8f2ca7906df0304031dedd248b252f361e272951ea412454410215
4
- data.tar.gz: b9c8a94db91d26fc14b4abe35ab8268ca7009bda3074b01cf432c88d8b30f9aa
3
+ metadata.gz: ecdd5a86fe40bb9e0713ede3b269aef2fc414da5d8e6be1681e7bf6078ee87fd
4
+ data.tar.gz: 2724d2eeedb490b37243a6c49375cce85a6b0001b68697b47a2819a1167d4f9e
5
5
  SHA512:
6
- metadata.gz: 6c9e042dd207860d53feddbf051ab4056538f511cb3f881a1e713abccb8dabf44e3281ab70e3b288f1274f3531869c3cb429714af132503f24f063f39f85be2c
7
- data.tar.gz: b82e1db7b52e737acec2fa08d0b0544f3f78292dce66365fe3362bed2f377ad54ef1cc23bba014600764d64566a13744fd4966b21f8434afa753bd6eb20551c7
6
+ metadata.gz: a86088292e181f49d552ec256a9e538675124ca8ec3147993f57080a18e0f49747d784245b2dfa03d02e44cd03befaa9cad69cf178ea6fff72eca59072c3d876
7
+ data.tar.gz: 56815c5f8227e6090bac017695b3e186b970d2ca4449aa44e04427c351417dd777f0d600a06857a98880bf76bc2e43fc13665b9f8dceacaf8ab4e549a41ffae5
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
+