paulbsd-salt/states/dokuwiki/install.sls

24 lines
727 B
Plaintext
Raw 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 }}
- source: {{ dokuwiki.mirror }}/{{ dokuwiki.version }}.tar.gz
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 }}