Merge pull request #8 from netmanagers/master
[arvados-formula.git] / arvados / dispatcher / package / install.sls
1 # -*- coding: utf-8 -*-
2 # vim: ft=sls
3
4 {#- Get the `tplroot` from `tpldir` #}
5 {%- set tplroot = tpldir.split('/')[0] %}
6 {%- from tplroot ~ "/map.jinja" import arvados with context %}
7
8 arvados-dispatcher-package-install-pkg-installed:
9   pkg.installed:
10     - name: {{ arvados.dispatcher.pkg.name }}
11     - version: {{ arvados.version }}
12
13 # FIXME! Until https://dev.arvados.org/issues/16995 makes it to
14 # a new release, this is required so the dependency is installed
15 {%- if arvados.dispatcher.pkg.name == 'crunch-dispatch-local' %}
16 arvados-dispatcher-package-install-crunch-run-pkg-installed:
17   pkg.installed:
18     - name: crunch-run
19     - require:
20       - pkg: arvados-dispatcher-package-install-pkg-installed
21     - version: {{ arvados.version }}
22 {%- endif %}