projects
/
arvados-formula.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
feat(components): add submodules and tests
[arvados-formula.git]
/
arvados
/
config
/
file.sls
diff --git
a/arvados/config/file.sls
b/arvados/config/file.sls
index 463d5b307d322495d9b7950f7158da118819f5ba..986079767889e0822676a008b6297c243c04309b 100644
(file)
--- a/
arvados/config/file.sls
+++ b/
arvados/config/file.sls
@@
-3,26
+3,20
@@
{#- Get the `tplroot` from `tpldir` #}
{%- set tplroot = tpldir.split('/')[0] %}
{#- Get the `tplroot` from `tpldir` #}
{%- set tplroot = tpldir.split('/')[0] %}
-{%- set sls_package_install = tplroot ~ '.package.install' %}
{%- from tplroot ~ "/map.jinja" import arvados with context %}
{%- from tplroot ~ "/libtofs.jinja" import files_switch with context %}
{%- from tplroot ~ "/map.jinja" import arvados with context %}
{%- from tplroot ~ "/libtofs.jinja" import files_switch with context %}
-include:
- - {{ sls_package_install }}
-
arvados-config-file-file-managed:
file.managed:
arvados-config-file-file-managed:
file.managed:
- - name: {{ arvados.config }}
- - source: {{ files_switch(['
example.tmpl
'],
+ - name: {{ arvados.config
.file
}}
+ - source: {{ files_switch(['
config.tmpl', 'config.tmpl.jinja
'],
lookup='arvados-config-file-file-managed'
)
}}
lookup='arvados-config-file-file-managed'
)
}}
- - mode:
644
- - user:
root
- - group: {{ arvados.
root
group }}
+ - mode:
{{ arvados.config.mode }}
+ - user:
{{ arvados.config.user }}
+ - group: {{ arvados.
config.
group }}
- makedirs: True
- template: jinja
- makedirs: True
- template: jinja
- - require:
- - sls: {{ sls_package_install }}
- context:
arvados: {{ arvados | json }}
- context:
arvados: {{ arvados | json }}