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

Commit

Permalink
#27 switch to local config
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-conway committed Apr 19, 2016
1 parent e6199cb commit d2a082c
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions ansible/playbooks/local-services-cfg.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# Set de_config_dir to the local directory.
# Example: ansible-playbook -i inventories/production.cfg --extra-vars "de_config_dir=$(pwd)/foo playbook=playbooks/local-services-cfg.yml owner=$(whoami) group=staff de_env=production" --tags="service_config,logging_config" single-role.yaml

---
- hosts: localhost
sudo: false
Expand Down Expand Up @@ -95,36 +94,36 @@
- role: util-cfg-service
service_name_short: "{{templeton_periodic.service_name_short}}"
src: "templeton-periodic.yaml.j2"
dest: "{{service_conf_dir}}/templeton-periodic.yaml"
dest: "{{local_cfg_dest}}/templeton-periodic.yaml"

- role: util-cfg-service
service_name_short: "{{templeton_incremental.service_name_short}}"
src: "templeton-incremental.yaml.j2"
dest: "{{service_conf_dir}}/templeton-incremental.yaml"
dest: "{{local_cfg_dest}}/templeton-incremental.yaml"

- role: util-cfg-service
src: "ui/de-application.yaml.j2"
dest: "{{service_conf_dir}}/de-application.yaml"
dest: "{{local_cfg_dest}}/de-application.yaml"
service_name_short: "{{de.service_name_short}}"

- role: util-cfg-service
src: "ui/de.properties.j2"
dest: "{{service_conf_dir}}/de.properties"
dest: "{{local_cfg_dest}}/de.properties"
service_name_short: "{{de.service_name_short}}"

- role: util-cfg-service
src: "ui/nginx.conf.j2"
dest: "{{service_conf_dir}}/nginx/nginx.conf"
dest: "{{local_cfg_dest}}/nginx/nginx.conf"
service_name_short: "{{de.service_name_short}}"

- role: util-cfg-service
src: "docker-cleanup/docker-gc-exclude-containers.j2"
dest: "{{service_conf_dir}}/docker-gc-exclude-containers"
dest: "{{local_cfg_dest}}/docker-gc-exclude-containers"
service_name_short: "docker-gc"

- role: util-cfg-service
src: "docker-cleanup/docker-gc-exclude.j2"
dest: "{{service_conf_dir}}/docker-gc-exclude"
dest: "{{local_cfg_dest}}/docker-gc-exclude"
service_name_short: "docker-gc"

- role: util-cfg-service
Expand All @@ -134,4 +133,4 @@
- role: util-cfg-service
service_name_short: "{{permissions.service_name_short}}"
src: "permissions.yaml.j2"
dest: "{{service_conf_dir}}/permissions.yaml"
dest: "{{local_cfg_dest}}/permissions.yaml"

0 comments on commit d2a082c

Please sign in to comment.