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.
- checksums.yaml +4 -4
- data/README.md +24 -0
- data/facts/4.2/almalinux-8-x86_64.facts +1366 -0
- data/facts/4.2/almalinux-9-x86_64.facts +1335 -0
- data/facts/4.2/amazon-2-x86_64.facts +1218 -0
- data/facts/4.2/centos-7-x86_64.facts +1267 -0
- data/facts/4.2/centos-8-x86_64.facts +1316 -0
- data/facts/4.2/centos-9-x86_64.facts +1308 -0
- data/facts/4.2/oraclelinux-7-x86_64.facts +1251 -0
- data/facts/4.2/oraclelinux-8-x86_64.facts +1307 -0
- data/facts/4.2/redhat-7-x86_64.facts +1220 -0
- data/facts/4.2/redhat-8-x86_64.facts +1300 -0
- data/facts/4.2/redhat-9-x86_64.facts +1312 -0
- data/facts/4.2/rocky-8-x86_64.facts +1507 -0
- data/facts/4.2/windows-2012_r2-x64.facts +473 -0
- data/facts/4.2/windows-2016-x64.facts +517 -0
- data/facts/4.2/windows-2019-x64.facts +517 -0
- data/facts/4.2/windows-2022-x64.facts +519 -0
- data/lib/simp/rspec-puppet-facts.rb +45 -21
- data/lib/simp/version.rb +1 -1
- data/spec/acceptance/nodesets/almalinux8.yml +23 -0
- data/spec/acceptance/nodesets/almalinux9.yml +23 -0
- data/spec/acceptance/nodesets/amzn2.yml +23 -0
- data/spec/acceptance/nodesets/centos8.yml +1 -1
- data/spec/acceptance/nodesets/centos9.yml +23 -0
- data/spec/acceptance/nodesets/rhel8.yml +2 -1
- data/spec/acceptance/nodesets/rhel9.yml +23 -0
- data/spec/acceptance/nodesets/rocky8.yml +1 -1
- data/spec/acceptance/nodesets/win_2012r2.yml +12 -2
- data/spec/acceptance/nodesets/win_2016.yml +12 -2
- data/spec/acceptance/nodesets/win_2019.yml +12 -1
- data/spec/acceptance/nodesets/win_2022.yml +38 -0
- data/spec/acceptance/suites/default/00_default_spec.rb +7 -3
- data/spec/spec_helper_acceptance.rb +32 -1
- metadata +94 -50
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d148a7bb12e2b1a2ecad254f1e27d78d95b6a65764dee67086180319d5b5dd5c
|
4
|
+
data.tar.gz: 49f56b264fab6c7b831b517307a98a9f6ea88456e6ee7effc33b683aa5959281
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
+
|