aboutsummaryrefslogtreecommitdiffstats
path: root/opnfv/installer_adapters/apex/example.py
diff options
context:
space:
mode:
authorjose.lausuch <jose.lausuch@ericsson.com>2016-11-17 23:03:44 +0100
committerJose Lausuch <jose.lausuch@ericsson.com>2017-01-30 08:56:48 +0000
commit1f6bc72cd6df04ee28e17e17c6e07571ec53ff4b (patch)
tree71337809e155f27c5618e10a8189aa9e4eaac673 /opnfv/installer_adapters/apex/example.py
parent3e3c39c6ce40f5848959364f3800a579f52e2cfc (diff)
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 <jose.lausuch@ericsson.com>
Diffstat (limited to 'opnfv/installer_adapters/apex/example.py')
-rw-r--r--opnfv/installer_adapters/apex/example.py16
1 files changed, 16 insertions, 0 deletions
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')