paulbsd-salt/states/website/install.sls
2023-11-10 13:27:04 +01:00

24 lines
766 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
website-cleanup:
software.cleanup:
- name: website
- path: {{ website.release_dir }}
- version: "{{ website.version }}"