tor-formula/tor/install.sls
Georg Pfuetzenreuter 9ac23e9235
Manage repo only on Debian
Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
2023-02-05 18:15:56 +01:00

21 lines
405 B
Plaintext

{% 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
- enable: True
- require:
- pkg: install_tor