Commit 70e4d577 authored by Dimitris Aragiorgis's avatar Dimitris Aragiorgis Committed by Christos Stavrakakis

deploy: Install ExtStorage scripts

Clone extstorage repo to /usr/share/ganeti/extstorage.
and add ext_vlmc flavor_storage.
Signed-off-by: default avatarDimitris Aragiorgis <dimara@grnet.gr>
parent c17df384
......@@ -32,7 +32,7 @@ pithos_dir = /srv/pithos
flavor_cpu = 1,2,4,8
flavor_ram = 128,256,512,1024,2048,4096,8192
flavor_disk = 2,5,10,20,40,60,80,100
flavor_storage = file
flavor_storage = file,ext_vlmc
vm_public_bridge = br0
vm_private_bridge = prv0
......
......@@ -32,7 +32,7 @@ pithos_dir = /srv/pithos
flavor_cpu = 1,2,4,8
flavor_ram = 128,256,512,1024,2048,4096,8192
flavor_disk = 2,5,10,20,40,60,80,100
flavor_storage = file
flavor_storage = file,ext_vlmc
vm_public_bridge = br0
vm_private_bridge = prv0
......
......@@ -1176,3 +1176,15 @@ class ArchipGaneti(SynnefoComponent):
REQUIRED_PACKAGES = [
"archipelago-ganeti",
]
class ExtStorage(SynnefoComponent):
def prepare(self):
return ["mkdir -p /usr/share/ganeti/"]
def initialize(self):
url = "http://code.grnet.gr/git/extstorage"
extdir = "/usr/share/ganeti/extstorage"
return [
"git clone %s %s" % (url, extdir)
]
......@@ -56,12 +56,12 @@ ROLES = {
"ganeti": [
HW, SSH, DNS, DDNS, APT, Mount,
Ganeti, PithosBackend, Archip, ArchipGaneti,
Image, Network, GTools, GanetiCollectd
Image, Network, GTools, GanetiCollectd, ExtStorage,
],
"master": [
HW, SSH, DNS, DDNS, APT, Mount,
Ganeti, Master, PithosBackend, Archip, ArchipGaneti,
Image, Network, GTools, GanetiCollectd
Image, Network, GTools, GanetiCollectd, ExtStorage,
],
}
......
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