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

16 lines
612 B
Plaintext

---
{%- from "website/map.jinja" import website with context %}
website-archive-extract:
archive.extracted:
- name: {{ website.release_dir }}/website-{{ website.version }}
- source: {{ website.mirror }}/{{ website.version }}/website-{{ website.version }}.tar.gz
- skip_verify: True
- enforce_toplevel: False
- if_missing: {{ website.release_dir }}/website-{{ website.version }}
website-binary-symlink:
file.symlink:
- name: {{ website.install_dir }}/website
- target: {{ website.release_dir }}/website-{{ website.version }}
- require:
- archive: website-archive-extract