paulbsd-salt/states/nftables/init.sls

22 lines
463 B
Plaintext
Raw Normal View History

2020-07-10 00:58:55 +02:00
---
{%- from "nftables/map.jinja" import nftables with context %}
nftables-pkg:
pkg.latest:
- name: nftables
nftables-main-config:
file.managed:
- name: /etc/nftables.conf
- source: salt://nftables/nftables.conf.j2
- template: jinja
- watch_in:
- service: nftables-service
- require:
- pkg: nftables-pkg
nftables-service:
service.running:
- name: nftables
2020-09-12 17:41:35 +02:00
- enable: true
2020-07-10 00:58:55 +02:00
- require:
- pkg: nftables-pkg