From 8d5c0c941044b65f275b05f5579d54282943ced7 Mon Sep 17 00:00:00 2001 From: Gino Naumann Date: Tue, 22 Jun 2021 23:09:38 +0200 Subject: [PATCH] fix(debian10 iptables): install iptables from buster-backports * fix(debian10 iptables): install iptables from buster-backports * fix(debian 10 iptables): Arch Linux test Co-authored-by: Imran Iqbal --- firewalld/debian10.sls | 13 +++++++++++++ firewalld/init.sls | 3 +++ 2 files changed, 16 insertions(+) create mode 100644 firewalld/debian10.sls diff --git a/firewalld/debian10.sls b/firewalld/debian10.sls new file mode 100644 index 0000000..1438a1c --- /dev/null +++ b/firewalld/debian10.sls @@ -0,0 +1,13 @@ +{% from "firewalld/map.jinja" import firewalld with context %} + +firewalld_repo_buster-backports: + pkgrepo.managed: + - name: deb http://deb.debian.org/debian buster-backports main + - file: /etc/apt/sources.list.d/buster-backports.list + +firewalld_install_iptables_from_buster-backports: + pkg.installed: + - name: iptables + - fromrepo: buster-backports + - version: '1.8.5*' + - refresh: True diff --git a/firewalld/init.sls b/firewalld/init.sls index 32a5e33..ab4c506 100644 --- a/firewalld/init.sls +++ b/firewalld/init.sls @@ -16,6 +16,9 @@ firewalld-unsupported: {% elif firewalld.enabled %} include: + {% if grains.get('osfinger', '') == 'Debian-10' %} + - firewalld.debian10 + {% endif %} - firewalld.config - firewalld.ipsets - firewalld.backend