forked from metal3-io/metal3-dev-env
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun.sh
executable file
·40 lines (34 loc) · 1.1 KB
/
run.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/bin/bash
set -xe
METAL3_DIR="$(dirname "$(readlink -f "${0}")")/.."
ACTION="${ACTION:-""}"
# shellcheck disable=SC1090
# shellcheck disable=SC1091
source "${METAL3_DIR}/lib/logging.sh"
# shellcheck disable=SC1090
# shellcheck disable=SC1091
source "${METAL3_DIR}/lib/common.sh"
# shellcheck disable=SC1090
# shellcheck disable=SC1091
source "${METAL3_DIR}/lib/releases.sh"
# shellcheck disable=SC1090
# shellcheck disable=SC1091
source "${METAL3_DIR}/lib/network.sh"
# shellcheck disable=SC1090
# shellcheck disable=SC1091
source "${METAL3_DIR}/lib/images.sh"
# shellcheck disable=SC1090
# shellcheck disable=SC1091
source "${METAL3_DIR}/lib/ironic_tls_setup.sh"
# shellcheck disable=SC1090
# shellcheck disable=SC1091
source "${METAL3_DIR}/lib/ironic_basic_auth.sh"
# Disable SSH strong authentication
export ANSIBLE_HOST_KEY_CHECKING=False
# Ansible config file
export ANSIBLE_CONFIG=${METAL3_DIR}/ansible.cfg
ANSIBLE_FORCE_COLOR=true ansible-playbook \
-e "metal3_dir=$SCRIPTDIR" \
-e "v1aX_integration_test_action=${ACTION}" \
-i "${METAL3_DIR}/tests/inventory.ini" \
-b -v "${METAL3_DIR}/tests/main.yml"