changed how supernote works, already deprecated though and will remove in next commit
This commit is contained in:
1 parent
bbcd097ccf
commit
bb95f050a1
2 files changed
+12
-17
No files matched your search
@@ -25,6 +25,9 @@
|
||||
- name: Deploy Supernote Private Cloud
|
||||
vars:
|
||||
supernote_dir: /opt/supernote
|
||||
# Branch of AtlasHorizon/compose to deploy from; override with
|
||||
# `-e compose_branch=main` to test unreleased changes.
|
||||
compose_branch: stable
|
||||
block:
|
||||
- name: Create data persistence directories
|
||||
ansible.builtin.file:
|
||||
@@ -44,8 +47,9 @@
|
||||
|
||||
# Downloaded fresh each run so upstream schema changes apply on
|
||||
# reruns, per Supernote's own upgrade instructions. docker-compose.yml
|
||||
# is vendored instead (see templates/supernote-docker-compose.yml) -
|
||||
# the upstream file is missing the initdb mounts this playbook needs.
|
||||
# comes from AtlasHorizon/compose instead (see supernote/README.md
|
||||
# there) - the upstream file is missing the initdb mounts this
|
||||
# playbook needs.
|
||||
- name: Download Supernote database init script
|
||||
ansible.builtin.get_url:
|
||||
url: https://supernote-private-cloud.supernote.com/cloud/supernotedb.sql
|
||||
@@ -53,11 +57,14 @@
|
||||
mode: "0644"
|
||||
force: yes
|
||||
|
||||
- name: Deploy docker-compose.yml
|
||||
ansible.builtin.copy:
|
||||
src: templates/supernote-docker-compose.yml
|
||||
# force: true so changes in the compose repo are picked up on reruns;
|
||||
# it only reports changed when the content differs.
|
||||
- name: Download docker-compose.yml
|
||||
ansible.builtin.get_url:
|
||||
url: "https://git.atlashorizon.net/AtlasHorizon/compose/raw/branch/{{ compose_branch }}/supernote/docker-compose.yml"
|
||||
dest: "{{ supernote_dir }}/docker-compose.yml"
|
||||
mode: "0644"
|
||||
force: true
|
||||
|
||||
# Pulled from Infisical, not generated/persisted to disk. Run this
|
||||
# playbook as `infisical run -- ansible-playbook -i inventory ...`
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
# Managed by Ansible (grist.yml). Vendored here since grist-core has no
|
||||
# docker-compose.yml at its repo root (see docker-compose-examples/ upstream).
|
||||
services:
|
||||
grist:
|
||||
image: gristlabs/grist:latest
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "8484:8484"
|
||||
volumes:
|
||||
- ./persist:/persist
|
||||
env_file:
|
||||
- .env
|
||||
Reference in new issue
Block a user