Skip to content

Commit

Permalink
fix(googleauth): handle disabled selinux
Browse files Browse the repository at this point in the history
  • Loading branch information
unilogicbv committed Jun 14, 2022
1 parent 3fe8750 commit 63dd7c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions users/googleauth.sls
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ users_{{ users.googleauth_dir }}:
- group: {{ users.root_group }}
- mode: '0700'
{%- if grains['os_family'] == 'RedHat' %}
{%- if grains['os_family'] == 'RedHat' and "selinux" in grains and grains.selinux.enabled %}
policycoreutils-package:
pkg.installed:
- pkgs:
Expand Down Expand Up @@ -67,7 +67,7 @@ users_googleauth-pam-{{ svc }}-{{ name }}:
{%- endif %}
{%- endfor %}
{%- if grains['os_family'] == 'RedHat' %}
{%- if grains['os_family'] == 'RedHat' and "selinux" in grains and grains.selinux.enabled %}
users_googleauth_selinux_applied:
selinux.fcontext_policy_applied:
- name: {{ users.googleauth_dir }}
Expand Down

0 comments on commit 63dd7c8

Please sign in to comment.