blob: 7aefdd1d33d5beb231d733a1b8bc8be4c4f5394c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
{% if grains['os'] == 'CentOS' %}
update_firewall:
file.managed:
- name: /etc/sysconfig/iptables
- source: salt://iptables
reload_iptables:
cmd.wait:
- cwd: /
- name: service iptables reload
- watch:
- file: /etc/sysconfig/iptables
{% endif %}
|