2020-11-30 21:44:50 +01:00
|
|
|
---
|
|
|
|
{% from "pki/map.jinja" import pki with context %}
|
|
|
|
pki-archive-extract:
|
|
|
|
archive.extracted:
|
|
|
|
- name: {{ pki.release_dir }}/pki-{{ pki.version }}
|
|
|
|
- source: {{ pki.mirror }}/{{ pki.version }}/pki-{{ pki.version }}-{{ pki.os }}-{{ pki.arch }}.tar.gz
|
|
|
|
- skip_verify: true
|
|
|
|
- enforce_toplevel: false
|
|
|
|
- if_missing: {{ pki.release_dir }}/pki-{{ pki.version }}
|
2021-01-24 19:02:28 +01:00
|
|
|
- watch_in:
|
|
|
|
- service: pki-service
|
2020-11-30 21:44:50 +01:00
|
|
|
|
|
|
|
pki-binary-symlink:
|
|
|
|
file.symlink:
|
|
|
|
- name: {{ pki.install_dir }}/pki
|
|
|
|
- target: {{ pki.release_dir }}/pki-{{ pki.version }}
|
|
|
|
- require:
|
|
|
|
- archive: pki-archive-extract
|
2021-01-24 19:02:28 +01:00
|
|
|
- watch_in:
|
2021-08-19 21:15:24 +02:00
|
|
|
- service: pki-service
|