Skip to content

Commit f122f42

Browse files
committed
add cjis to compliance demo
1 parent 10f0bb4 commit f122f42

4 files changed

+32
-0
lines changed

linux/cjis-prerequisites.yml

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
# The CJIS role seems to assume these packages are installed and the
3+
# services are started, otherwise an error is encountered.
4+
5+
- name: Install packages
6+
ansible.builtin.package:
7+
name:
8+
- "NetworkManager"
9+
- "firewalld"
10+
state: present
11+
12+
- name: Start services
13+
ansible.builtin.service:
14+
name: "NetworkManager"
15+
enabled: true
16+
state: started
17+
18+
- name: Start services
19+
ansible.builtin.service:
20+
name: "firewalld"
21+
enabled: true
22+
state: started

linux/compliance-enforce.yml

+5
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@
1010
ansible.builtin.assert:
1111
that: "ansible_os_family == 'RedHat'"
1212

13+
- name: Include prerequisites for cjis profile
14+
ansible.builtin.include_tasks:
15+
file: cjis-prerequisites.yml
16+
when: compliance_profile == 'cjis'
17+
1318
- name: Run Compliance Profile
1419
ansible.builtin.include_role:
1520
name: "redhatofficial.rhel{{ ansible_distribution_major_version }}_{{ compliance_profile }}"

linux/compliance_profiles.md

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ The following compliance profiles are supported by the [**Linux / Enforce Compli
55
| **Profile** | **Role Repository** |
66
|-------------|---------------------|
77
| CIS | https://galaxy.ansible.com/RedHatOfficial/ansible-role-rhel8-cis |
8+
| CJIS | https://galaxy.ansible.com/RedHatOfficial/ansible-role-rhel8-cjis |
89
| CUI | https://galaxy.ansible.com/RedHatOfficial/ansible-role-rhel8-cui |
910
| HIPAA | https://galaxy.ansible.com/RedHatOfficial/ansible-role-rhel8-hipaa |
1011
| OSPP | https://galaxy.ansible.com/RedHatOfficial/ansible-role-rhel8-ospp |

roles/requirements.yml

+4
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ roles:
33
# RHEL 7 compliance roles from ComplianceAsCode
44
- name: redhatofficial.rhel7_cis
55
version: 0.1.69
6+
- name: redhatofficial.rhel7_cjis
7+
version: 0.1.69
68
- name: redhatofficial.rhel7_cui
79
version: 0.1.67
810
- name: redhatofficial.rhel7_hipaa
@@ -16,6 +18,8 @@ roles:
1618
# RHEL 8 compliance roles from ComplianceAsCode
1719
- name: redhatofficial.rhel8_cis
1820
version: 0.1.69
21+
- name: redhatofficial.rhel8_cjis
22+
version: 0.1.69
1923
- name: redhatofficial.rhel8_cui
2024
version: 0.1.69
2125
- name: redhatofficial.rhel8_hipaa

0 commit comments

Comments
 (0)