c07d95e1af
- Remove globals.yml and passwords.yml files. - The gate was still using these files from the kolla directory. Modified the gate to prevent using these files from the kolla directory. - Modified the deploy_aio.sh file to populate passwords in passwords.yml using kolla-ansible. Change-Id: I1ed7849d54cab6d5a9217dced73327ea13f06636 Closes-Bug: #1653035
29 lines
634 B
Bash
Executable File
29 lines
634 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -o xtrace
|
|
set -o errexit
|
|
|
|
export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
|
|
|
|
export KOLLA_BASE=$1
|
|
export KOLLA_TYPE=$2
|
|
export KOLLA_ANSIBLE_DIR=$(mktemp -d)
|
|
|
|
cat > /tmp/clonemap <<EOF
|
|
clonemap:
|
|
- name: openstack/kolla-ansible
|
|
dest: ${KOLLA_ANSIBLE_DIR}
|
|
EOF
|
|
|
|
/usr/zuul-env/bin/zuul-cloner -m /tmp/clonemap --workspace "$(pwd)" \
|
|
--cache-dir /opt/git git://git.openstack.org \
|
|
openstack/kolla-ansible
|
|
|
|
pushd "${KOLLA_ANSIBLE_DIR}"
|
|
# Copy configs
|
|
sudo cp -a etc/kolla /etc/
|
|
# Generate passwords
|
|
sudo tools/generate_passwords.py
|
|
./tools/deploy_aio.sh "$KOLLA_BASE" "$KOLLA_TYPE"
|
|
popd
|