diff options
author | 2019-05-08 15:08:41 -0400 | |
---|---|---|
committer | 2019-05-08 15:08:41 -0400 | |
commit | 91735f200ed89b790251d9a83df24995b28aa079 (patch) | |
tree | 6da4a12e6c07834ce5b8cfc2051a0f29b865686e /docker_upgrade_scripts/fabfile.py | |
parent | 95cd08dcb2874f5cce4f97167e0ff4f219ae8087 (diff) |
Removed unused stuff from demo (master)
Change-Id: Ia869971690e31e8a81ea0bb5c1707785f7ab819e
Issue-ID: INT-1073
Signed-off-by: Marco Platania <platania@research.att.com>
Diffstat (limited to 'docker_upgrade_scripts/fabfile.py')
-rwxr-xr-x | docker_upgrade_scripts/fabfile.py | 32 |
1 files changed, 0 insertions, 32 deletions
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') - |