diff options
Diffstat (limited to 'ansible/roles/trove-setup/tasks/lorry-controller-setup.yml')
-rw-r--r-- | ansible/roles/trove-setup/tasks/lorry-controller-setup.yml | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/ansible/roles/trove-setup/tasks/lorry-controller-setup.yml b/ansible/roles/trove-setup/tasks/lorry-controller-setup.yml index fd00ea3..4486884 100644 --- a/ansible/roles/trove-setup/tasks/lorry-controller-setup.yml +++ b/ansible/roles/trove-setup/tasks/lorry-controller-setup.yml @@ -10,6 +10,24 @@ shell: su git -c 'mktemp -d' register: lorry_controller_templates +- set_fact: + UPSTREAM_TROVE_STANZA: { + type: "trove", + trovehost: "{{ UPSTREAM_TROVE }}", + protocol: "{{ UPSTREAM_TROVE_PROTOCOL }}", + ls-interval: "4H", + interval: "2H", + prefixmap: { + baserock: "baserock", + delta: "delta" + }, + ignore: [ + "baserock/lorries" + ], + tarball: "always" + } + when: UPSTREAM_TROVE is defined + - name: Create the configuration files of lorry-controller using templates template: src=/usr/share/trove-setup/{{ item }} dest={{ lorry_controller_templates.stdout }}/{{ item }} owner=git group=git mode=0644 with_items: |