paulbsd-salt/states/molotov/init.sls

42 lines
1.2 KiB
Plaintext
Raw Normal View History

2020-07-10 00:58:55 +02:00
---
molotov-install:
file.managed:
2021-07-11 17:29:46 +02:00
- name: {{ salt['pillar.get']('molotov:dest_path') }}/molotov.{{ salt['pillar.get']('molotov:version') }}
- source: {{ salt['pillar.get']('molotov:url') }}/{{ salt['pillar.get']('molotov:version') }}/{{ salt['pillar.get']('molotov:file') }}
- skip_verify: true
2020-07-10 00:58:55 +02:00
- user: root
- group: root
- mode: 755
2021-07-11 17:29:46 +02:00
- if_missing: {{ salt['pillar.get']('molotov:dest_path') }}/molotov.{{ salt['pillar.get']('molotov:version') }}
molotov-symlink:
file.symlink:
- name: {{ salt['pillar.get']('molotov:dest_path') }}/molotov
- target: {{ salt['pillar.get']('molotov:dest_path') }}/molotov.{{ salt['pillar.get']('molotov:version') }}
- user: root
- group: root
- mode: 755
- require:
- file: molotov-install
2020-07-10 00:58:55 +02:00
molotov-icon:
file.managed:
- name: /usr/share/icons/molotov.png
- source: salt://molotov/molotov.png
- user: root
- group: root
- mode: 644
2021-07-11 17:29:46 +02:00
- require:
- file: molotov-install
2020-07-10 00:58:55 +02:00
molotov-desktop-entry:
file.managed:
- name: /usr/share/applications/molotov.desktop
- source: salt://molotov/molotov.desktop.j2
- template: jinja
- user: root
- group: root
- mode: 644
2021-07-11 17:29:46 +02:00
- require:
- file: molotov-install