updated nextcloud state

This commit is contained in:
Paul 2023-10-10 09:07:23 +02:00
parent 30765d1ac4
commit 62b8bbaba4
3 changed files with 17 additions and 0 deletions

13
states/nextcloud/apps.sls Normal file
View File

@ -0,0 +1,13 @@
---
{%- from "nextcloud/map.jinja" import nextcloud with context %}
{%- for app in nextcloud.apps %}
nextcloud-apps-install-{{ app }}:
cmd.run:
- name: php {{ nextcloud.install_dir }}/nextcloud/occ app:install {{ app }}
- runas: {{ nextcloud.user }}
{%- endfor %}
nextcloud-apps-update:
cmd.run:
- name: php {{ nextcloud.install_dir }}/nextcloud/occ app:update --all
- runas: {{ nextcloud.user }}

View File

@ -6,6 +6,9 @@ nextcloud:
release_dir: /usr/local/apps/releases
user: www-data
group: www-data
apps:
- calendar
- contacts
config:
instanceid: ''
passwordsalt: ''

View File

@ -4,3 +4,4 @@ include:
- redis
- .install
- .config
- .apps