43 lines
1.1 KiB
Plaintext
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.version }}/{{ molotov.file }}
|
|
- 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/molotov.desktop.j2
|
|
- template: jinja
|
|
- user: root
|
|
- group: root
|
|
- mode: 644
|
|
- require:
|
|
- file: molotov-install
|