Saltstack Official Linux Formula
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- {%- from "linux/map.jinja" import system with context %}
- {%- if system.enabled %}
-
- include:
- - linux.system.package
-
- {%- if grains.os_family == 'RedHat' %}
-
- {%- if system.selinux == 'disabled' %}
-
- selinux_config:
- cmd.run:
- - names:
- - "sed -i 's/enforcing/disabled/g' /etc/selinux/config; setenforce 0"
- - "sed -i 's/permissive/disabled/g' /etc/selinux/config; setenforce 0"
- - unless: cat '/etc/selinux/config' | grep 'SELINUX=disabled'
-
- {%- else %}
-
- selinux_config:
- selinux.mode:
- - name: {{ system.get('selinux', 'permissive') }}
- - require:
- - pkg: linux_packages
-
- {%- endif %}
-
- {%- endif %}
-
- {%- endif %}
|