paulbsd-salt/states/dokuwiki/install.sls

24 lines
764 B
Plaintext
Raw Permalink Normal View History

2020-07-10 00:58:55 +02:00
---
{%- from "dokuwiki/map.jinja" import dokuwiki with context %}
dokuwiki-archive:
archive.extracted:
- name: {{ dokuwiki.release_dir }}
2023-04-28 18:11:17 +02:00
- source: {{ dokuwiki.mirror }}/release-{{ dokuwiki.version }}/dokuwiki-{{ dokuwiki.version }}.tgz
2020-09-12 17:41:35 +02:00
- skip_verify: true
2020-07-10 00:58:55 +02:00
- archive_format: tar
- user: {{ dokuwiki.user }}
- group: {{ dokuwiki.group }}
- if_missing: {{ dokuwiki.release_dir }}/dokuwiki-{{ dokuwiki.version }}
dokuwiki-install-link:
file.symlink:
- name: {{ dokuwiki.install_dir }}/dokuwiki
- target: {{ dokuwiki.release_dir }}/dokuwiki-{{ dokuwiki.version }}
2020-09-12 17:41:35 +02:00
- force: true
2020-07-10 00:58:55 +02:00
dokuwiki-savedir:
file.directory:
- name: {{ dokuwiki.config.savedir }}
- user: {{ dokuwiki.user }}
- group: {{ dokuwiki.group }}