paulbsd-salt/states/molotov/install.sls
Paul Lecuq a3b02771a4
All checks were successful
continuous-integration/drone/push Build is passing
created templates folder on each state
2023-03-11 10:08:26 +01:00

43 lines
1.1 KiB
Plaintext

---
{%- from "molotov/map.jinja" import molotov with context %}
molotov-install:
file.managed:
- name: {{ molotov.dest_path }}/molotov.{{ molotov.version }}
- source: {{ molotov.url }}/Molotov-{{ molotov.version }}.AppImage
- 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 }}
- source: salt://molotov/templates/molotov.desktop.j2
- template: jinja
- user: root
- group: root
- mode: 644
- require:
- file: molotov-install