0392a10a |
# lib/infra
#
# Functions to install infrastructure projects needed by other projects
# early in the cycle. We need this so we can do things like gate on
# requirements as a global list
# Dependencies: |
6a5aa7c6 |
#
# - ``functions`` file |
0392a10a |
# ``stack.sh`` calls the entry points in this order:
# |
6a5aa7c6 |
# - install_infra |
0392a10a |
# Save trace setting
XTRACE=$(set +o | grep xtrace)
set +o xtrace
# Defaults
# --------
PBR_DIR=$DEST/pbr
REQUIREMENTS_DIR=$DEST/requirements
# Entry Points
# ------------
# install_infra() - Collect source and prepare |
aee18c74 |
function install_infra { |
0392a10a |
# bring down global requirements
git_clone $REQUIREMENTS_REPO $REQUIREMENTS_DIR $REQUIREMENTS_BRANCH
# Install pbr
git_clone $PBR_REPO $PBR_DIR $PBR_BRANCH |
099e5e3f |
setup_install $PBR_DIR |
0392a10a |
}
# Restore xtrace
$XTRACE
|
6a5aa7c6 |
# Tell emacs to use shell-script-mode
## Local variables:
## mode: shell-script
## End: |