diff options
author | Pratyush Desai | 2023-02-12 00:55:49 +0100 |
---|---|---|
committer | Pratyush Desai | 2023-02-12 00:55:49 +0100 |
commit | c9a157833bd74e29ee49fe654656d6f1896c17c5 (patch) | |
tree | 06b09fab7269214ecfa3cd82ad2b28167fd3e92f /salt/profile | |
parent | e2560f0dd665993c52eaaecb77445b299f7ddd19 (diff) | |
parent | 1aacd3f3403cb8643204a7ea235ea40f7de56de5 (diff) | |
download | salt-c9a157833bd74e29ee49fe654656d6f1896c17c5.tar.gz salt-c9a157833bd74e29ee49fe654656d6f1896c17c5.tar.bz2 salt-c9a157833bd74e29ee49fe654656d6f1896c17c5.zip |
Merge pull request 'Matterbridge media' (#15) from matterbridge-media into production
Reviewed-on: https://git.com.de/LibertaCasa/salt/pulls/15
Diffstat (limited to 'salt/profile')
-rw-r--r-- | salt/profile/matterbridge/init.sls | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/salt/profile/matterbridge/init.sls b/salt/profile/matterbridge/init.sls index 1e0cd51..a68de46 100644 --- a/salt/profile/matterbridge/init.sls +++ b/salt/profile/matterbridge/init.sls @@ -37,6 +37,17 @@ matterbridge_files: {%- endfor %} {%- for instance in instances %} +{%- if 'general' in instances[instance] and 'MediaDownloadPath' in instances[instance]['general'] %} +matterbridge_{{ instance }}_mediadir: + file.directory: + - name: {{ instances[instance]['general']['MediaDownloadPath'] }} + - user: matterbridge + {#- to-do: implement some shared group #} + - group: lighttpd + - mode: 750 + - makedirs: True +{%- endif %} + matterbridge_{{ instance }}_service: service.running: - name: matterbridge@{{ instance }}.service |