From 7615939bf16c759725efc27cfaa9f91abfc9e5c4 Mon Sep 17 00:00:00 2001 From: Julia Kreger Date: Thu, 16 Apr 2015 15:55:57 -0400 Subject: [PATCH] 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. --- env-setup.sh => scripts/env-setup.sh | 0 scripts/test-bifrost.sh | 17 +++++++++++++++++ 2 files changed, 17 insertions(+) rename env-setup.sh => scripts/env-setup.sh (100%) create mode 100755 scripts/test-bifrost.sh diff --git a/env-setup.sh b/scripts/env-setup.sh similarity index 100% rename from env-setup.sh rename to scripts/env-setup.sh diff --git a/scripts/test-bifrost.sh b/scripts/test-bifrost.sh new file mode 100755 index 000000000..29110c532 --- /dev/null +++ b/scripts/test-bifrost.sh @@ -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