From 1f6bc72cd6df04ee28e17e17c6e07571ec53ff4b Mon Sep 17 00:00:00 2001 From: "jose.lausuch" Date: Thu, 17 Nov 2016 23:03:44 +0100 Subject: Create Apex Adapter JIRA: RELENG-152 This implementation will help collect information from the deployment. For example: - overcloudrc file - files from the undercloud - files from the overcloud nodes (i.e. logs) Change-Id: I293837695a4b82e57b9fac6027fe8197d68b1f14 Signed-off-by: jose.lausuch --- opnfv/installer_adapters/apex/example.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 opnfv/installer_adapters/apex/example.py (limited to 'opnfv/installer_adapters/apex/example.py') diff --git a/opnfv/installer_adapters/apex/example.py b/opnfv/installer_adapters/apex/example.py new file mode 100644 index 0000000..c8c4737 --- /dev/null +++ b/opnfv/installer_adapters/apex/example.py @@ -0,0 +1,16 @@ +# This is an example of usage of this Tool +# Author: Jose Lausuch (jose.lausuch@ericsson.com) + +import opnfv.installer_adapters.InstallerHandler as ins_handler + +apex_handler = ins_handler.InstallerHandler(installer='apex', + installer_ip='192.168.122.135', + installer_user='stack', + private_key_file='/root/.ssh/id_rsa') +apex_handler.get_file_from_installer( + '/home/stack/overcloudrc', './overcloudrc') + +print("\n%s\n" % apex_handler.get_deployment_info()) + +apex_handler.get_file_from_controller( + '/etc/resolv.conf', './resolv.conf') -- cgit 1.2.3-korg