tor-formula/tor/install.sls
Georg Pfuetzenreuter f281f7c30a
Torsocks for SUSE logic
Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
2023-02-05 18:36:28 +01:00

21 lines
415 B
Plaintext

{% from "tor/map.jinja" import map, osfamily 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