Skip to content

Commit 2e8fc0b

Browse files
committed
Fix use of legacy facts
Also ensure we're testing against latest upstream modules. Fixes #116
1 parent 27bf87c commit 2e8fc0b

File tree

6 files changed

+21
-20
lines changed

6 files changed

+21
-20
lines changed

.fixtures.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,7 @@ fixtures:
1414
rsyslog: https://github.com/simp/pupmod-simp-rsyslog.git
1515
simplib: https://github.com/simp/pupmod-simp-simplib.git
1616
stdlib: https://github.com/simp/puppetlabs-stdlib.git
17-
systemd:
18-
repo: https://github.com/simp/puppet-systemd.git
19-
branch: simp-master
17+
systemd: https://github.com/simp/puppet-systemd.git
2018
disa_stig-el7-baseline:
2119
repo: https://github.com/simp/inspec-profile-disa_stig-el7.git
2220
branch: master

CHANGELOG

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
* Mon Nov 25 2024 Steven Pritchard <steve@sicura-us> - 6.12.1
2+
- Fix use of legacy facts
3+
14
* Fri Sep 13 2024 Steven Pritchard <steve@sicura.us> - 6.12.0
25
- [puppetsync] Update module dependencies to support simp-iptables 7.x
36

SIMP/compliance_profiles/checks.yaml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ checks:
9292
- SI-7:3
9393
- SI-7:8
9494
confine:
95-
osfamily: RedHat
95+
os.family: RedHat
9696
oval:com.puppet.forge.simp.aide.aliases.el7:
9797
settings:
9898
parameter: aide::aliases
@@ -120,8 +120,8 @@ checks:
120120
- SRG-OS-000480-GPOS-00227
121121
- CCI-000366
122122
confine:
123-
osfamily: RedHat
124-
operatingsystemmajrelease: '7'
123+
os.family: RedHat
124+
os.release.major: '7'
125125
oval:com.puppet.forge.simp.aide.aliases.el8:
126126
settings:
127127
parameter: aide::aliases
@@ -146,8 +146,8 @@ checks:
146146
- SRG-OS-000480-GPOS-00227
147147
- CCI-000366
148148
confine:
149-
osfamily: RedHat
150-
operatingsystemmajrelease: '8'
149+
os.family: RedHat
150+
os.release.major: '8'
151151
oval:com.puppet.forge.simp.aide.enable:
152152
settings:
153153
parameter: aide::enable
@@ -162,7 +162,7 @@ checks:
162162
- CCI-001744
163163
- SRG-OS-000363-GPOS-00150
164164
confine:
165-
osfamily: RedHat
165+
os.family: RedHat
166166
oval:com.puppet.forge.simp.aide.cron_command:
167167
settings:
168168
parameter: aide::cron_command
@@ -177,7 +177,7 @@ checks:
177177
- CCI-001744
178178
- SRG-OS-000363-GPOS-00150
179179
confine:
180-
osfamily: RedHat
180+
os.family: RedHat
181181
oval:com.puppet.forge.simp.aide.cron_method:
182182
settings:
183183
parameter: aide::cron_method
@@ -192,7 +192,7 @@ checks:
192192
- CCI-001744
193193
- SRG-OS-000363-GPOS-00150
194194
confine:
195-
osfamily: RedHat
195+
os.family: RedHat
196196
oval:com.puppet.forge.simp.aide.hour:
197197
settings:
198198
parameter: aide::hour
@@ -207,8 +207,8 @@ checks:
207207
- CCI-001744
208208
- SRG-OS-000363-GPOS-00150
209209
confine:
210-
osfamily: RedHat
211-
operatingsystemmajrelease: '7'
210+
os.family: RedHat
211+
os.release.major: '7'
212212
oval-ids:
213213
- xccdf_org:ssgproject:content_rule_aide_periodic_cron_checking
214214
- aide_periodic_cron_checking
@@ -226,8 +226,8 @@ checks:
226226
- CCI-001744
227227
- SRG-OS-000363-GPOS-00150
228228
confine:
229-
osfamily: RedHat
230-
operatingsystemmajrelease: '7'
229+
os.family: RedHat
230+
os.release.major: '7'
231231
oval-ids:
232232
- xccdf_org:ssgproject:content_rule_aide_periodic_cron_checking
233233
- aide_periodic_cron_checking
@@ -245,8 +245,8 @@ checks:
245245
- CCI-001744
246246
- SRG-OS-000363-GPOS-00150
247247
confine:
248-
osfamily: RedHat
249-
operatingsystemmajrelease: '7'
248+
os.family: RedHat
249+
os.release.major: '7'
250250
oval-ids:
251251
- xccdf_org:ssgproject:content_rule_aide_periodic_cron_checking
252252
- aide_periodic_cron_checking

metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "simp-aide",
3-
"version": "6.12.0",
3+
"version": "6.12.1",
44
"author": "SIMP Team",
55
"summary": "manages AIDE",
66
"license": "Apache-2.0",

spec/acceptance/suites/compliance/01_simp_profile_inspec_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
profile_path = File.join(
1515
fixtures_path,
1616
'inspec_profiles',
17-
"#{fact_on(host, 'operatingsystem')}-#{fact_on(host, 'operatingsystemmajrelease')}-#{profile}"
17+
"#{fact_on(host, 'os.name')}-#{fact_on(host, 'os.release.major')}-#{profile}"
1818
)
1919

2020
unless File.exist?(profile_path)

spec/acceptance/suites/compliance/10_stig_profile_oscap_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
hosts.each do |host|
88
context "on #{host}" do
99
before(:all) do
10-
@os_str = fact_on(host, 'operatingsystem') + ' ' + fact_on(host, 'operatingsystemrelease')
10+
@os_str = fact_on(host, 'os.name') + ' ' + fact_on(host, 'os.release.full')
1111

1212
@ssg_supported = true
1313

0 commit comments

Comments
 (0)