--- molotov-install: file.managed: - 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 - user: root - group: root - mode: 755 - 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 molotov-icon: file.managed: - name: /usr/share/icons/molotov.png - source: salt://molotov/molotov.png - user: root - group: root - mode: 644 - require: - file: molotov-install 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 - require: - file: molotov-install