blob: 0b3c6227743b5cd5942d78b2ee9cdd6d05babb24 (
plain) (
tree)
|
|
This repository contains infrastructure-as-code ansible configurations
for various pieces of the EmacsConf infrastructure.
* 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
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
Reusing an existing container:
ansible-playbook -i docker-inventory.yaml docker-reuse-playbook.yaml --tags pad
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:
|