Commit b461bf9f authored by Dimitris Aragiorgis's avatar Dimitris Aragiorgis

deploy: Add vnc role

snf-vncauthproxy can now run on a separate node.
Signed-off-by: default avatarDimitris Aragiorgis <dimara@grnet.gr>
parent e4d531a9
......@@ -15,6 +15,7 @@ mq = node
astakos = node
cyclades = node
admin = node
vnc = node
pithos = node
cms = node
stats = node
......
......@@ -15,6 +15,7 @@ mq = node
astakos = node
cyclades = node
admin = node
vnc = node
pithos = node
cms = node
stats = node
......
# set uid/gid
#CHUID="vncauthproxy:vncauthproxy"
# Arguments passed to vncauthproxy
#DAEMON_OPTS="--pid-file=$PIDFILE"
DAEMON_OPTS="--pid-file=$PIDFILE --enable-ssl --listen-address=%VNC% --proxy-listen-address=%VNC%"
......@@ -1590,6 +1590,18 @@ class VNC(base.Component):
"snf-vncauthproxy"
]
alias = constants.VNC
service = constants.VNC
def required_components(self):
return [
HW, SSH, DNS, APT,
]
@update_admin
def admin_pre(self):
self.NS.update_ns()
@base.run_cmds
def prepare(self):
user = config.synnefo_user
......@@ -1604,6 +1616,14 @@ class VNC(base.Component):
"vncauthproxy-passwd -p %s %s %s" % (passwd, users_file, user)
]
def _configure(self):
r1 = {
"vnc": self.ctx.vnc.cname,
}
return [
("/etc/default/vncauthproxy", r1, {})
]
@base.run_cmds
def restart(self):
return [
......
......@@ -20,6 +20,7 @@ MQ = "mq"
ASTAKOS = "astakos"
CYCLADES = "cyclades"
ADMIN = "admin"
VNC = "vnc"
PITHOS = "pithos"
CLIENT = "client"
ROUTER = "router"
......
......@@ -67,6 +67,7 @@ class Context(object):
self.astakos = self._get(constants.ASTAKOS)
self.cyclades = self._get(constants.CYCLADES)
self.admin = self._get(constants.ADMIN)
self.vnc = self._get(constants.VNC)
self.pithos = self._get(constants.PITHOS)
self.stats = self._get(constants.STATS)
self.cms = self._get(constants.CMS)
......
......@@ -107,6 +107,7 @@ def setup_synnefo():
setup_role(constants.ASTAKOS)
setup_role(constants.PITHOS)
setup_role(constants.VNC)
setup_role(constants.CYCLADES)
setup_role(constants.ADMIN)
setup_role(constants.CMS)
......
......@@ -26,6 +26,7 @@ _ROLE_MAP = {
constants.ASTAKOS: components.Astakos,
constants.CYCLADES: components.Cyclades,
constants.ADMIN: components.Admin,
constants.VNC: components.VNC,
constants.PITHOS: components.Pithos,
constants.CMS: components.CMS,
constants.STATS: components.Stats,
......
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