summaryrefslogtreecommitdiffstats
path: root/tests/lib/installers/apex
blob: 45a5dcdccb3c01fdf40425142291839fa64a776f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash

function get_installer_ip {
    local instack_mac=$(sudo virsh domiflist instack | awk '/default/{print $5}')
    INSTALLER_IP=$(/usr/sbin/arp -e | grep ${instack_mac} | awk '{print $1}')
    die_if_not_set $LINENO INSTALLER_IP "No installer IP"
}

function installer_get_ssh_keys {
    sudo scp $ssh_opts root@"$INSTALLER_IP":/home/stack/.ssh/id_rsa instack_key
    sudo chown $(whoami):$(whoami) instack_key
    chmod 400 instack_key
    ssh_opts_cpu+=" -i instack_key"
}

function installer_apply_patches {
    # Noop
    return
}

function cleanup_installer_apex {
    # Noop
    return
}