Statistics
| Branch: | Tag: | Revision:

root / snf-deploy / conf / vcluster.conf @ f7d0f914

History | View | Annotate | Download (1.6 kB)

1 ad76b118 Dimitris Aragiorgis
[image]
2 ad76b118 Dimitris Aragiorgis
# url to get the base image. This is a debian base image with preconfigured
3 ad76b118 Dimitris Aragiorgis
# root password and installed rsa/dsa keys. Plus a NetworkManager hook that
4 ad76b118 Dimitris Aragiorgis
# changes the VM's name based on info provided by dhcp response.
5 ad76b118 Dimitris Aragiorgis
# To create it run: snf-deploy image
6 ad76b118 Dimitris Aragiorgis
squeeze_image_url = https://pithos.okeanos.grnet.gr/public/832xv
7 ad76b118 Dimitris Aragiorgis
ubuntu_image_url =
8 ad76b118 Dimitris Aragiorgis
9 ad76b118 Dimitris Aragiorgis
# in order ganeti nodes to support lvm storage (plain disk template) it will
10 ad76b118 Dimitris Aragiorgis
# be needed an extra disk to eventually be able to create a VG. Ganeti requires
11 ad76b118 Dimitris Aragiorgis
# this VG to be at least of 30GB. To this end in order the virtual nodes to have
12 ad76b118 Dimitris Aragiorgis
# this extra disk an image should be created locally. There are three options:
13 ad76b118 Dimitris Aragiorgis
# 1. not create an extra disk (only file storage template will be supported)
14 ad76b118 Dimitris Aragiorgis
# 2. create an image of 30G in image dir (default /var/lib/snf-deploy/images)
15 ad76b118 Dimitris Aragiorgis
#    using dd if=/dev/zero of=squeeze.disk1
16 ad76b118 Dimitris Aragiorgis
# 3. create this image in a local VG using lvgreate -L30G squeeze.disk1 lvg
17 ad76b118 Dimitris Aragiorgis
#    and create a symbolic link in /var/lib/snf-deploy/images
18 ad76b118 Dimitris Aragiorgis
19 ad76b118 Dimitris Aragiorgis
# Whether to create an extra disk or not
20 ad76b118 Dimitris Aragiorgis
create_extra_disk = False
21 ad76b118 Dimitris Aragiorgis
# lvg is the name of the local VG if any
22 ad76b118 Dimitris Aragiorgis
lvg =
23 ad76b118 Dimitris Aragiorgis
24 ad76b118 Dimitris Aragiorgis
# OS istalled in the virtual cluster
25 ad76b118 Dimitris Aragiorgis
os = squeeze
26 ad76b118 Dimitris Aragiorgis
27 ad76b118 Dimitris Aragiorgis
28 ad76b118 Dimitris Aragiorgis
[cluster]
29 ad76b118 Dimitris Aragiorgis
# the bridge to use for the virtual cluster
30 ad76b118 Dimitris Aragiorgis
# on this bridge we will launch a dnsnmasq and provide
31 ad76b118 Dimitris Aragiorgis
# fqdns needed to the cluster.
32 ad76b118 Dimitris Aragiorgis
# In ordrer cluster nodes to have internet access, host must do NAT.
33 ad76b118 Dimitris Aragiorgis
# iptables -t nat -A POSTROUTING -s 192.0.0.0/28 -j MASQUERADE
34 ad76b118 Dimitris Aragiorgis
# ip addr add 192.0.0.14/28 dev auto_nodes_br
35 ad76b118 Dimitris Aragiorgis
# To create run: snf-deploy cluster
36 ad76b118 Dimitris Aragiorgis
bridge = auto_nodes_br
37 4baa4696 Dimitris Aragiorgis
38 4baa4696 Dimitris Aragiorgis
[network]
39 4baa4696 Dimitris Aragiorgis
subnet = 192.168.0.0/28
40 4baa4696 Dimitris Aragiorgis
gateway = 192.168.0.14