paulbsd-salt/states/nextcloud/install.sls

42 lines
1.2 KiB
Plaintext
Raw Normal View History

2020-07-10 00:58:55 +02:00
---
{%- from "nextcloud/map.jinja" import nextcloud with context %}
nextcloud-archive:
archive.extracted:
- name: {{ nextcloud.release_dir }}/nextcloud-{{ nextcloud.version }}
- source: {{ nextcloud.mirror }}/nextcloud-{{ nextcloud.version }}.tar.bz2
2020-09-12 17:41:35 +02:00
- skip_verify: true
2020-07-10 00:58:55 +02:00
- archive_format: tar
2020-09-12 17:41:35 +02:00
- enforce_toplevel: false
2020-07-10 00:58:55 +02:00
- options: --strip 1
- user: {{ nextcloud.user }}
- group: {{ nextcloud.group }}
- if_missing: {{ nextcloud.release_dir }}/nextcloud-{{ nextcloud.version }}
2023-04-28 18:12:16 +02:00
- watch_in:
service: php-fpm-service
2020-07-10 00:58:55 +02:00
nextcloud-install-link:
file.symlink:
- name: {{ nextcloud.install_dir }}/nextcloud
- target: {{ nextcloud.release_dir }}/nextcloud-{{ nextcloud.version }}
2020-09-12 17:41:35 +02:00
- force: true
2023-04-28 18:12:16 +02:00
- watch_in:
service: php-fpm-service
2020-07-10 00:58:55 +02:00
nextcloud-datadirectory:
file.directory:
2021-11-14 13:37:49 +01:00
- name: {{ nextcloud.config.datadirectory }}
2020-07-10 00:58:55 +02:00
- user: {{ nextcloud.user }}
- group: {{ nextcloud.group }}
2021-12-29 15:45:48 +01:00
2024-12-21 16:39:15 +01:00
nextcloud-logfile:
file.directory:
- name: {{ nextcloud.config.datadirectory }}/nextcloud.log
- user: {{ nextcloud.user }}
- group: {{ nextcloud.group }}
2021-12-29 15:45:48 +01:00
nextcloud-cleanup:
software.cleanup:
- name: nextcloud
- path: {{ nextcloud.release_dir }}
- version: "{{ nextcloud.version }}"