45 lines
1.3 KiB
Plaintext
45 lines
1.3 KiB
Plaintext
|
---
|
||
|
{%- from "firefox/map.jinja" import firefox with context %}
|
||
|
firefox-archive-extract:
|
||
|
archive.extracted:
|
||
|
- name: {{ firefox.release_dir }}/firefox-{{ firefox.version }}
|
||
|
- source: {{ firefox.mirror }}/{{ firefox.version }}/{{ firefox.platform }}/{{ firefox.lang }}/firefox-{{ firefox.version }}.tar.bz2
|
||
|
- skip_verify: true
|
||
|
- archive_format: tar
|
||
|
- enforce_toplevel: false
|
||
|
- options: --strip 1
|
||
|
- keep: true
|
||
|
- if_missing: {{ firefox.release_dir }}/firefox-{{ firefox.version }}/firefox
|
||
|
|
||
|
firefox-symlink:
|
||
|
file.symlink:
|
||
|
- name: {{ firefox.install_dir }}/firefox
|
||
|
- target: {{ firefox.release_dir }}/firefox-{{ firefox.version }}
|
||
|
- force: true
|
||
|
- require:
|
||
|
- archive: firefox-archive-extract
|
||
|
|
||
|
firefox-bin-symlink:
|
||
|
file.symlink:
|
||
|
- name: /usr/bin/firefox
|
||
|
- target: {{ firefox.install_dir }}/firefox/firefox
|
||
|
- force: true
|
||
|
- require:
|
||
|
- archive: firefox-archive-extract
|
||
|
|
||
|
firefox-shortcut:
|
||
|
file.managed:
|
||
|
- name: /usr/share/applications/firefox.desktop
|
||
|
- source: salt://firefox/firefox.desktop.j2
|
||
|
- user: root
|
||
|
- group: root
|
||
|
- mode: 644
|
||
|
- template: jinja
|
||
|
- require:
|
||
|
- archive: firefox-archive-extract
|
||
|
|
||
|
firefox-cleanup:
|
||
|
software.cleanup:
|
||
|
- name: firefox
|
||
|
- path: {{ firefox.release_dir }}
|
||
|
- version: "{{ firefox.version }}"
|