paulbsd-salt/states/nextcloud/install.sls

32 lines
1001 B
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 }}
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
2020-07-10 00:58:55 +02:00
2021-11-14 13:37:49 +01:00
nextcloud-cleanup:
software.cleanup:
- name: nextcloud
- path: {{ nextcloud.release_dir }}
- version: {{ nextcloud.version }}
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 }}