paulbsd-salt/states/lego/install.sls

24 lines
723 B
Plaintext
Raw Normal View History

2020-10-01 23:06:47 +02:00
---
{%- from "lego/map.jinja" import lego with context %}
lego-archive-extract:
archive.extracted:
2021-11-14 13:37:49 +01:00
- name: {{ lego.release_dir }}/lego-{{ lego.version }}
- source: {{ lego.mirror }}/v{{ lego.version }}/lego_v{{ lego.version }}_{{ lego.os }}_{{ lego.arch }}.tar.gz
2020-10-01 23:06:47 +02:00
- skip_verify: true
- enforce_toplevel: false
2021-11-14 13:37:49 +01:00
- if_missing: {{ lego.release_dir }}/lego-{{ lego.version }}
2020-10-01 23:06:47 +02:00
lego-binary-symlink:
file.symlink:
- name: /usr/local/bin/lego
2021-11-14 13:37:49 +01:00
- target: {{ lego.release_dir }}/lego-{{ lego.version }}/lego
2020-10-01 23:06:47 +02:00
- force: true
- require:
- archive: lego-archive-extract
2021-11-14 13:37:49 +01:00
lego-cleanup:
software.cleanup:
- name: lego
- path: {{ lego.release_dir }}
2021-12-29 15:45:48 +01:00
- version: "{{ lego.version }}"