From 3620ae5886a74799704f979b8613059eed318ea0 Mon Sep 17 00:00:00 2001 From: Monty Taylor Date: Fri, 10 Apr 2020 18:50:56 -0500 Subject: [PATCH] Install ep_headings module We need to install the ep_headings plugin, which we were doing before. We could also do this by building a custom image, but for now just bind-mount it in. Change-Id: I95f7c0dff4f1de8709a1e5e32eb818ef2852a654 --- playbooks/roles/etherpad/tasks/main.yaml | 16 +++++++++++++++- .../etherpad/templates/docker-compose.yaml.j2 | 1 + 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/playbooks/roles/etherpad/tasks/main.yaml b/playbooks/roles/etherpad/tasks/main.yaml index 782fd6eae4..84e1975d80 100644 --- a/playbooks/roles/etherpad/tasks/main.yaml +++ b/playbooks/roles/etherpad/tasks/main.yaml @@ -76,12 +76,26 @@ src: settings.json.j2 dest: /etc/etherpad/settings.json -- name: Install docker-compose +- name: Install docker-compose and npm package: name: - docker-compose + - npm state: present +- name: Install ep_headings plugin + shell: + cmd: npm install ep_headings + chdir: /etc/etherpad + +- name: Touch ep_initialize file + file: + path: /etc/etherpad/node_modules/ep_headings/.ep_initialized + # 5001 is the etherpad user in the container + owner: 5001 + group: 5001 + state: touch + - name: Run docker-compose pull shell: cmd: docker-compose pull diff --git a/playbooks/roles/etherpad/templates/docker-compose.yaml.j2 b/playbooks/roles/etherpad/templates/docker-compose.yaml.j2 index b7bcad9226..c1609e45a5 100644 --- a/playbooks/roles/etherpad/templates/docker-compose.yaml.j2 +++ b/playbooks/roles/etherpad/templates/docker-compose.yaml.j2 @@ -23,3 +23,4 @@ services: NODE_ENV: production volumes: - /etc/etherpad/settings.json:/opt/etherpad-lite/settings.json + - /etc/etherpad/node_modules/ep_headings:/opt/etherpad-lite/node_modules/ep_headings