diff options
author | Jenkins <jenkins@review.openstack.org> | 2017-01-18 23:59:19 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2017-01-18 23:59:19 +0000 |
commit | 227364a82f600b3ee25f73e38f42f4e83600541b (patch) | |
tree | c66b3c57792169fb7435ce9afbcda0f519a55773 | |
parent | cc04279f0e8e9b553082a41f5c23b8636734b2b6 (diff) | |
parent | 78215fae79fa7152012c116287cda9f9b2afa125 (diff) |
Merge "Add IP to provisioning interface for FreeIPA if requested"
-rw-r--r-- | ci/scripts/freeipa_setup.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ci/scripts/freeipa_setup.sh b/ci/scripts/freeipa_setup.sh index 6906a2dd..c072c744 100644 --- a/ci/scripts/freeipa_setup.sh +++ b/ci/scripts/freeipa_setup.sh @@ -8,6 +8,8 @@ # - AdminPassword # - UndercloudFQDN # - HostsSecret +# - ProvisioningCIDR: If set, it adds the given CIDR or IP to the +# provisioning interface (which is hardcoded to eth1) # set -eux @@ -17,6 +19,12 @@ elif [ -f "/tmp/freeipa-setup.env" ]; then source /tmp/freeipa-setup.env fi +if [ -n "$ProvisioningCIDR" ]; then + # Add address to provisioning network interface + ip link set dev eth1 up + ip addr add $ProvisioningCIDR dev eth1 +fi + # Set DNS servers echo "nameserver 8.8.8.8" >> /etc/resolv.conf echo "nameserver 8.8.4.4" >> /etc/resolv.conf |