From f4db92493f1bd94184d23e1771a8f600202391a6 Mon Sep 17 00:00:00 2001 From: Marco Platania Date: Wed, 8 May 2019 13:49:41 -0400 Subject: Remove unused stuff from demo repository Change-Id: Icc2b2b74a3db494ecc9cf596eb70eea15a447af9 Issue-ID: INT-1073 Signed-off-by: Marco Platania --- docker_upgrade_scripts/fabfile.py | 32 -------------------------------- 1 file changed, 32 deletions(-) delete mode 100755 docker_upgrade_scripts/fabfile.py (limited to 'docker_upgrade_scripts/fabfile.py') diff --git a/docker_upgrade_scripts/fabfile.py b/docker_upgrade_scripts/fabfile.py deleted file mode 100755 index f4c5726c..00000000 --- a/docker_upgrade_scripts/fabfile.py +++ /dev/null @@ -1,32 +0,0 @@ -from fabric.api import * -from fabric.context_managers import * - -def uptime(): - res = run('cat /proc/uptime') - print res - -def host_type(): - run('uname -s') - -def upgrade_docker(server_name, my_env): - server_name=server_name.split("-")[1] - if server_name in "message-router": - execute_file = "/opt/mr_vm_init.sh" - elif server_name in "dcae-controller": - execute_file = "/opt/dcae2_vm_init.sh" - elif server_name in "multiserv-server": - execute_file = "/opt/multiserv_all_serv.sh" - elif server_name in "dns": - execute_file = None - else: - execute_file = "/opt/" + server_name + "_vm_init.sh" - print "Executing file %s" % execute_file - if execute_file: - with settings( warn_only=True, key_filename=my_env['key_filename'], user=my_env['user']): - sudo(execute_file) - -def health_checks_robot(my_env): - with settings( warn_only=True, key_filename=my_env['key_filename'], user=my_env['user']): - with cd('/opt'): - sudo('./ete.sh health') - -- cgit 1.2.3-korg