forked from salt-formulas/salt-formula-linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This is fix for salt-formulas#182 - Dependency problem in linux/syste…
…m/selinux.sls. - This change will remove dependecy from linux/system/repo.sls in linux/system/selinux.sls. - It also change structure from pillars selinux old: linux: system: ... selinux: permissive new: linux: system: ... selinux: pkgs: ['policycoreutils', 'policycoreutils-python'], mode: permissive
- Loading branch information
Nick Metz
authored and
Nick Metz
committed
Nov 21, 2018
1 parent
122b9dc
commit 9d259d4
Showing
2 changed files
with
24 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,19 @@ | ||
{%- from "linux/map.jinja" import system with context %} | ||
{%- if system.selinux is defined %} | ||
include: | ||
- linux.system.repo | ||
{% if system.selinux.pkgs %} | ||
linux_system_selinux_pkgs: | ||
pkg.installed: | ||
- pkgs: {{ system.selinux.pkgs }} | ||
{%- endif %} | ||
{%- if grains.os_family == 'RedHat' %} | ||
{%- set mode = system.selinux %} | ||
{%- if grains.os_family == 'RedHat' %} | ||
{{ mode }}: | ||
{{ system.selinux.mode }}: | ||
selinux.mode: | ||
- require: | ||
- pkg: linux_repo_prereq_pkgs | ||
{%- endif %} | ||
- pkg: linux_system_selinux_pkgs | ||
{%- endif %} | ||
{%- endif %} | ||