Skip to content

Commit

Permalink
add cjis to compliance demo
Browse files Browse the repository at this point in the history
  • Loading branch information
l3acon committed Feb 20, 2024
1 parent 10f0bb4 commit f122f42
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 0 deletions.
22 changes: 22 additions & 0 deletions linux/cjis-prerequisites.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
# The CJIS role seems to assume these packages are installed and the
# services are started, otherwise an error is encountered.

- name: Install packages
ansible.builtin.package:
name:
- "NetworkManager"
- "firewalld"
state: present

- name: Start services
ansible.builtin.service:
name: "NetworkManager"
enabled: true
state: started

- name: Start services
ansible.builtin.service:
name: "firewalld"
enabled: true
state: started
5 changes: 5 additions & 0 deletions linux/compliance-enforce.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@
ansible.builtin.assert:
that: "ansible_os_family == 'RedHat'"

- name: Include prerequisites for cjis profile
ansible.builtin.include_tasks:
file: cjis-prerequisites.yml
when: compliance_profile == 'cjis'

- name: Run Compliance Profile
ansible.builtin.include_role:
name: "redhatofficial.rhel{{ ansible_distribution_major_version }}_{{ compliance_profile }}"
Expand Down
1 change: 1 addition & 0 deletions linux/compliance_profiles.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ The following compliance profiles are supported by the [**Linux / Enforce Compli
| **Profile** | **Role Repository** |
|-------------|---------------------|
| CIS | https://galaxy.ansible.com/RedHatOfficial/ansible-role-rhel8-cis |
| CJIS | https://galaxy.ansible.com/RedHatOfficial/ansible-role-rhel8-cjis |
| CUI | https://galaxy.ansible.com/RedHatOfficial/ansible-role-rhel8-cui |
| HIPAA | https://galaxy.ansible.com/RedHatOfficial/ansible-role-rhel8-hipaa |
| OSPP | https://galaxy.ansible.com/RedHatOfficial/ansible-role-rhel8-ospp |
Expand Down
4 changes: 4 additions & 0 deletions roles/requirements.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ roles:
# RHEL 7 compliance roles from ComplianceAsCode
- name: redhatofficial.rhel7_cis
version: 0.1.69
- name: redhatofficial.rhel7_cjis
version: 0.1.69
- name: redhatofficial.rhel7_cui
version: 0.1.67
- name: redhatofficial.rhel7_hipaa
Expand All @@ -16,6 +18,8 @@ roles:
# RHEL 8 compliance roles from ComplianceAsCode
- name: redhatofficial.rhel8_cis
version: 0.1.69
- name: redhatofficial.rhel8_cjis
version: 0.1.69
- name: redhatofficial.rhel8_cui
version: 0.1.69
- name: redhatofficial.rhel8_hipaa
Expand Down

0 comments on commit f122f42

Please sign in to comment.