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