paulbsd-salt/states/ipblc/install.sls

31 lines
885 B
Plaintext
Raw Normal View History

2023-01-07 21:04:49 +01:00
---
{%- 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 }}
- require:
- archive: ipblc-archive-extract
- watch_in:
- service: ipblc-service
ipblc-cleanup:
software.cleanup:
- name: ipblc
- path: {{ ipblc.release_dir }}
- version: "{{ ipblc.version }}"