Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revisionBoth sides next revision
ansible [2019/10/19 10:21] sophieansible [2022/09/04 20:15] kunsi
Line 5: Line 5:
 <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 README.md in the git repository to get started, or ask in #voc-lounge on hackint for support. This documentation will get adjusted soon.</panel> 
  
 == README.md == README.md
Line 24: Line 28:
  
  
-  ansible-playbook -i event -l mixers site.yml --syntax-check+  ansible-playbook -i inventory/event -l mixers site.yml --syntax-check
  
 Basic ''ansible'' call to deploy new config to a specific host. Basic ''ansible'' call to deploy new config to a specific host.
  
-  ./ansible-playbook-keepass -u root -i event -l 192.168.122.1 site.yml+  ./ansible-playbook-keepass -u root -i inventory/event -l 192.168.122.1 site.yml
  
 Basic ''ansible'' call to deploy new config to a set of hosts on an event. Basic ''ansible'' call to deploy new config to a set of hosts on an event.
  
-  ./ansible-playbook-keepass -u voc --sudo -i event -l saal1 site.yml+  ./ansible-playbook-keepass -u voc --become --become-method=sudo -i inventory/event -l saal1 site.yml
      
      
Line 55: Line 59:
 * 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
Line 94: Line 99:
   * 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 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 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 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 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```
  
  
Line 194: Line 198:
 === Other === Other
  
-   ./ansible-playbook-keepass -i event  -u voc --become --become-method=sudo  --tags thumbnail_downloader loadbalancers.yml+
  • ansible.txt
  • Last modified: 2022/12/27 20:34
  • by kunsi