paulbsd-salt/states/dokuwiki/install.sls
2020-07-10 00:58:55 +02:00

24 lines
727 B
Plaintext

---
{%- from "dokuwiki/map.jinja" import dokuwiki with context %}
dokuwiki-archive:
archive.extracted:
- name: {{ dokuwiki.release_dir }}
- source: {{ dokuwiki.mirror }}/{{ dokuwiki.version }}.tar.gz
- 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 }}