diff options
author | 2019-05-08 13:49:41 -0400 | |
---|---|---|
committer | 2019-05-08 13:49:41 -0400 | |
commit | f4db92493f1bd94184d23e1771a8f600202391a6 (patch) | |
tree | 7dc7ae2f56a9a7b49800154b7b1e4e0a2450afcd /docker_upgrade_scripts/fabfile.py | |
parent | 3e4c0d93034e07a93d881ef13db3e5f2e2f9f3ba (diff) |
Remove unused stuff from demo repository
Change-Id: Icc2b2b74a3db494ecc9cf596eb70eea15a447af9
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') - |