--- {%- from "dkron/map.jinja" import dkron with context %} dkron-group: group.present: - name: {{ dkron.rungroup }} - gid: {{ dkron.gid }} dkron-user: user.present: - name: {{ dkron.runuser }} - uid: {{ dkron.uid }} - gid: {{ dkron.gid }} - shell: /bin/nologin dkron-archive-extract: archive.extracted: - name: {{ dkron.release_dir }}/dkron-{{ dkron.version }} - source: {{ dkron.mirror }}/v{{ dkron.version }}/dkron_{{ dkron.version }}_{{ dkron.os }}_{{ dkron.arch }}.tar.gz - user: {{ dkron.runuser }} - enforce_toplevel: false - skip_verify: true - archive_format: tar - if_missing: {{ dkron.release_dir }}/dkron-{{ dkron.version }} - watch_in: - service: dkron-service dkron-bin-symlink: file.symlink: - name: {{ dkron.install_dir }}/dkron - target: {{ dkron.release_dir }}/dkron-{{ dkron.version }} - user: {{ dkron.runuser }} - force: true - watch_in: - service: dkron-service dkron-data-dir: file.directory: - name: {{ dkron.config.get('data-dir') }} - user: {{ dkron.runuser }} - watch_in: - service: dkron-service dkron-cleanup: software.cleanup: - name: dkron - path: {{ dkron.release_dir }} - version: "{{ dkron.version }}"