17750: Centos 7 needs rvm for api and workbench
[arvados-formula.git] / arvados / dispatcher / service / running.sls
1 # -*- coding: utf-8 -*-
2 # vim: ft=sls
3
4 {#- Get the `tplroot` from `tpldir` #}
5 {%- set tplroot = tpldir.split('/')[0] %}
6 {%- set sls_config_file = tplroot ~ '.config.file' %}
7 {%- from tplroot ~ "/map.jinja" import arvados with context %}
8 {%- from tplroot ~ "/libtofs.jinja" import files_switch with context %}
9
10 include:
11   - ..package
12   - .file
13   - {{ sls_config_file }}
14
15 arvados-dispatcher-service-running-service-running:
16   service.running:
17     - name: {{ arvados.dispatcher.service.name }}
18     - enable: true
19     - watch:
20       - sls: {{ sls_config_file }}
21     - require:
22       - pkg: arvados-dispatcher-package-install-pkg-installed