Statistics
| Branch: | Tag: | Revision:

root / snf-deploy / conf / vcluster.conf @ 952a28c0

History | View | Annotate | Download (1.6 kB)

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