Commit 9eb64f50 authored by Dimitris Aragiorgis's avatar Dimitris Aragiorgis

deploy/ci: Change conf files for easy setup

Update conf files to support three basic setups:

 synnefo: Used by ci in order to install the whole stack in one node
with --autoconf

 qa: Three node setup with one development node and two ganeti nodes

 vc: Four node setup to test synnefo deployment on multinode virtual
cluster

So, we now have:

 snf-deploy synnefo --setup synnefo --autoconf

 snf-deploy ganeti-qa --setup qa

 snf-deploy vcluster --setup vc
Signed-off-by: default avatarDimitris Aragiorgis <dimara@grnet.gr>
parent 794a4d7f
......@@ -2,18 +2,28 @@
vg = ganeti
vg_size = 10G
[ganeti1]
name = ganeti1
[ganeti]
name = ganeti
domain = synnefo.live
ip = 10.0.2.1
ip = 10.1.2.101
netdev = eth0
# whether to add synnefo related packages
synnefo = True
[ganeti2]
name = master
[ganeti-qa]
name = ganeti
domain = qa.synnefo.live
ip = 10.1.2.100
ip = 10.1.2.101
netdev = eth2
# whether to add synnefo related packages
synnefo =
[ganeti-vc]
name = ganeti
domain = vcluster.synnefo.live
ip = 10.1.2.101
netdev = eth0
# whether to add synnefo related packages
synnefo = True
......@@ -34,25 +34,65 @@ vm_private_iface = eth2
# The extra disk for the Ganeti VG needed for plain and drbd disk templates
extra_disk = /dev/vdb
[node1]
name = auto1
###################
# synnefo/ci node #
###################
[node]
name = node
ip = 192.0.2.1
extra_disk =
[node2]
############
# qa nodes #
############
[dev]
name = qa2
ip = 10.1.2.2
ip = 10.1.2.10
public_iface = eth1
domain = qa.synnefo.live
[node3]
name = qa3
ip = 10.1.2.3
[qa1]
name = qa1
ip = 10.1.2.11
public_iface = eth1
domain = qa.synnefo.live
[node4]
name = qa4
ip = 10.1.2.4
[qa2]
name = qa2
ip = 10.1.2.12
public_iface = eth1
domain = qa.synnefo.live
############
# vc nodes #
############
[vc1]
mac = 52:54:00:00:00:01
name = vc1
ip = 10.1.2.1
public_iface = eth0
domain = vcluster.synnefo.live
[vc2]
mac = 52:54:00:00:00:02
name = vc2
ip = 10.1.2.2
public_iface = eth0
domain = vcluster.synnefo.live
[vc3]
mac = 52:54:00:00:00:03
name = vc3
ip = 10.1.2.3
public_iface = eth0
domain = vcluster.synnefo.live
[vc4]
mac = 52:54:00:00:00:04
name = vc4
ip = 10.1.2.4
public_iface = eth0
domain = vcluster.synnefo.live
[DEFAULT]
ns = node1
client = node1
router = node1
nfs = node1
db = node1
mq = node1
astakos = node1
compute = node1
cyclades = node1
pithos = node1
cms = node1
stats = node1
dev = node1
ns = node
client = node
router = node
nfs = node
db = node
mq = node
astakos = node
cyclades = node
pithos = node
cms = node
stats = node
dev = node
#################################################
# snf-deploy synnefo --setup synnefo --autoconf #
#################################################
[synnefo]
clusters =
ganeti1
ganeti
[ganeti]
master = node
vmc =
node
###################################
# snf-deploy ganeti-qa --setup qa #
###################################
[qa]
ns = node2
client = node2
router = node3
nfs = node2
dev = node2
ns = dev
client = dev
router = qa1
nfs = dev
dev = dev
clusters =
ganeti2
ganeti-qa
[ganeti1]
master = node1
[ganeti-qa]
master = qa1
vmc =
node1
qa1
qa2
##################################
# snf-deploy vcluster --setup vc #
##################################
[vc]
ns = vc1
client = vc4
router = vc1
nfs = vc1
db = vc2
mq = vc3
astakos = vc1
cyclades = vc2
pithos = vc3
cms = vc4
stats = vc1
dev = vc1
clusters =
ganeti-vc
[ganeti2]
master = node3
[ganeti-vc]
master = vc1
vmc =
node3
node4
vc1
vc2
vc3
vc4
......@@ -8,7 +8,7 @@ disk_size = 10G
# iptables -t nat -A POSTROUTING -s 192.0.0.0/28 -j MASQUERADE
# ip addr add 192.0.0.14/28 dev auto_nodes_br
# To create run: snf-deploy cluster
bridge = auto_nodes_br
bridge = vcluster_bridge
subnet = 192.168.0.0/28
gateway = 192.168.0.14
subnet = 10.1.2.0/24
gateway = 10.1.2.254
......@@ -2,18 +2,28 @@
vg = ganeti
vg_size = 10G
[ganeti1]
name = ganeti1
[ganeti]
name = ganeti
domain = synnefo.live
ip = 10.0.2.1
ip = 10.1.2.101
netdev = eth0
# whether to add synnefo related packages
synnefo = True
[ganeti2]
name = master
[ganeti-qa]
name = ganeti
domain = qa.synnefo.live
ip = 10.1.2.100
ip = 10.1.2.101
netdev = eth2
# whether to add synnefo related packages
synnefo =
[ganeti-vc]
name = ganeti
domain = vcluster.synnefo.live
ip = 10.1.2.101
netdev = eth0
# whether to add synnefo related packages
synnefo = True
......@@ -34,25 +34,65 @@ vm_private_iface = eth2
# The extra disk for the Ganeti VG needed for plain and drbd disk templates
extra_disk = /dev/vdb
[node1]
name = auto1
###################
# synnefo/ci node #
###################
[node]
name = node
ip = 192.0.2.1
extra_disk =
[node2]
############
# qa nodes #
############
[dev]
name = qa2
ip = 10.1.2.2
ip = 10.1.2.10
public_iface = eth1
domain = qa.synnefo.live
[node3]
name = qa3
ip = 10.1.2.3
[qa1]
name = qa1
ip = 10.1.2.11
public_iface = eth1
domain = qa.synnefo.live
[node4]
name = qa4
ip = 10.1.2.4
[qa2]
name = qa2
ip = 10.1.2.12
public_iface = eth1
domain = qa.synnefo.live
############
# vc nodes #
############
[vc1]
mac = 52:54:00:00:00:01
name = vc1
ip = 10.1.2.1
public_iface = eth0
domain = vcluster.synnefo.live
[vc2]
mac = 52:54:00:00:00:02
name = vc2
ip = 10.1.2.2
public_iface = eth0
domain = vcluster.synnefo.live
[vc3]
mac = 52:54:00:00:00:03
name = vc3
ip = 10.1.2.3
public_iface = eth0
domain = vcluster.synnefo.live
[vc4]
mac = 52:54:00:00:00:04
name = vc4
ip = 10.1.2.4
public_iface = eth0
domain = vcluster.synnefo.live
[DEFAULT]
ns = node1
client = node1
router = node1
nfs = node1
db = node1
mq = node1
astakos = node1
compute = node1
cyclades = node1
pithos = node1
cms = node1
stats = node1
dev = node1
ns = node
client = node
router = node
nfs = node
db = node
mq = node
astakos = node
cyclades = node
pithos = node
cms = node
stats = node
dev = node
#################################################
# snf-deploy synnefo --setup synnefo --autoconf #
#################################################
[synnefo]
clusters =
ganeti1
ganeti
[ganeti]
master = node
vmc =
node
###################################
# snf-deploy ganeti-qa --setup qa #
###################################
[qa]
ns = node2
client = node2
router = node3
nfs = node2
dev = node2
ns = dev
client = dev
router = qa1
nfs = dev
dev = dev
clusters =
ganeti2
ganeti-qa
[ganeti1]
master = node1
[ganeti-qa]
master = qa1
vmc =
node1
qa1
qa2
##################################
# snf-deploy vcluster --setup vc #
##################################
[vc]
ns = vc1
client = vc4
router = vc1
nfs = vc1
db = vc2
mq = vc3
astakos = vc1
cyclades = vc2
pithos = vc3
cms = vc4
stats = vc1
dev = vc1
clusters =
ganeti-vc
[ganeti2]
master = node3
[ganeti-vc]
master = vc1
vmc =
node3
node4
vc1
vc2
vc3
vc4
......@@ -8,7 +8,7 @@ disk_size = 10G
# iptables -t nat -A POSTROUTING -s 192.0.0.0/28 -j MASQUERADE
# ip addr add 192.0.0.14/28 dev auto_nodes_br
# To create run: snf-deploy cluster
bridge = auto_nodes_br
bridge = vcluster_bridge
subnet = 192.168.0.0/28
gateway = 192.168.0.14
subnet = 10.1.2.0/24
gateway = 10.1.2.254
......@@ -33,8 +33,8 @@ BACKEND = "backend"
VALUE_OK = "ok"
STATUS_FILE = "snf_deploy_status"
DEFAULT_NODE = "node1"
DEFAULT_CLUSTER = "ganeti1"
DEFAULT_NODE = "node"
DEFAULT_CLUSTER = "ganeti"
DEFAULT_SETUP = "synnefo"
CERT_OVERRIDE = "cert_override.txt"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment