From 9ac23e9235d105ec3f8d416ea3f3a7fa90d159a8 Mon Sep 17 00:00:00 2001 From: Georg Pfuetzenreuter Date: Sun, 5 Feb 2023 18:15:56 +0100 Subject: [PATCH] Manage repo only on Debian Signed-off-by: Georg Pfuetzenreuter --- tor/config.sls | 2 ++ tor/install.sls | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/tor/config.sls b/tor/config.sls index 80cbd0c..db8ab46 100644 --- a/tor/config.sls +++ b/tor/config.sls @@ -1,7 +1,9 @@ {% from "tor/map.jinja" import map with context %} include: + {%- if osfamily == 'Debian' %} - tor.repo + {%- endif %} - tor.install deploy_tor_torrc: diff --git a/tor/install.sls b/tor/install.sls index 8b12704..494f0b8 100644 --- a/tor/install.sls +++ b/tor/install.sls @@ -1,13 +1,17 @@ {% from "tor/map.jinja" import map with context %} +{%- if osfamily == 'Debian' %} include: - tor.repo +{%- endif %} install_tor: pkg.installed: - pkgs: {{ map.pkgs }} + {%- if osfamily == 'Debian' %} - require: - pkgrepo: install_tor_repo + {%- endif %} service.running: - name: {{ map.service }} - restart: True