paulbsd-salt/states/g2g/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

24 lines
698 B
Plaintext

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