21 lines
405 B
Plaintext
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
|