paulbsd-salt/states/go-aptproxy/install.sls

27 lines
984 B
Plaintext
Raw Normal View History

2021-11-27 13:31:34 +01:00
---
2021-11-27 13:34:59 +01:00
{%- from "go-aptproxy/map.jinja" import goaptproxy with context %}
2021-11-27 13:31:34 +01:00
go-aptproxy-archive-extract:
archive.extracted:
2021-11-27 13:34:59 +01:00
- name: {{ goaptproxy.release_dir }}/go-aptproxy-{{ go-aptproxy.version }}
- source: {{ goaptproxy.mirror }}/{{ go-aptproxy.version }}/go-aptproxy-{{ go-aptproxy.version }}-{{ go-aptproxy.os }}-{{ go-aptproxy.arch }}.tar.gz
2021-11-27 13:31:34 +01:00
- skip_verify: true
- enforce_toplevel: false
2021-11-27 13:34:59 +01:00
- if_missing: {{ goaptproxy.release_dir }}/go-aptproxy-{{ go-aptproxy.version }}
2021-11-27 13:31:34 +01:00
- watch_in:
- service: go-aptproxy-service
go-aptproxy-binary-symlink:
file.symlink:
2021-11-27 13:34:59 +01:00
- name: {{ goaptproxy.install_dir }}/go-aptproxy
- target: {{ goaptproxy.release_dir }}/go-aptproxy-{{ go-aptproxy.version }}
2021-11-27 13:31:34 +01:00
- require:
- archive: go-aptproxy-archive-extract
- watch_in:
- service: go-aptproxy-service
go-aptproxy-cleanup:
software.cleanup:
- name: go-aptproxy
2021-11-27 13:34:59 +01:00
- path: {{ goaptproxy.release_dir }}
- version: {{ goaptproxy.version }}