diff options
author | Christian Pointner <equinox@spreadspace.org> | 2020-06-30 16:30:57 +0200 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2020-06-30 16:30:57 +0200 |
commit | c633dbb33d1eec0dd8f4284456e0d574fb836eae (patch) | |
tree | 57e619725ac99364e74112fc401f98e4a919ca03 /roles/apps/etherpad-lite/tasks/main.yml | |
parent | apps/collabora/code: migrate to new standalone pod role (diff) |
apps/etherpad-lite: migrate to new standalone pod role
Diffstat (limited to 'roles/apps/etherpad-lite/tasks/main.yml')
-rw-r--r-- | roles/apps/etherpad-lite/tasks/main.yml | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/roles/apps/etherpad-lite/tasks/main.yml b/roles/apps/etherpad-lite/tasks/main.yml index 0beeb1e1..416ab7ff 100644 --- a/roles/apps/etherpad-lite/tasks/main.yml +++ b/roles/apps/etherpad-lite/tasks/main.yml @@ -92,24 +92,29 @@ owner: "{{ etherpad_lite_app_uid }}" group: "{{ etherpad_lite_app_gid }}" - -- name: generate pod manifests +- name: install pod manifest loop: "{{ etherpad_lite_instances | dict2items }}" loop_control: label: "{{ item.key }}" - template: - src: "pod-with-{{ item.value.database.type }}.yml.j2" - dest: "/etc/kubernetes/manifests/etherpad-lite-{{ item.key }}.yml" - mode: 0600 - + vars: + kubernetes_standalone_pod: + name: "etherpad-lite-{{ item.key }}" + spec: "{{ lookup('template', 'pod-spec-with-{{ item.value.database.type }}.yml.j2') }}" + mode: 0600 + config_hash_items: + - path: "{{ etherpad_lite_base_path }}/{{ item.key }}/config/settings.json" + properties: + - checksum + include_role: + name: kubernetes/standalone/pod - name: configure nginx vhost loop: "{{ etherpad_lite_instances | dict2items }}" - include_role: - name: nginx/vhost vars: nginx_vhost: name: "etherpad-lite-{{ item.key }}" content: "{{ lookup('template', 'nginx-vhost.conf.j2') }}" acme: true hostnames: "{{ item.value.hostnames }}" + include_role: + name: nginx/vhost |