Skip to content

Commit df3c90f

Browse files
Merge pull request #131 from AniruddhaNayek/disa_stig
Change the order of Compliance suite and PB & Update pod count
2 parents cd530d3 + 077efe9 commit df3c90f

File tree

2 files changed

+23
-23
lines changed

2 files changed

+23
-23
lines changed

playbooks/roles/ocp-disa-stig-compliance/tasks/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
- name: Check if pods are running
8585
shell: oc get pods -n openshift-compliance --no-headers | grep "Running" | wc -l
8686
register: compliance_pods
87-
until: compliance_pods.stdout|int == 2
87+
until: compliance_pods.stdout|int == 3
8888
retries: 15
8989
delay: 60
9090

playbooks/roles/ocp-disa-stig-compliance/tasks/rhcos4_disa_stig.yml

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,26 @@
11
---
2+
- name: Create Profile Bundle
3+
block:
4+
- name: Create Profile Bundle
5+
kubernetes.core.k8s:
6+
state: present
7+
definition:
8+
apiVersion: compliance.openshift.io/v1alpha1
9+
kind: ProfileBundle
10+
metadata:
11+
name: rhcos4-disa-stig
12+
namespace: openshift-compliance
13+
spec:
14+
contentFile: "{{ rhcos4_contentfile }}"
15+
contentImage: "{{ content_image }}"
16+
17+
- name: Check the profile bundle status
18+
shell: oc get ProfileBundle rhcos4-disa-stig | awk 'NR==2 {print $4}'
19+
register: pbstatus
20+
until: pbstatus.stdout == "VALID"
21+
retries: 10
22+
delay: 60
23+
224
- name: Create Compliance suite
325
block:
426
- name: Create suite
@@ -27,28 +49,6 @@
2749
retries: 10
2850
delay: 60
2951

30-
- name: Create Profile Bundle
31-
block:
32-
- name: Create Profile Bundle
33-
kubernetes.core.k8s:
34-
state: present
35-
definition:
36-
apiVersion: compliance.openshift.io/v1alpha1
37-
kind: ProfileBundle
38-
metadata:
39-
name: rhcos4-disa-stig
40-
namespace: openshift-compliance
41-
spec:
42-
contentFile: "{{ rhcos4_contentfile }}"
43-
contentImage: "{{ content_image }}"
44-
45-
- name: Check the profile bundle status
46-
shell: oc get ProfileBundle rhcos4-disa-stig | awk 'NR==2 {print $4}'
47-
register: pbstatus
48-
until: pbstatus.stdout == "VALID"
49-
retries: 10
50-
delay: 60
51-
5252
- name: Create SSB
5353
block:
5454
- name: Create SSB

0 commit comments

Comments
 (0)