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:
|
2021-08-19 21:15:24 +02:00
|
|
|
- pkg: nftables-pkg
|