ansible: split `hgweb-mirrors` into regional subgroups (Bug 1548302)
authorConnor Sheehan <sheehan@mozilla.com>
Mon, 13 May 2019 17:46:28 -0400
changeset 7017 0bf07df77731eb2bae96f871c7093453f7fdf285
parent 7016 cbfd7f665c0fa1e474b9590b1c64c7feeb94fc25
child 7018 64b81e9c817b57426440c8670e511ae62e951355
push id3492
push usercosheehan@mozilla.com
push dateTue, 14 May 2019 14:31:56 +0000
treeherderversion-control-tools@663cd30b7a27 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1548302
ansible: split `hgweb-mirrors` into regional subgroups (Bug 1548302) Previously we had a single group with comments denoting the different regions. Now we can reference hosts in the individual regions by their hostgroup. This will allow us to use Ansible to run commands on machines in various AWS regions with ease.
ansible/hosts
--- a/ansible/hosts
+++ b/ansible/hosts
@@ -2,29 +2,32 @@
 hgweb[1:4].dmz.mdc1.mozilla.com ansible_become=yes
 
 [hgssh-prod]
 hgssh[1:3].dmz.mdc1.mozilla.com ansible_become=yes
 
 [hgssh-prod-master]
 hgssh1.dmz.mdc1.mozilla.com ansible_become=yes
 
-[hgweb-mirrors]
-# us-west-2
+[ci-uw2]
 10.191.5.126 ansible_sudo=yes ansible_become=yes
 10.191.5.137 ansible_sudo=yes ansible_become=yes
 
-# us-west-1
+[ci-uw1]
 10.191.11.157 ansible_sudo=yes ansible_become=yes
 10.191.11.121 ansible_sudo=yes ansible_become=yes
 
-# us-east-1
+[ci-ue1]
 10.191.12.152 ansible_sudo=yes ansible_become=yes
 10.191.12.125 ansible_sudo=yes ansible_become=yes
 
+[hgweb-mirrors:children]
+ci-uw1
+ci-uw2
+ci-ue1
 
 [hgmo:children]
 hgssh-prod
 hgweb-prod
 hgweb-mirrors
 bootstrap
 
 [reviewbot]