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

28 lines
997 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:36:41 +01:00
- name: {{ goaptproxy.release_dir }}/go-aptproxy-{{ goaptproxy.version }}
- source: {{ goaptproxy.mirror }}/{{ goaptproxy.version }}/go-aptproxy-{{ goaptproxy.version }}-{{ goaptproxy.os }}-{{ goaptproxy.arch }}.tar.gz
2021-11-27 13:31:34 +01:00
- skip_verify: true
- enforce_toplevel: false
2021-11-27 13:36:41 +01:00
- if_missing: {{ goaptproxy.release_dir }}/go-aptproxy-{{ goaptproxy.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
2021-11-27 13:36:41 +01:00
- target: {{ goaptproxy.release_dir }}/go-aptproxy-{{ goaptproxy.version }}
- force: true
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 }}
2021-12-29 15:43:31 +01:00
- version: "{{ goaptproxy.version }}"