correct usage of common functions
[doctor.git] / tests / lib / installers / apex
1 #!/bin/bash
2
3 function get_installer_ip {
4     local instack_mac=$(sudo virsh domiflist instack | awk '/default/{print $5}')
5     INSTALLER_IP=$(/usr/sbin/arp -e | grep ${instack_mac} | awk '{print $1}')
6     die_if_not_set $LINENO INSTALLER_IP "No installer IP"
7 }
8
9 function installer_get_ssh_keys {
10     sudo scp $ssh_opts root@"$INSTALLER_IP":/home/stack/.ssh/id_rsa instack_key
11     sudo chown $(whoami):$(whoami) instack_key
12     chmod 400 instack_key
13     ssh_opts_cpu+=" -i instack_key"
14 }
15
16 function installer_apply_patches {
17     # Noop
18     return
19 }
20
21 function cleanup_installer_apex {
22     # Noop
23     return
24 }