-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.sls
88 lines (71 loc) · 1.47 KB
/
init.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
xen-linux-system:
pkg:
- latest
xen-tools:
pkg:
- latest
ganeti-instance-debootstrap:
pkg:
- latest
ganeti2:
pkg:
- latest
drbd8-utils:
pkg:
- latest
/usr/local/bin/newVM:
file.managed:
- source: salt://ganeti/latest/newVM.sh
- user: root
- group: root
- mode: 774
/srv/ganeti/vmcreation:
file.directory:
- user: root
- group: root
- mode: 755
- makedirs: True
/srv/ganeti/vminitlog:
file.directory:
- user: root
- group: root
- mode: 755
- makedirs: True
/usr/share/ganeti/os:
file.recurse:
- source: salt://ganeti/latest/os
- user: root
- group: root
- file_mode: '0755'
- makedirs: true
/etc/ganeti/instance-debootstrap:
file.recurse:
- source: salt://ganeti/latest/instance-debootstrap
- user: root
- group: root
- makedirs: true
/boot/initrd-3-xenU:
file.symlink:
- target: /boot/initrd.img-3.16.0-4-amd64
/boot/vmlinuz-3-xenU:
file.symlink:
- target: /boot/vmlinuz-3.16.0-4-amd64
grub-pc:
pkg:
- installed
- require:
- pkg: xen-linux-system
dpkg-divert --divert /etc/grub.d/08_linux_xen --rename /etc/grub.d/20_linux_xen:
cmd:
- wait
- watch:
- pkg: grub-pc
update-grub:
cmd:
- wait
- watch:
- cmd: dpkg-divert --divert /etc/grub.d/08_linux_xen --rename /etc/grub.d/20_linux_xen
#https://github.com/valentin2105/Ganeti.git:
# git.latest:
# - rev: master
# - target: /srv/salt/ganeti/latest