diff options
Diffstat (limited to '')
-rw-r--r-- | README.org | 19 |
1 files changed, 12 insertions, 7 deletions
@@ -3,34 +3,38 @@ for various pieces of the EmacsConf infrastructure. ansible-galaxy collection install community.general +Production: needs prod-vars.yml, see prod-vars.yml.sample + * Front - publishing ** Prod To run the playbook and publish the main schedule: -ansible-playbook -i inventory.yaml prod-playbook.yaml +ansible-playbook -i inventory.yml prod-playbook.yml Update a specific talk's before/nav and the main schedule: (ex: wayland) -ansible-playbook playbook.yaml -e '{"slug": "wayland"}' -i inventory.yaml +ansible-playbook playbook.yml -e '{"slug": "wayland"}' -i inventory.yml ** Docker Creating: -- ansible-playbook -i docker-inventory.yaml docker-playbook.yaml +- ansible-playbook -i docker-inventory.yml docker-playbook.yml Reusing: -- ansible-playbook -i docker-inventory.yaml docker-reuse-playbook.yaml +- ansible-playbook -i docker-inventory.yml docker-reuse-playbook.yml With docker: https://stackoverflow.com/questions/24738264/how-to-test-ansible-playbook-using-docker * Pad +** Production +ansible-playbook -i inventory.yml prod-playbook.yml --tags pad ** Docker Creating: -ansible-playbook -i docker-inventory.yaml docker-playbook.yaml --tags pad +ansible-playbook -i docker-inventory.yml docker-playbook.yml --tags pad Reusing an existing container: -ansible-playbook -i docker-inventory.yaml docker-reuse-playbook.yaml --tags pad +ansible-playbook -i docker-inventory.yml docker-reuse-playbook.yml --tags pad Connecting: docker exec -it emacsconf-pad /bin/bash Creating pads -ansible-playbook -i docker-inventory.yaml docker-reuse-playbook.yaml --tags create-pads +ansible-playbook -i docker-inventory.yml docker-reuse-playbook.yml --tags create-pads file:/docker:emacsconf-pad:/home/etherpad/etherpad/ @@ -46,6 +50,7 @@ docker exec emacsconf-pad cat /home/etherpad/etherpad/APIKEY.txt 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" |