Ales Komarek | 7792c70 | 2015-10-19 20:41:02 +0200 | [diff] [blame^] | 1 | {%- 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' %} |
| 5 | Debian: |
| 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 |
| 12 | RedHat: |
| 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 %} |
| 20 | Debian: |
| 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}}')) %} |