Skip to content

Commit

Permalink
Merge pull request #155 from dosaboy/add-prodstack-profile
Browse files Browse the repository at this point in the history
Add prodstack6 profile
  • Loading branch information
nicolasbock authored Nov 17, 2023
2 parents 12fc900 + bb8fde8 commit 3a14396
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
3 changes: 2 additions & 1 deletion openstack/profiles/default
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ install_packages
[[ -z "$CIDR_EXT" ]] && export CIDR_EXT="10.5.0.0/16"
[[ -z "$FIP_RANGE" ]] && export FIP_RANGE="10.5.150.0:10.5.200.254"
[[ -z "$CIDR_PRIV" ]] && export CIDR_PRIV="192.168.21.0/24"
[[ -z "$UNDERCLOUD_NETWORK_NAME" ]] && export UNDERCLOUD_NETWORK_NAME="${OS_PROJECT_NAME}_admin_net"

NS_ARG=""
[ "`juju config neutron-api enable-ml2-dns`" = "true" ] && unset NAMESERVER || NS_ARG="-N $NAMESERVER"
Expand All @@ -34,7 +35,7 @@ if [ "$dvr_enabled" = "true" ] || $ovn_enabled; then
if ${BARE_METAL:-false}; then
echo "INFO: set 'juju config neutron-openvswitch data-port=...'"
else
./bin/add-data-ports.sh
./bin/add-data-ports.sh "" "$UNDERCLOUD_NETWORK_NAME"
fi
fi

Expand Down
15 changes: 15 additions & 0 deletions openstack/profiles/prodstack6
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/bash -ex

# stsstack overrides
[[ -z "$NAMESERVER" ]] && export NAMESERVER="91.189.91.131"
[[ -z "$SWIFT_IP" ]] && export SWIFT_IP="10.140.56.22"

# Set defaults, if not already set.
[[ -z "$GATEWAY" ]] && export GATEWAY="10.142.35.1"
[[ -z "$CIDR_EXT" ]] && export CIDR_EXT="10.142.35.0/24"
[[ -z "$FIP_RANGE" ]] && export FIP_RANGE="10.142.35.200:10.142.35.254"
[[ -z "$CIDR_PRIV" ]] && export CIDR_PRIV="192.168.21.0/24"

export UNDERCLOUD_NETWORK_NAME="$(sed -rn "s/.+OS_PROJECT_NAME=(.+)_project/net_\1/p" ~/novarc)"

./profiles/default $@

0 comments on commit 3a14396

Please sign in to comment.