mirror of
https://bitbucket.org/atlassian/dc-deployments-automation.git
synced 2025-12-13 16:33:08 -06:00
DCD-386: Cleanups and clarifications.
This commit is contained in:
@@ -14,4 +14,5 @@ source $ENV_FILE
|
|||||||
set +a
|
set +a
|
||||||
|
|
||||||
# Use Ansible from virtualenv if provided
|
# Use Ansible from virtualenv if provided
|
||||||
pipenv run ansible-playbook -v -i $INV $PLAYBOOK 2>&1 | tee --append $LOG_FILE
|
pipenv run \
|
||||||
|
ansible-playbook -v -i $INV $PLAYBOOK 2>&1 | tee --append $LOG_FILE
|
||||||
|
|||||||
@@ -4,12 +4,14 @@ set -e
|
|||||||
|
|
||||||
# The Amazon Linux 2 Ansible package is 2.4, which has issue
|
# The Amazon Linux 2 Ansible package is 2.4, which has issue
|
||||||
# interacting with RDS, so use pipenv to install a known-good version.
|
# interacting with RDS, so use pipenv to install a known-good version.
|
||||||
|
# Another alternative here would be nix, however that has issues
|
||||||
|
# installing as root, and can be slow in practice.
|
||||||
|
|
||||||
# Luckily AmzLnx2 and Ubuntu use the same package name. This may need
|
# Luckily AmazonLinux2 and Ubuntu use the same package name for
|
||||||
# some logic if other distros are added. Note: Parsing /etc/os-release
|
# pip. This may need some logic if other distros are added. Note:
|
||||||
# is probably a good starting point for that.
|
# Parsing /etc/os-release is probably a good starting point for that.
|
||||||
./bin/pacapt install python-pip
|
./bin/pacapt install python-pip
|
||||||
|
|
||||||
|
# See Pipfile and Pipfile.lock.
|
||||||
pip install pipenv
|
pip install pipenv
|
||||||
|
|
||||||
pipenv sync
|
pipenv sync
|
||||||
|
|||||||
@@ -2,11 +2,12 @@
|
|||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
# Use Ansible from virtualenv if provided
|
# Install dev packages from Pipfile.loc if necessary.
|
||||||
pipenv sync --dev
|
pipenv sync --dev
|
||||||
|
|
||||||
for role in `find roles/ -name molecule | sort`; do
|
for role in `find roles/ -name molecule | sort`; do
|
||||||
pushd `dirname $role`
|
pushd `dirname $role`
|
||||||
pipenv run molecule test --all
|
pipenv run \
|
||||||
|
molecule test --all
|
||||||
popd
|
popd
|
||||||
done
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user