This repository has been archived by the owner on Jan 18, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
apt-common-pinning.sls
76 lines (65 loc) · 1.97 KB
/
apt-common-pinning.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
apt-show-versions: pkg.installed
pkg.upgrade:
module.run:
- refresh: True
- require:
- file: jessie.list
- file: stretch.list
- file: jenkins-debian-glue.list
# - file: experimental.list
# - file: unstable.list
- file: preferences
# system:
# pkg:
# - upgrade
# - refresh: True
# - prereq:
# # - file: sources.list
# # - file: jessie.list
# # - file: experimental.list
# - file: stretch.list
# - file: preferences
#sources.list:
# file.remove:
# - name: /etc/apt/sources.list
jessie.list:
file.managed:
- name: /etc/apt/sources.list.d/jessie.list
- source: salt://apt-common/jessie.list
- reload_modules: true
stretch.list:
file.managed:
- name: /etc/apt/sources.list.d/stretch.list
- source: salt://apt-common/stretch.list
- reload_modules: true
#experimental.list:
# file.managed:
# - name: /etc/apt/sources.list.d/experimental.list
# - source: salt://apt-common/experimental.list
# - reload_modules: true
#unstable.list:
# file.managed:
# - name: /etc/apt/sources.list.d/unstable.list
# - source: salt://apt-common/unstable.list
# - reload_modules: true
preferences:
file.managed:
- name: /etc/apt/preferences
- source: salt://apt-common/preferences
- reload_modules: true
jenkins-debian-glue.list:
file.managed:
- name: /etc/apt/sources.list.d/jenkins-debian-glue.list
- source: salt://apt-common/jenkins-debian-glue.list
- reload_modules: true
base:
pkgrepo.managed:
- humanname: saltstack
- name: deb http://repo.saltstack.com/apt/debian/8/amd64/latest jessie main
- file: /etc/apt/sources.list.d/salt.list
- key_url: salt://apt-common/SALTSTACK-GPG-KEY.pub
- require_in:
- pkg: salt-minion
pkg.latest:
- name: salt-minion
- refresh: True