Commit 33ad11aa authored by Dimitris Aragiorgis's avatar Dimitris Aragiorgis

deploy: Fix vncauthproxy

Add users files.

TODO: use vncauthproxy-passwd with correct conf settings
Signed-off-by: default avatarDimitris Aragiorgis <dimara@grnet.gr>
parent a27ca21f
......@@ -3,6 +3,7 @@ synnefo_user = synnefo
synnefo_db_passwd = example_passw0rd
synnefo_rapi_passwd = example_rapi_passw0rd
synnefo_rabbitmq_passwd = example_rabbitmq_passw0rd
synnefo_vnc_passwd = example_vnc_passw0rd
user_email = user@synnefo.org
user_name = John
user_lastname = Doe
......
......@@ -83,8 +83,8 @@ UI_SYSTEM_IMAGES_OWNERS = {
CYCLADES_BASE_URL = 'https://%CYCLADES%/cyclades'
CYCLADES_VNCAUTHPROXY_OPTS = {
'auth_user': 'synnefo',
'auth_password': 'synnefo_vnc_pass',
'auth_user': '%SYNNEFO_USER%',
'auth_password': '%SYNNEFO_VNC_PASSWD%',
}
CYCLADES_STATS_SECRET_KEY = "random"
synnefo:$6$npt9oPbaFOyDUz35$0H9wubK8//Grd.kFylAG3VdZLSOWu2LD7Kam4NdTJ2i5O2SlV4OQPCxClQ6.yLf9RFLwkt7ZhMGA1jrKEhzR5.
......@@ -623,6 +623,7 @@ def main():
else:
fabcommand(args, env, args.actions)
return 0
if __name__ == "__main__":
sys.exit(main())
......@@ -944,7 +944,8 @@ snf-manage network-create --subnet6={0} \
"HOST": self.env.env.cyclades.ip,
"domain": self.env.env.domain,
"CYCLADES_SERVICE_TOKEN": self.env.service_token,
"STATS": self.env.env.stats.fqdn
"STATS": self.env.env.stats.fqdn,
"SYNNEFO_VNC_PASSWD": self.env.env.synnefo_vnc_passwd,
}
return [
("/etc/synnefo/cyclades.conf", r1, {})
......@@ -976,6 +977,20 @@ class VNC(SynnefoComponent):
"snf-vncauthproxy"
]
def prepare(self):
return ["mkdir /var/lib/vncauthproxy"]
def configure(self):
return [
("/var/lib/vncauthproxy/users", {}, {})
]
def initialize(self):
user = self.env.env.synnefo_user
passwd = self.env.env.synnefo_vnc_passwd
#TODO: run vncauthproxy-passwd
return []
def restart(self):
return [
"/etc/init.d/vncauthproxy restart"
......
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