summaryrefslogtreecommitdiffstats
path: root/modules/opnfv/installer_adapters/apex/example.py
blob: c8c4737278a4a9765bd3d3cd72c65354b4ceb56f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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')