simp-rspec-puppet-facts 3.3.0 → 3.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (35) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +24 -0
  3. data/facts/4.2/almalinux-8-x86_64.facts +1366 -0
  4. data/facts/4.2/almalinux-9-x86_64.facts +1335 -0
  5. data/facts/4.2/amazon-2-x86_64.facts +1218 -0
  6. data/facts/4.2/centos-7-x86_64.facts +1267 -0
  7. data/facts/4.2/centos-8-x86_64.facts +1316 -0
  8. data/facts/4.2/centos-9-x86_64.facts +1308 -0
  9. data/facts/4.2/oraclelinux-7-x86_64.facts +1251 -0
  10. data/facts/4.2/oraclelinux-8-x86_64.facts +1307 -0
  11. data/facts/4.2/redhat-7-x86_64.facts +1220 -0
  12. data/facts/4.2/redhat-8-x86_64.facts +1300 -0
  13. data/facts/4.2/redhat-9-x86_64.facts +1312 -0
  14. data/facts/4.2/rocky-8-x86_64.facts +1507 -0
  15. data/facts/4.2/windows-2012_r2-x64.facts +473 -0
  16. data/facts/4.2/windows-2016-x64.facts +517 -0
  17. data/facts/4.2/windows-2019-x64.facts +517 -0
  18. data/facts/4.2/windows-2022-x64.facts +519 -0
  19. data/lib/simp/rspec-puppet-facts.rb +45 -21
  20. data/lib/simp/version.rb +1 -1
  21. data/spec/acceptance/nodesets/almalinux8.yml +23 -0
  22. data/spec/acceptance/nodesets/almalinux9.yml +23 -0
  23. data/spec/acceptance/nodesets/amzn2.yml +23 -0
  24. data/spec/acceptance/nodesets/centos8.yml +1 -1
  25. data/spec/acceptance/nodesets/centos9.yml +23 -0
  26. data/spec/acceptance/nodesets/rhel8.yml +2 -1
  27. data/spec/acceptance/nodesets/rhel9.yml +23 -0
  28. data/spec/acceptance/nodesets/rocky8.yml +1 -1
  29. data/spec/acceptance/nodesets/win_2012r2.yml +12 -2
  30. data/spec/acceptance/nodesets/win_2016.yml +12 -2
  31. data/spec/acceptance/nodesets/win_2019.yml +12 -1
  32. data/spec/acceptance/nodesets/win_2022.yml +38 -0
  33. data/spec/acceptance/suites/default/00_default_spec.rb +7 -3
  34. data/spec/spec_helper_acceptance.rb +32 -1
  35. metadata +94 -50
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6e8d9fad1aa3966ba0b10ec96114c3ab144b89ff10dc57c5f8f1f199cc8ff662
4
- data.tar.gz: 9a60cfc0600977155cf59a4b654e4fbfb8329ac9091fcaf9b88c5f14a41e4428
3
+ metadata.gz: d148a7bb12e2b1a2ecad254f1e27d78d95b6a65764dee67086180319d5b5dd5c
4
+ data.tar.gz: 49f56b264fab6c7b831b517307a98a9f6ea88456e6ee7effc33b683aa5959281
5
5
  SHA512:
6
- metadata.gz: ecc5c61ee334f6fd1c6640431be7a000a7c51fce7df43d6b4c1ce1eaa4b296e3b10d68f0abf73c33e67ca18482aea253967b3336652dab42336d01fb1e4d1b28
7
- data.tar.gz: a34d41d23d7a2decf270325546befc08c01c6ca8b37d5591816a859542d032d937681f3d9cd542465c0b4ac052bebf34b207729b71eccb13cd036e62b3db4c73
6
+ metadata.gz: 744d18a1575e905f8f98bacfdf7672f5fe40d09fab7a1667ebbbc2ab4477d93e3c826eab1d1be7ad30cf5e7988e5e059c9598914b68fd5eff1036c6df28cb3bd
7
+ data.tar.gz: fab38ac6b14907df813afc45aa1d3788957211e404629bd8db2c0610c260bbf74031c12e9b9a0a948b5dda20c8efd388644487a8a2813608b2366397d087d604
data/README.md CHANGED
@@ -109,6 +109,17 @@ 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
125
  Restricts test matrix to OS strings/partial strings/regexps provided in a
@@ -126,6 +137,19 @@ Mock the output of historical lsb facts
126
137
 
127
138
  ## How to capture new facts
128
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
+
129
152
  - Place any modules containing facts you want to capture under `modules/`
130
153
  - Run `vagrant up`
131
154
  **NOTE:** This replaces any older fact data
155
+