paulbsd-salt/states/dokuwiki/install.sls
Paul Lecuq f9b74b5f4c
All checks were successful
continuous-integration/drone/push Build is passing
updated dokuwiki state
2023-04-28 18:11:17 +02:00

24 lines
764 B
Plaintext

---
{%- from "dokuwiki/map.jinja" import dokuwiki with context %}
dokuwiki-archive:
archive.extracted:
- name: {{ dokuwiki.release_dir }}
- source: {{ dokuwiki.mirror }}/release-{{ dokuwiki.version }}/dokuwiki-{{ dokuwiki.version }}.tgz
- skip_verify: true
- 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 }}
- force: true
dokuwiki-savedir:
file.directory:
- name: {{ dokuwiki.config.savedir }}
- user: {{ dokuwiki.user }}
- group: {{ dokuwiki.group }}