2021-07-11 17:37:42 +02:00
|
|
|
---
|
|
|
|
{%- from "molotov/map.jinja" import molotov with context %}
|
|
|
|
molotov-install:
|
|
|
|
file.managed:
|
|
|
|
- name: {{ molotov.dest_path }}/molotov.{{ molotov.version }}
|
2022-03-23 18:26:17 +01:00
|
|
|
- source: {{ molotov.url }}/Molotov-{{ molotov.version }}.AppImage
|
2021-07-11 17:37:42 +02:00
|
|
|
- skip_verify: true
|
|
|
|
- user: root
|
|
|
|
- group: root
|
|
|
|
- mode: 755
|
|
|
|
- if_missing: {{ molotov.dest_path }}/molotov.{{ molotov.version }}
|
|
|
|
|
|
|
|
molotov-symlink:
|
|
|
|
file.symlink:
|
|
|
|
- name: {{ molotov.dest_path }}/molotov
|
|
|
|
- target: {{ molotov.dest_path }}/molotov.{{ molotov.version }}
|
|
|
|
- user: root
|
|
|
|
- group: root
|
|
|
|
- mode: 755
|
|
|
|
- require:
|
|
|
|
- file: molotov-install
|
|
|
|
|
|
|
|
molotov-icon:
|
|
|
|
file.managed:
|
|
|
|
- name: {{ molotov.icon_path }}
|
|
|
|
- source: salt://molotov/molotov.png
|
|
|
|
- user: root
|
|
|
|
- group: root
|
|
|
|
- mode: 644
|
|
|
|
- require:
|
|
|
|
- file: molotov-install
|
|
|
|
|
|
|
|
molotov-desktop-entry:
|
|
|
|
file.managed:
|
|
|
|
- name: {{ molotov.desktop_entry_path }}
|
2023-03-11 10:08:26 +01:00
|
|
|
- source: salt://molotov/templates/molotov.desktop.j2
|
2021-07-11 17:37:42 +02:00
|
|
|
- template: jinja
|
|
|
|
- user: root
|
|
|
|
- group: root
|
|
|
|
- mode: 644
|
|
|
|
- require:
|
|
|
|
- file: molotov-install
|