3 INSTALLER_TYPE=${INSTALLER_TYPE:-local}
4 ssh_opts="-o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no"
6 function is_installer_supported {
8 [[ -f $TOP_DIR/lib/installers/$installer ]]
11 function is_installer {
13 [[ $installer == $INSTALLER_TYPE ]]
16 function validate_installer_lib {
18 xtrace=$(set +o | grep xtrace)
20 for p in COMPUTE_USER ssh_opts_cpu
22 die_if_not_set $LINENO $p \
23 "Parameter $p for $INSTALLER_TYPE is missing."
25 for f in setup_installer get_compute_ip_from_hostname cleanup_installer
27 die_if_not_defined $LINENO $f \
28 "Mandatory function ${f}() for $INSTALLER_TYPE is missing."
33 if ! is_installer_supported $INSTALLER_TYPE; then
34 die $LINENO "INSTALLER_TYPE=$INSTALLER_TYPE is not supported."
37 source $TOP_DIR/lib/installers/$INSTALLER_TYPE
39 validate_installer_lib