Move env-setup to /scripts and add test script

Created and moved scripts into a scripts folder to keep things tidy.

Added a basic test script which invokes env-setup.sh, loads the
Ansible environment, and then initiates the test playbook.
This commit is contained in:
Julia Kreger 2015-04-16 15:55:57 -04:00
parent f18c26a9b3
commit 7615939bf1
2 changed files with 17 additions and 0 deletions

17
scripts/test-bifrost.sh Executable file
View File

@ -0,0 +1,17 @@
#!/bin/bash
set -eux
set -o pipefail
SCRIPT_HOME=$(dirname $0)
BIFROST_HOME=$SCRIPT_HOME/..
# Install Ansible
$SCRIPT_HOME/env-setup.sh
# Source Ansible
source /opt/stack/ansible/hacking/env-setup
# Change working directory
cd $BIFROST_HOME/playbooks
# Execute test playbook
ansible-playbook -vvvv -i inventory/localhost test-bifrost.yaml