forked from jonlangemak/saltstack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
minioninstall.sls
50 lines (44 loc) · 901 Bytes
/
minioninstall.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
#Install docker
docker:
pkg:
- installed
service:
- running
- watch:
- file: /etc/sysconfig/docker
- enable: true
#Make the kubernetes binary directory
/opt/kubernetes:
file.directory:
- user: root
- group: root
- dir_mode: 755
- file_mode: 755
#Pull down kubernetes binaries
/opt/kubernetes/kube-proxy:
file:
- managed
- source: salt://kube_binaries/kube-proxy
- user: root
- group: root
- mode: 755
/opt/kubernetes/kubelet:
file:
- managed
- source: salt://kube_binaries/kubelet
- user: root
- group: root
- mode: 755
#Pull down Systemd Service definitions
/usr/lib/systemd/system/kube-proxy.service:
file:
- managed
- source: salt://systemd/kube-proxy.service
- user: root
- group: root
- mode: 755
#Start Kubernetes services
kube-proxy:
service:
- running
- enable: true