paulbsd-salt/states/dip/install.sls

26 lines
769 B
Plaintext
Raw Normal View History

2020-08-01 18:33:52 +02:00
---
{%- from "dip/map.jinja" import dip with context %}
dip-archive-extract:
archive.extracted:
- name: {{ dip.release_dir }}/dip-{{ dip.version }}
- source: {{ dip.mirror }}/{{ dip.version }}/dip-{{ dip.version }}-{{ dip.os }}-{{ dip.arch }}.tar.gz
2020-09-12 17:41:35 +02:00
- skip_verify: true
- enforce_toplevel: false
2020-08-01 18:33:52 +02:00
- if_missing: {{ dip.release_dir }}/dip-{{ dip.version }}
- watch_in:
- service: dip-service
dip-binary-symlink:
file.symlink:
- name: {{ dip.install_dir }}/dip
- target: {{ dip.release_dir }}/dip-{{ dip.version }}
- require:
- archive: dip-archive-extract
- watch_in:
2022-11-08 11:07:43 +01:00
- service: dip-service
dip-cleanup:
software.cleanup:
- name: dip
- path: {{ dip.release_dir }}
- version: "{{ dip.version }}"