paulbsd-salt/states/website/install.sls

16 lines
612 B
Plaintext
Raw Normal View History

2020-07-10 00:58:55 +02:00
---
{%- 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
2020-09-12 17:41:35 +02:00
- skip_verify: true
- enforce_toplevel: false
2020-07-10 00:58:55 +02:00
- 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