From f1ba8648cf61ca07fc348fde4a4120875aab6552 Mon Sep 17 00:00:00 2001 From: don sizemore Date: Fri, 26 Feb 2016 13:57:21 -0500 Subject: [PATCH] #1 silly script to generate service properties using local-services-cfg --- ansible/generate_configs.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 ansible/generate_configs.sh diff --git a/ansible/generate_configs.sh b/ansible/generate_configs.sh new file mode 100755 index 000000000..b1e3c738e --- /dev/null +++ b/ansible/generate_configs.sh @@ -0,0 +1,10 @@ +#!/bin/sh -e + +SERVICES="anon-files apps clockwork condor-log-monitor data-info dewey exim-sender infosquito info-typer iplant-email iplant-groups jexevents jex kifshare metadata monkey notificationagent saved-searches terrain tree-urls user-preferences user-sessions" +ANSIBLE_HOME=/home/hamilton/DE/ansible +INVENTORY=/home/hamilton/inventories/odum-test +GROUPVARS=/home/hamilton/group_vars/odum + +for SERVICE in $SERVICES; do + ansible-playbook $ANSIBLE_HOME/local-service-config.yaml -i $INVENTORY -e @$GROUPVARS --extra-vars="service=$SERVICE" +done