summaryrefslogtreecommitdiffstats
path: root/README.org
diff options
context:
space:
mode:
authorSacha Chua <sacha@sachachua.com>2022-10-11 12:19:46 -0400
committerSacha Chua <sacha@sachachua.com>2022-10-11 12:19:59 -0400
commit6d1743c83e239806b1b6fb635e184a59a5f28f5a (patch)
tree8e82342f150f4ec623b0ebd8291db1d88178d42c /README.org
parent1151e1fac5e7805e0cfeea89acc3b2efedb89940 (diff)
downloademacsconf-ansible-6d1743c83e239806b1b6fb635e184a59a5f28f5a.tar.xz
emacsconf-ansible-6d1743c83e239806b1b6fb635e184a59a5f28f5a.zip
Etherpad starting setup
Diffstat (limited to 'README.org')
-rw-r--r--README.org58
1 files changed, 45 insertions, 13 deletions
diff --git a/README.org b/README.org
index b49bd3f..0b3c622 100644
--- a/README.org
+++ b/README.org
@@ -1,23 +1,55 @@
This repository contains infrastructure-as-code ansible configurations
for various pieces of the EmacsConf infrastructure.
-To run the playbook:
-ansible-playbook -i inventory.yaml playbook.yaml
+* Front - publishing
+** Prod
+To run the playbook and publish the main schedule:
+ansible-playbook -i inventory.yaml prod-playbook.yaml
Update a specific talk's before/nav and the main schedule: (ex: wayland)
ansible-playbook playbook.yaml -e '{"slug": "wayland"}' -i inventory.yaml
+** Docker
+Creating:
+- ansible-playbook -i docker-inventory.yaml docker-playbook.yaml
-/etc/ansible/hosts:
+Reusing:
+- ansible-playbook -i docker-inventory.yaml docker-reuse-playbook.yaml
+With docker:
+https://stackoverflow.com/questions/24738264/how-to-test-ansible-playbook-using-docker
+* Pad
+** Docker
+Creating:
+ansible-playbook -i docker-inventory.yaml docker-playbook.yaml --tags pad
-#+begin_example
-[emacsconf-web]
-front0.emacsconf.org
-#+end_example
+Reusing an existing container:
+ansible-playbook -i docker-inventory.yaml docker-reuse-playbook.yaml --tags pad
-~/.ssh/config
+Connecting:
+docker exec -it emacsconf-pad /bin/bash
+
+
+file:/docker:emacsconf-pad:/home/etherpad/etherpad/
+
+Getting the API key
+
+#+NAME: pad-key
+#+begin_src sh
+docker exec emacsconf-pad cat /home/etherpad/etherpad/APIKEY.txt
+#+end_src
+
+#+RESULTS: pad-key
+:results:
+b7a15dc34cc7f6917cca6cd9a2b4b92145af7c7cd9b341af34869ab8cd3568be
+:end:
+
+#+begin_src sh :var padkey=pad-key
+echo curl "http://localhost:9001/api/1/createPad?apikey=$padkey&padID=emacsconf-2022"
+curl "http://localhost:9001/api/1/createPad?apikey=$padkey&padID=emacsconf-2022"
+#+end_src
+
+#+RESULTS:
+:results:
+curl http://localhost:9001/api/1/createPad?apikey=b7a15dc34cc7f6917cca6cd9a2b4b92145af7c7cd9b341af34869ab8cd3568be&padID=emacsconf-2022
+{"code":0,"message":"ok","data":null}
+:end:
-#+begin_example
-Host front0.emacsconf.org
- Hostname front0.emacsconf.org
- User orga
-#+end_example