-
-
Save bjames301/b03d43dbe60f31e39da6 to your computer and use it in GitHub Desktop.
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
{% from "firewalld/map.jinja" import firewalld with context %} | |
include: | |
- firewalld | |
conf: | |
file.managed: | |
- user: root | |
- group: root | |
- mode: 600 | |
- name: {{ firewalld.conf }} | |
- source: salt://firewalld/files/firewalld.conf | |
drop_zone: | |
file.managed: | |
- user: root | |
- group: root | |
- mode: 644 | |
- name: {{ firewalld.dropzone }} | |
- source: salt://firewalld/files/drop.xml |
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
{% from "firewalld/map.jinja" import firewalld with context %} | |
include: | |
- firewalld.defaultconfig | |
- firewalld.service | |
firewalld: | |
pkg.installed: | |
- name: {{firewalld.server}} |
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
{% set firewalld = salt['grains.filter_by']({ | |
'CentOS':{ | |
'server':'firewalld', | |
'service':'firewalld', | |
'conf':'/etc/firewalld/firewalld.conf', | |
'dropzone':'/etc/firewalld/zones/drop.xml', | |
}, | |
}, merge=salt['pillar.get']('firewalld:lookup'))%} |
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
{% from "firewalld/map.jinja" import firewalld with context %} | |
include: | |
- firewalld | |
service: | |
- running | |
- name: {{ firewalld.service }} | |
- enable: True | |
- watch: | |
#File glob used to watch for any changes in the firewalld directory. | |
- file: /etc/firewalld/* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment