Add file.symlink for suricata services;

This commit is contained in:
Antsiferov Grigory 2017-07-13 15:22:59 +03:00
parent fb53f0f3ca
commit 7424d8331f

View File

@ -32,11 +32,16 @@ include:
- user: root - user: root
- group: root - group: root
/etc/init.d/suricata.{{ name }}:
file.symlink:
- target: /etc/init.d/suricata
suricata.{{ name }}: suricata.{{ name }}:
service.running: service.running:
- enabled: True - enabled: True
- watch: - watch:
- pkg: net-analyzer/suricata - pkg: net-analyzer/suricata
- file: /etc/conf.d/suricata - file: /etc/conf.d/suricata
- file: /etc/init.d/suricata.{{ name }}
- file: /etc/suricata/suricata-{{ name }}.yaml - file: /etc/suricata/suricata-{{ name }}.yaml
{% endfor %} {% endfor %}