paulbsd-salt/states/ipblc/install.sls
Paul Lecuq 1a38f6afa5
All checks were successful
continuous-integration/drone/push Build is passing
fix in deployment process for some soft
2023-06-23 08:57:12 +02:00

32 lines
903 B
Plaintext

---
{%- from "ipblc/map.jinja" import ipblc with context %}
ipblc-dependencies:
pkg.installed:
- name: libczmq4
ipblc-archive-extract:
archive.extracted:
- name: {{ ipblc.release_dir }}/ipblc-{{ ipblc.version }}
- source: {{ ipblc.mirror }}/{{ ipblc.version }}/ipblc-{{ ipblc.version }}-{{ ipblc.os }}-{{ ipblc.arch }}.tar.gz
- skip_verify: true
- enforce_toplevel: false
- if_missing: {{ ipblc.release_dir }}/ipblc-{{ ipblc.version }}
- watch_in:
- service: ipblc-service
ipblc-binary-symlink:
file.symlink:
- name: {{ ipblc.install_dir }}/ipblc
- target: {{ ipblc.release_dir }}/ipblc-{{ ipblc.version }}
- force: true
- require:
- archive: ipblc-archive-extract
- watch_in:
- service: ipblc-service
ipblc-cleanup:
software.cleanup:
- name: ipblc
- path: {{ ipblc.release_dir }}
- version: "{{ ipblc.version }}"