Skip to content
This repository has been archived by the owner on Nov 1, 2018. It is now read-only.

Commit

Permalink
#1 add renci config
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-conway committed Feb 29, 2016
1 parent 41ded72 commit c91854e
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
10 changes: 10 additions & 0 deletions ansible/generate_configs_renci.sh
Original file line number Diff line number Diff line change
@@ -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/ansible/DE/ansible
INVENTORY=/home/ansible/ansible-vars/inventory
GROUPVARS=/home/ansible/ansible-vars/group_vars.yaml

for SERVICE in $SERVICES; do
ansible-playbook --flush-cache $ANSIBLE_HOME/local-service-config.yaml -i $INVENTORY -e @$GROUPVARS --extra-vars="service=$SERVICE"
done
1 change: 1 addition & 0 deletions ansible/local-service-config.retry
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
localhost
2 changes: 1 addition & 1 deletion ansible/local-service-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@
tasks:
- debug: msg="writing {{ config_template }} to {{ de_config_dir }}/{{ config_name }}"
- name: write local service configs
local_action: template src="{{ config_template }}" dest="{{ de_config_dir }}/{{ config_name }}" mode=0644
local_action: template src="{{config_template}}" dest="{{de_config_dir}}/{{config_name}}" mode=0644

0 comments on commit c91854e

Please sign in to comment.