2020-07-10 00:58:55 +02:00
|
|
|
---
|
|
|
|
{%- from "qrz/map.jinja" import qrz with context %}
|
|
|
|
qrz-archive-extract:
|
|
|
|
archive.extracted:
|
|
|
|
- name: {{ qrz.release_dir }}/qrz-{{ qrz.version }}
|
|
|
|
- source: {{ qrz.mirror }}/{{ qrz.version }}/qrz-{{ qrz.version }}-{{ qrz.os }}-{{ qrz.arch }}.tar.gz
|
2020-09-12 17:41:35 +02:00
|
|
|
- skip_verify: true
|
|
|
|
- enforce_toplevel: false
|
2020-07-10 00:58:55 +02:00
|
|
|
- if_missing: {{ qrz.release_dir }}/qrz-{{ qrz.version }}
|
|
|
|
- watch_in:
|
|
|
|
- service: qrz-service
|
|
|
|
|
|
|
|
qrz-binary-symlink:
|
|
|
|
file.symlink:
|
|
|
|
- name: {{ qrz.install_dir }}/qrz
|
|
|
|
- target: {{ qrz.release_dir }}/qrz-{{ qrz.version }}
|
2023-06-23 08:57:12 +02:00
|
|
|
- force: true
|
2020-07-10 00:58:55 +02:00
|
|
|
- require:
|
|
|
|
- archive: qrz-archive-extract
|
|
|
|
- watch_in:
|
2021-08-19 21:15:24 +02:00
|
|
|
- service: qrz-service
|
2021-11-14 13:37:49 +01:00
|
|
|
|
2024-09-06 17:19:41 +02:00
|
|
|
qrz-group:
|
|
|
|
group.present:
|
|
|
|
- name: {{ qrz.group.name }}
|
|
|
|
- gid: {{ qrz.group.gid }}
|
|
|
|
- watch_in:
|
|
|
|
- service: qrz-service
|
|
|
|
|
|
|
|
qrz-user:
|
|
|
|
user.present:
|
2024-09-06 17:26:54 +02:00
|
|
|
- name: {{ qrz.user.name }}
|
2024-09-06 17:19:41 +02:00
|
|
|
- uid: {{ qrz.user.uid }}
|
|
|
|
- gid: {{ qrz.group.gid }}
|
|
|
|
- shell: /sbin/nologin
|
|
|
|
- allow_uid_change: true
|
|
|
|
- allow_gid_change: true
|
|
|
|
- home: /var/lib/qrz
|
|
|
|
- watch_in:
|
|
|
|
- service: qrz-service
|
|
|
|
|
2024-09-02 22:07:37 +02:00
|
|
|
qrz-directory:
|
|
|
|
file.directory:
|
|
|
|
- name: /var/lib/qrz
|
2024-09-06 17:19:41 +02:00
|
|
|
- user: {{ qrz.user.name }}
|
|
|
|
- group: {{ qrz.group.name }}
|
|
|
|
- watch_in:
|
|
|
|
- service: qrz-service
|
2024-09-02 22:07:37 +02:00
|
|
|
|
2021-11-14 13:37:49 +01:00
|
|
|
qrz-cleanup:
|
|
|
|
software.cleanup:
|
|
|
|
- name: qrz
|
|
|
|
- path: {{ qrz.release_dir }}
|
2021-12-29 15:45:48 +01:00
|
|
|
- version: "{{ qrz.version }}"
|