Skip to content

Commit 0db0cde

Browse files
committed
ci(kitchen): handle disabled selinux
1 parent 5922f4b commit 0db0cde

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

users/googleauth.sls

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ users_{{ users.googleauth_dir }}:
1515
- group: {{ users.root_group }}
1616
- mode: '0700'
1717
18-
{%- if grains['os_family'] == 'RedHat' %}
18+
{%- if grains['os_family'] == 'RedHat' and "selinux" in grains and grains.selinux.enabled %}
1919
policycoreutils-package:
2020
pkg.installed:
2121
- pkgs:
@@ -67,7 +67,7 @@ users_googleauth-pam-{{ svc }}-{{ name }}:
6767
{%- endif %}
6868
{%- endfor %}
6969
70-
{%- if grains['os_family'] == 'RedHat' %}
70+
{%- if grains['os_family'] == 'RedHat' and "selinux" in grains and grains.selinux.enabled %}
7171
users_googleauth_selinux_applied:
7272
selinux.fcontext_policy_applied:
7373
- name: {{ users.googleauth_dir }}

0 commit comments

Comments
 (0)