This is a self-answered question.
Please provide edits, additional points of view and input if needed.
What is the best practice for conditionally enforcing states (depending on other command outputs)?
Here's my case:
# vim: set syntax=yaml:
# Ensures that outbound connections are allowed for httpd
httpd:selinux:
cmd.run:
- name: /usr/sbin/setsebool -P httpd_can_network_connect 1
Now, I only want to run this if SELinux is enabled (enforced).
Aucun commentaire:
Enregistrer un commentaire