I have code that installs a custom seLinux module. In my fleet of minions there's Fedora based systems (with seLinux installed) and Debian based ones (without seLinux). On the latter the module/installing state should not be used and I am thus looking for a way of retrieving a neat answer to the question "is seLinux installed on this system?" (NOT "is seLinux enforcing on this system?") to use in a corresponding jinja2 if clause.
Attempts that have me despairing are:
* there appears to be no state in salt querying whether a given binary is on the $PATH - checking for sestatus is what I was after here.
* salt.states.selinux is not available on systems devoid of seLinux, so it's functionality does not help.
* I could not find any salt functionality to query for the local availability of something like salt.states.selinux (see above) either.
Any hint on how to go about this is appreciated.
No comments:
Post a Comment
Thanks