Both sides previous revision Previous revision Next revision | Previous revision |
ansible [2020/07/12 16:32] – andi | ansible [2022/12/27 20:34] (current) – kunsi |
---|
<code> | <code> |
git clone git@git.c3voc.de:cm | git clone git@git.c3voc.de:cm |
| cd ansible |
vim README.md | vim README.md |
</code> | </code> |
| |
**Public version of this repository:** https://github.com/voc/cm/ | **Public version of this repository:** [[https://github.com/voc/cm/tree/master/ansible#readme|https://github.com/voc/cm/ansible/]] |
| |
| <panel type="danger" title="Outdated">This page is outdated. As of 2022-08-01, c3voc uses bundlewrap to deploy the room setups. Please follow the [[https://github.com/voc/cm/blob/master/bundlewrap/README.md|README inside the git repo]] to get started, or ask in #voc-lounge on hackint for support. The documentation below is only needed if you need to deploy one of the servers in a colo.</panel> |
| |
== README.md | == README.md |
* make sure you have two network interfaces configured with names ''pbl'' (public) and ''int'' (internal) | * make sure you have two network interfaces configured with names ''pbl'' (public) and ''int'' (internal) |
* run ansible to deploy config | * run ansible to deploy config |
| |
| |
==== monitoring.lan.c3voc.de | ==== monitoring.lan.c3voc.de |
* Change ''nginx'' config on all relays: ''<nowiki>--tags nginx,config</nowiki>'' | * Change ''nginx'' config on all relays: ''<nowiki>--tags nginx,config</nowiki>'' |
* Deploy only streaming website: ''<nowiki>--tags deploy_website</nowiki>'' | * Deploy only streaming website: ''<nowiki>--tags deploy_website</nowiki>'' |
* e.g. | * e.g. `./ansible-playbook-keepass --tags deploy_website -i event loadbalancers.yml` |
./ansible-playbook-keepass --tags deploy_website -i event loadbalancers.yml | |
| |
* Deploy encoder setting for a conference | * Deploy encoder setting for a conference |
* edit group_vars/all and group_vars/saal* | * edit group_vars/all and group_vars/saal* |
* `./ansible-playbook-keepass -i inventory/event -u voc --become --become-method=sudo --limit encoder1.lan.c3voc.de --tags encodermode site.yml` | * `./ansible-playbook-keepass -i inventory/event --limit encoder1.lan.c3voc.de --tags encodermode site.yml` |
* or `./ansible-playbook-keepass -i inventory/event -u voc --become --become-method=sudo --limit encoder1.lan.c3voc.de --tags voctomix site.yml` | * or `./ansible-playbook-keepass -i inventory/event --limit encoder1.lan.c3voc.de --tags voctomix site.yml` |
* or `./ansible-playbook-keepass -i inventory/event -u voc --become --become-method=sudo -l saal5 --tags voctomix site.yml` | * or `./ansible-playbook-keepass -i inventory/event -l saal5 --tags voctomix site.yml` |
| |
* Debug without rerunning working tasks | * Debug without rerunning working tasks |
* ```KEEPASS="${KEEPASS}" KEEPASS_PW="${KEEPASS_PW}" python2 `which ansible-playbook` -i inventory/event -u voc --become --become-method=sudo -l saal5 --tags voctomix --start-at-task="encoder : create recording script" encoder.yml``` | * ```KEEPASS="${KEEPASS}" KEEPASS_PW="${KEEPASS_PW}" python3 `which ansible-playbook` -i inventory/event -l saal5 --tags voctomix --start-at-task="encoder : create recording script" encoder.yml``` |
| |
| |