blob: 6208ea64be50895131756e0d2a15926c12752eba [file] [log] [blame]
Ales Komarek7792c702015-10-19 20:41:02 +02001{%- set source_engine = salt['pillar.get']('{{cookiecutter.service_name}}:{{cookiecutter.role_name}}:source:engine') %}
2
3{%- load_yaml as base_defaults %}
4{%- if source_engine == 'git' %}
5Debian:
6 pkgs:
7 - python-psycopg2
8 dir:
9 base: /srv/{{cookiecutter.service_name}}/venv
10 home: /var/lib/{{cookiecutter.service_name}}
11 workspace: /srv/{{cookiecutter.service_name}}/workspace
12RedHat:
13 pkgs:
14 - python-psycopg2
15 dir:
16 base: /srv/{{cookiecutter.service_name}}/venv
17 home: /var/lib/{{cookiecutter.service_name}}
18 workspace: /srv/{{cookiecutter.service_name}}/workspace
19{%- else %}
20Debian:
21 pkgs:
22 - helpdesk
23 dir:
24 base: /usr/lib/{{cookiecutter.service_name}}
25{%- endif %}
26{%- endload %}
27
28{%- set {{cookiecutter.role_name}} = salt['grains.filter_by'](base_defaults, merge=salt['pillar.get']('{{cookiecutter.service_name}}:{{cookiecutter.role_name}}')) %}