/
salt-minion-py2.sls
92 lines (92 loc) · 2.99 KB
/
salt-minion-py2.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# This software definition will only work in versions of Salt newer than
# 2015.8.2. In version 2015.8.2 we added the `use_scheduler` option which
# allowed us to launch the installer using the Windows task manager.
# This option is not available in earlier versions of Salt. So, while this
# software definition will allow you to install versions of Salt older than
# 2015.8.2 you will not be able to use pkg.install to upgrade Salt again. You
# will have to upgrade Salt through another means.
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
salt-minion:
{%
for version in [
'3000.9',
'3000.8',
'3000.7',
]
%}
'{{ version }}':
full_name: 'Salt Minion {{ version }}'
{% if grains['cpuarch'] == 'AMD64' %}
installer: 'https://repo.saltstack.com/windows/Salt-Minion-{{ version }}-Py2-AMD64-Setup.exe'
{% else %}
installer: 'https://repo.saltstack.com/windows/Salt-Minion-{{ version }}-Py2-x86-Setup.exe'
{% endif %}
{% raw %}
# install_flags: "/S /master={{ salt['pillar.get']('salt:master', 'salt.domain.tld') }} /minion-id={{ salt['pillar.get']('salt:minion:ids:' ~ grains['host'] }}"
{% endraw %}
install_flags: '/S'
uninstaller: 'C:\salt\uninst.exe'
uninstall_flags: '/S'
msiexec: False
use_scheduler: True
reboot: False
{% endfor %}
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Versions of Salt that contain CVE's have been moved to an archive at:
# archive.repo.saltstack.com/windows. The ability to install those versions
# using winrepo has been removed.
# An uninstall only definition will remain here so the packages will show up
# correctly in `pkg.list_pkgs` and to allow for removal using `pkg.remove`
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
{%
for version in [
'3000.6',
'3000.4',
'3000.3',
'3000.2',
'3000.1',
'3000',
'2019.2.8',
'2019.2.6',
'2019.2.5',
'2019.2.4',
'2019.2.3',
'2019.2.2',
'2019.2.1',
'2019.2.0',
'2018.3.5',
'2018.3.4',
'2018.3.3',
'2018.3.2',
'2018.3.1',
'2018.3.0',
'2017.7.8',
'2017.7.7',
'2017.7.6',
'2017.7.5',
'2017.7.4',
'2017.7.3',
'2017.7.2',
'2017.7.1',
'2017.7.0',
'2016.11.10',
'2016.11.9',
'2016.11.8',
'2016.11.7',
'2016.11.6',
'2016.11.5',
'2016.11.4',
'2016.11.3',
'2016.11.2',
'2016.11.1',
'2016.11.0',
]
%}
'{{ version }}':
skip_urltest: True
full_name: 'Salt Minion {{ version }}'
uninstaller: 'C:\salt\uninst.exe'
uninstall_flags: '/S'
use_scheduler: True
{% endfor %}