aboutsummaryrefslogtreecommitdiffstats
path: root/opnfv/installer_adapters/InstallerHandler.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/InstallerHandler.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/InstallerHandler.py')
-rw-r--r--opnfv/installer_adapters/InstallerHandler.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/opnfv/installer_adapters/InstallerHandler.py b/opnfv/installer_adapters/InstallerHandler.py
index dc5bdb9..6c43a46 100644
--- a/opnfv/installer_adapters/InstallerHandler.py
+++ b/opnfv/installer_adapters/InstallerHandler.py
@@ -1,5 +1,5 @@
##############################################################################
-# Copyright (c) 2015 Ericsson AB and others.
+# Copyright (c) 2017 Ericsson AB and others.
# Author: Jose Lausuch (jose.lausuch@ericsson.com)
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Apache License, Version 2.0
@@ -23,18 +23,22 @@ class InstallerHandler:
installer,
installer_ip,
installer_user,
- installer_pwd=None):
+ installer_pwd=None,
+ private_key_file=None):
self.installer = installer.lower()
self.installer_ip = installer_ip
self.installer_user = installer_user
self.installer_pwd = installer_pwd
+ self.private_key_file = private_key_file
if self.installer == INSTALLERS[0]:
self.InstallerAdapter = FuelAdapter(self.installer_ip,
self.installer_user,
self.installer_pwd)
elif self.installer == INSTALLERS[1]:
- self.InstallerAdapter = ApexAdapter(self.installer_ip)
+ self.InstallerAdapter = ApexAdapter(installer_ip=self.installer_ip,
+ user=self.installer_user,
+ pkey_file=self.private_key_file)
elif self.installer == INSTALLERS[2]:
self.InstallerAdapter = CompassAdapter(self.installer_ip)
elif self.installer == INSTALLERS[3]: