Skip to content

Instantly share code, notes, and snippets.

@lloesche
Created May 28, 2015 01:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lloesche/34cd1187797fad32c6a4 to your computer and use it in GitHub Desktop.
Save lloesche/34cd1187797fad32c6a4 to your computer and use it in GitHub Desktop.
{% if grains['os_family'] == 'RedHat' and grains['osmajorrelease'][0] == '7' %}
include:
- .docker
/etc/sysconfig/selinux:
file.replace:
- pattern: SELINUX=enforcing
- repl: SELINUX=permissive
policycoreutils:
pkg.installed:
- pkgs:
- policycoreutils
- policycoreutils-python
libselinux-utils:
pkg.installed
#permissive:
# selinux.mode:
# - require:
# - pkg: policycoreutils
# - watch_in:
# - service: docker
setenforce 0:
cmd.run:
- onlyif: getenforce | grep Enforcing
- watch_in:
- service: docker
- require:
- pkg: libselinux-utils
{% endif %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment