paulbsd-salt/states/nextcloud/install.sls

26 lines
859 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
nextcloud-datadirectory:
file.directory:
- name: {{ nextcloud.config.datadirectory}}
- user: {{ nextcloud.user }}
- group: {{ nextcloud.group }}