aboutsummaryrefslogtreecommitdiffstats
path: root/ci/scripts
diff options
context:
space:
mode:
authorJuan Antonio Osorio Robles <jaosorior@redhat.com>2017-02-15 07:50:32 +0200
committerJuan Antonio Osorio Robles <jaosorior@redhat.com>2017-02-15 10:40:13 +0200
commit8424e2140d25fa7f47b9e8f2be03145f7a26c4a9 (patch)
treef4d87150d48b71105ba69bc9e7f8461b22a3ee62 /ci/scripts
parent666af8ba41e0470211f921898e97ba092a8a1800 (diff)
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
Diffstat (limited to 'ci/scripts')
-rw-r--r--ci/scripts/freeipa_setup.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/ci/scripts/freeipa_setup.sh b/ci/scripts/freeipa_setup.sh
index c9a5cba..a4a3d66 100644
--- a/ci/scripts/freeipa_setup.sh
+++ b/ci/scripts/freeipa_setup.sh
@@ -22,6 +22,15 @@ elif [ -f "/tmp/freeipa-setup.env" ]; then
source /tmp/freeipa-setup.env
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
# Add address to provisioning network interface
ip link set dev eth1 up