forked from saltstack/salt-winrepo-ng
-
Notifications
You must be signed in to change notification settings - Fork 0
/
firefox-esr_x86.sls
33 lines (31 loc) · 2.63 KB
/
firefox-esr_x86.sls
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Firefox installs are available in many languages other than en-US
# See https://releases.mozilla.org/pub/firefox/releases/latest/README.txt
# for a list of possible installer language codes.
# To install Firefox in a particular language on a minion, set the value of
# `firefox:pkg:lang` to a language code in the master config file,
# minion pillar, grains or config file. See
# https://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.config.html#salt.modules.config.get
#
# Since version 78.12.0 no version number is added to the full_name field
# See https://bugzilla.mozilla.org/show_bug.cgi?id=1713393
{%- set lang = salt['config.get']('firefox:pkg:lang', 'en-US') %}
firefox-esr_x86:
{% if grains['cpuarch'] == 'AMD64' %}
{% set PROGRAM_FILES = "%ProgramFiles(x86)%" %}
{% else %}
{% set PROGRAM_FILES = "%ProgramFiles%" %}
{% endif %}
{% for version in ['102.7.0', '91.7.1', '91.7.0', '91.6.1', '91.6.0', '91.5.0', '91.4.1', '91.4.0', '91.3.0', '91.2.0', '91.1.0', '91.0.1', '91.0', '78.15.0', '78.14.0', '78.13.0', '78.12.0', '78.11.0', '78.10.1', '78.10.0', '78.9.0', '78.8.0', '78.7.1', '78.7.0', '78.6.1', '78.6.0', '78.5.0', '78.4.1', '78.4.0', '78.3.1', '78.3.0', '78.2.0', '78.1.0', '78.0.2', '78.0.1', '78.0', '68.12.0', '68.11.0', '68.10.0', '68.9.0', '68.8.0', '68.7.0', '68.6.1', '68.6.0', '68.5.0', '68.4.2', '68.4.1', '68.4.0', '68.3.0', '68.2.0', '68.1.0', '68.0', '60.9.0', '60.8.0', '60.7.2', '60.7.1', '60.7.0', '60.6.3', '60.6.2', '60.6.1', '60.6.0', '60.5.2', '60.5.1', '60.5.0', '60.4.0', '60.3.0', '60.2.2', '60.2.1', '60.2.0', '60.1.0', '60.0.2', '60.0.1', '60.0', '52.9.0', '52.8.1', '52.8.0', '52.7.4', '52.7.3', '52.7.2', '52.7.1', '52.7.0', '52.6.0', '52.5.3', '52.5.2', '52.5.0', '52.4.1', '52.4.0', '52.3.0', '52.2.1', '52.2.0', '52.1.2', '52.1.1', '52.1.0', '52.0.2', '52.0.1', '52.0', '45.9.0', '45.8.0', '45.7.0', '45.6.0', '45.5.1', '45.5.0', '45.4.0', '45.3.0', '45.2.0', '45.1.1', '45.1.0', '45.0.2', '45.0.1', '45.0', '38.8.0', '38.7.1', '38.7.0', '38.6.1', '38.6.0', '38.5.2', '38.5.1', '38.5.0', '38.4.0', '38.3.0', '38.2.1'] %}
'{{ version }}':
{% if salt["pkg.compare_versions"](version, "<", "78.12.0") -%}
{% set display_version = " " ~ version -%}
{% endif -%}
full_name: 'Mozilla Firefox{{ display_version | default("") }} ESR (x86 {{ lang }})'
installer: 'https://download-installer.cdn.mozilla.net/pub/firefox/releases/{{ version }}esr/win32/{{ lang }}/Firefox%20Setup%20{{ version }}esr.exe'
install_flags: '/S'
uninstaller: '{{ PROGRAM_FILES }}\Mozilla Firefox\uninstall\helper.exe'
uninstall_flags: '/S'
msiexec: False
locale: en_US
reboot: False
{% endfor %}