Allow for dynamically scaling automation mesh in dev env

This commit is contained in:
Shane McDonald
2021-07-22 19:30:00 -04:00
committed by Alan Rominger
parent 9881bb72b8
commit 460c7c3379
14 changed files with 71 additions and 186 deletions

View File

@@ -1,10 +1,13 @@
---
- name: Create _sources directory
- name: Create _sources directories
file:
path: "{{ sources_dest }}/secrets"
path: "{{ sources_dest }}/{{ item }}"
state: 'directory'
mode: '0700'
loop:
- secrets
- receptor
- name: Detect secrets
stat:
@@ -82,8 +85,15 @@
dest: "{{ sources_dest }}/{{ compose_name }}"
mode: '0600'
- name: Render Docker-Compose (Receptor)
- name: Render Receptor Hop Config
template:
src: docker-receptor.yml.j2
dest: "{{ sources_dest }}/docker-receptor.yml"
src: "receptor-hop.conf.j2"
dest: "{{ sources_dest }}/receptor/receptor-hop.conf"
mode: '0600'
- name: Render Receptor Worker Config(s)
template:
src: "receptor-worker.conf.j2"
dest: "{{ sources_dest }}/receptor/receptor-worker-{{ item }}.conf"
mode: '0600'
with_sequence: start=1 end={{ execution_node_count }}