Skip to content

Instantly share code, notes, and snippets.

@HarryRybacki-zz
Last active January 28, 2020 18:59
Show Gist options
  • Save HarryRybacki-zz/6cf1e6bc32085dd358365f44267f7188 to your computer and use it in GitHub Desktop.
Save HarryRybacki-zz/6cf1e6bc32085dd358365f44267f7188 to your computer and use it in GitHub Desktop.
Deploy Over/Undercloud with FreeIPA using TripleO-Quickstart (OOOQ)
#!/bin/bash
set -ex
# Notes:
# - Ensure that you hand the virthsot from which you wish to deploy against
# as an argument during the script call.
# - This deployment will provision an additinoal node and configure it as
# a FreeIPA server prior to installing the undercloud.
VIRTHOST=$1
export WORKING_DIR=~/.quickstart-freeipa
if [ -z "$VIRTHOST" ]; then
echo "Please specify the virthost which you would like to deploy against."
exit 1
fi
# Clear old venv if it exists
rm -rf $WORKING_DIR
# Prepare tripleo-quickstart repo
mkdir $WORKING_DIR
pushd $WORKING_DIR
git clone https://github.com/openstack/tripleo-quickstart
# Deploy w/ quickstart
pushd tripleo-quickstart
bash quickstart.sh \
--bootstrap \
--ansible-debug \
--no-clone \
--playbook quickstart-extras.yml \
--working-dir $WORKING_DIR \
--release master \
--config $WORKING_DIR/config/general_config/ipa.yml \
--nodes $WORKING_DIR/config/nodes/1ctlr_1comp_1supp.yml \
--tags "all" \
$VIRTHOST
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment