From c149adc9b21558344826fac84948e53f0d7d00da Mon Sep 17 00:00:00 2001 From: Ralph Bean Date: Thu, 7 May 2015 00:54:54 +0000 Subject: [PATCH] Break the mirrormanager nodes out into sub groups. --- inventory/inventory | 22 ++++++++++++++++++++-- playbooks/groups/mirrormanager.yml | 10 +++++----- 2 files changed, 25 insertions(+), 7 deletions(-) diff --git a/inventory/inventory b/inventory/inventory index 056b776181..419904a200 100644 --- a/inventory/inventory +++ b/inventory/inventory @@ -363,17 +363,35 @@ mirrorlist-phx2.phx2.fedoraproject.org [mirrorlist2-stg] mirrorlist-phx2.stg.phx2.fedoraproject.org -[mm] +[mm-frontend] mm-frontend01.phx2.fedoraproject.org + +[mm-backend] mm-backend01.phx2.fedoraproject.org + +[mm-crawler] mm-crawler01.phx2.fedoraproject.org mm-crawler02.phx2.fedoraproject.org -[mm-stg] +[mm-frontend-stg] mm-frontend01.stg.phx2.fedoraproject.org + +[mm-backend-stg] mm-backend01.stg.phx2.fedoraproject.org + +[mm-crawler-stg] mm-crawler01.stg.phx2.fedoraproject.org +[mm:children] +mm-frontend +mm-backend +mm-crawler + +[mm-stg:children] +mm-frontend-stg +mm-backend-stg +mm-crawler-stg + [other] people03.fedoraproject.org diff --git a/playbooks/groups/mirrormanager.yml b/playbooks/groups/mirrormanager.yml index aedf55fb55..82be700ae9 100644 --- a/playbooks/groups/mirrormanager.yml +++ b/playbooks/groups/mirrormanager.yml @@ -1,5 +1,5 @@ - name: make the servers - hosts: mm:mm-stg + hosts: mm;mm-stg user: root gather_facts: False @@ -15,7 +15,7 @@ - include: "{{ handlers }}/restart_services.yml" - name: make the boxe be real for real - hosts: mm:mm-stg + hosts: mm;mm-stg user: root gather_facts: True @@ -44,7 +44,7 @@ - include: "{{ handlers }}/restart_services.yml" - name: Deploy the backend - hosts: mm-backend01.phx2.fedoraproject.org:mm-backend01.stg.phx2.fedoraproject.org + hosts: mm-backend;mm-backend-stg user: root gather_facts: True @@ -60,7 +60,7 @@ - include: "{{ handlers }}/restart_services.yml" - name: Deploy the crawler - hosts: mm-crawler01.phx2.fedoraproject.org:mm-crawler01.stg.phx2.fedoraproject.org:mm-crawler02.phx2.fedoraproject.org + hosts: mm-crawler;mm-crawler-stg user: root gather_facts: True @@ -76,7 +76,7 @@ - include: "{{ handlers }}/restart_services.yml" - name: Deploy the frontend (web-app) - hosts: mm-frontend01.phx2.fedoraproject.org:mm-frontend01.stg.phx2.fedoraproject.org + hosts: mm-frontend;mm-frontend-stg user: root gather_facts: True