Declare variables for freeipa_setup.sh script
These were assumed to be always passed, but as the script gets different cases (novajoin vs pre-defined service principals) we might get "unbound variable" errors when used outside of CI. Exporting these variables beforehand prevents that. Change-Id: I195321354df167c09cfc87c5b9f86c6dc5026d75
This commit is contained in:
parent
666af8ba41
commit
8424e2140d
|
@ -22,6 +22,15 @@ elif [ -f "/tmp/freeipa-setup.env" ]; then
|
||||||
source /tmp/freeipa-setup.env
|
source /tmp/freeipa-setup.env
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
export Hostname=${Hostname:-""}
|
||||||
|
export FreeIPAIP=${FreeIPAIP:-""}
|
||||||
|
export DirectoryManagerPassword=${DirectoryManagerPassword:-""}
|
||||||
|
export AdminPassword=${AdminPassword:-""}
|
||||||
|
export UndercloudFQDN=${UndercloudFQDN:-""}
|
||||||
|
export HostsSecret=${HostsSecret:-""}
|
||||||
|
export ProvisioningCIDR=${ProvisioningCIDR:-""}
|
||||||
|
export UsingNovajoin=${UsingNovajoin:-""}
|
||||||
|
|
||||||
if [ -n "$ProvisioningCIDR" ]; then
|
if [ -n "$ProvisioningCIDR" ]; then
|
||||||
# Add address to provisioning network interface
|
# Add address to provisioning network interface
|
||||||
ip link set dev eth1 up
|
ip link set dev eth1 up
|
||||||
|
|
Loading…
Reference in New Issue