paulbsd-salt/states/website/install.sls
Paul Lecuq 7b03409591
All checks were successful
continuous-integration/drone/push Build is passing
updated website state
2023-07-24 23:37:48 +02:00

18 lines
631 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 }}
- force: true
- require:
- archive: website-archive-extract