rolling_update: fix wrong indent

Fixing: https://bugzilla.redhat.com/show_bug.cgi?id=1388295
Also add some notes in the README on how to run infrastructure
playbooks.

Signed-off-by: Sébastien Han <seb@redhat.com>
pull/1055/head
Sébastien Han 2016-10-25 10:28:53 +02:00 committed by Andrew Schoen
parent 77e428b182
commit b0989c700f
6 changed files with 133 additions and 118 deletions

13
.gitignore vendored
View File

@ -15,3 +15,16 @@ site.yml
site-docker.yml site-docker.yml
*.pyc *.pyc
*.sw? *.sw?
purge-cluster.yml
shrink-mon.yml
cluster-maintenance.yml
purge-docker-cluster.yml
shrink-osd.yml
cluster-os-migration.yml
purge-multisite.yml
switch-from-non-containerized-to-containerized-ceph-daemons.yml
localrepo-site.yml.sample
rgw-standalone.yml
take-over-existing-cluster.yml
osd-configure.yml
rolling_update.yml

View File

@ -3,3 +3,5 @@ Infrastructure playbooks
This directory contains a variety of playbooks that can be used independently of the Ceph roles we have. This directory contains a variety of playbooks that can be used independently of the Ceph roles we have.
They aim to perform infrastructure related tasks that would help use managing a Ceph cluster or performing certain operational tasks. They aim to perform infrastructure related tasks that would help use managing a Ceph cluster or performing certain operational tasks.
To use them, **you must move them to ceph-ansible's root directory**, then run using `ansible-playbook <playbook>`.

View File

@ -71,11 +71,11 @@
become: true become: true
tasks: tasks:
- include_vars: ../roles/ceph-common/defaults/main.yml - include_vars: roles/ceph-common/defaults/main.yml
- include_vars: ../roles/ceph-mds/defaults/main.yml - include_vars: roles/ceph-mds/defaults/main.yml
- include_vars: ../group_vars/all - include_vars: group_vars/all
failed_when: false failed_when: false
- include_vars: ../group_vars/mdss - include_vars: group_vars/mdss
failed_when: false failed_when: false
- name: stop ceph.target with systemd - name: stop ceph.target with systemd
@ -122,11 +122,11 @@
become: true become: true
tasks: tasks:
- include_vars: ../roles/ceph-common/defaults/main.yml - include_vars: roles/ceph-common/defaults/main.yml
- include_vars: ../roles/ceph-rgw/defaults/main.yml - include_vars: roles/ceph-rgw/defaults/main.yml
- include_vars: ../group_vars/all - include_vars: group_vars/all
failed_when: false failed_when: false
- include_vars: ../group_vars/rgws - include_vars: group_vars/rgws
failed_when: false failed_when: false
- name: stop ceph.target with systemd - name: stop ceph.target with systemd
@ -173,11 +173,11 @@
become: true become: true
tasks: tasks:
- include_vars: ../roles/ceph-common/defaults/main.yml - include_vars: roles/ceph-common/defaults/main.yml
- include_vars: ../roles/ceph-rbd-mirror/defaults/main.yml - include_vars: roles/ceph-rbd-mirror/defaults/main.yml
- include_vars: ../group_vars/all - include_vars: group_vars/all
failed_when: false failed_when: false
- include_vars: ../group_vars/rbd-mirrors - include_vars: group_vars/rbd-mirrors
failed_when: false failed_when: false
- name: stop ceph.target with systemd - name: stop ceph.target with systemd
@ -218,11 +218,11 @@
become: true become: true
tasks: tasks:
- include_vars: ../roles/ceph-common/defaults/main.yml - include_vars: roles/ceph-common/defaults/main.yml
- include_vars: ../roles/ceph-nfs/defaults/main.yml - include_vars: roles/ceph-nfs/defaults/main.yml
- include_vars: ../group_vars/all - include_vars: group_vars/all
failed_when: false failed_when: false
- include_vars: ../group_vars/nfss - include_vars: group_vars/nfss
failed_when: false failed_when: false
- name: stop ceph.target with systemd - name: stop ceph.target with systemd
@ -287,11 +287,11 @@
state: absent state: absent
tasks: tasks:
- include_vars: ../roles/ceph-common/defaults/main.yml - include_vars: roles/ceph-common/defaults/main.yml
- include_vars: ../roles/ceph-osd/defaults/main.yml - include_vars: roles/ceph-osd/defaults/main.yml
- include_vars: ../group_vars/all - include_vars: group_vars/all
failed_when: false failed_when: false
- include_vars: ../group_vars/osds - include_vars: group_vars/osds
failed_when: false failed_when: false
- name: check for a device list - name: check for a device list
@ -439,14 +439,14 @@
become: true become: true
tasks: tasks:
- include_vars: ../roles/ceph-common/defaults/main.yml - include_vars: roles/ceph-common/defaults/main.yml
- include_vars: ../roles/ceph-mon/defaults/main.yml - include_vars: roles/ceph-mon/defaults/main.yml
- include_vars: ../roles/ceph-restapi/defaults/main.yml - include_vars: roles/ceph-restapi/defaults/main.yml
- include_vars: ../group_vars/all - include_vars: group_vars/all
failed_when: false failed_when: false
- include_vars: ../group_vars/mons - include_vars: group_vars/mons
failed_when: false failed_when: false
- include_vars: ../group_vars/restapis - include_vars: group_vars/restapis
failed_when: false failed_when: false
- name: stop ceph.target with systemd - name: stop ceph.target with systemd
@ -658,22 +658,22 @@
gather_facts: false gather_facts: false
tasks: tasks:
- include_vars: ../roles/ceph-common/defaults/main.yml - include_vars: roles/ceph-common/defaults/main.yml
- include_vars: ../group_vars/all - include_vars: group_vars/all
failed_when: false failed_when: false
- include_vars: ../group_vars/mdss - include_vars: group_vars/mdss
failed_when: false failed_when: false
- include_vars: ../group_vars/rgws - include_vars: group_vars/rgws
failed_when: false failed_when: false
- include_vars: ../group_vars/rbd-mirrors - include_vars: group_vars/rbd-mirrors
failed_when: false failed_when: false
- include_vars: ../group_vars/nfss - include_vars: group_vars/nfss
failed_when: false failed_when: false
- include_vars: ../group_vars/osds - include_vars: group_vars/osds
failed_when: false failed_when: false
- include_vars: ../group_vars/mons - include_vars: group_vars/mons
failed_when: false failed_when: false
- include_vars: ../group_vars/restapis - include_vars: group_vars/restapis
failed_when: false failed_when: false
- name: purge fetch directory for localhost - name: purge fetch directory for localhost

View File

@ -55,11 +55,11 @@
become: true become: true
tasks: tasks:
- include_vars: ../roles/ceph-common/defaults/main.yml - include_vars: roles/ceph-common/defaults/main.yml
- include_vars: ../roles/ceph-mds/defaults/main.yml - include_vars: roles/ceph-mds/defaults/main.yml
- include_vars: ../group_vars/all - include_vars: group_vars/all
failed_when: false failed_when: false
- include_vars: ../group_vars/mdss - include_vars: group_vars/mdss
failed_when: false failed_when: false
- name: disable ceph mds service - name: disable ceph mds service
@ -101,11 +101,11 @@
become: true become: true
tasks: tasks:
- include_vars: ../roles/ceph-common/defaults/main.yml - include_vars: roles/ceph-common/defaults/main.yml
- include_vars: ../roles/ceph-rgw/defaults/main.yml - include_vars: roles/ceph-rgw/defaults/main.yml
- include_vars: ../group_vars/all - include_vars: group_vars/all
failed_when: false failed_when: false
- include_vars: ../group_vars/rgws - include_vars: group_vars/rgws
failed_when: false failed_when: false
- name: disable ceph rgw service - name: disable ceph rgw service
@ -147,11 +147,11 @@
become: true become: true
tasks: tasks:
- include_vars: ../roles/ceph-common/defaults/main.yml - include_vars: roles/ceph-common/defaults/main.yml
- include_vars: ../roles/ceph-rbd-mirror/defaults/main.yml - include_vars: roles/ceph-rbd-mirror/defaults/main.yml
- include_vars: ../group_vars/all - include_vars: group_vars/all
failed_when: false failed_when: false
- include_vars: ../group_vars/rbd-mirrors - include_vars: group_vars/rbd-mirrors
failed_when: false failed_when: false
- name: disable ceph rbd-mirror service - name: disable ceph rbd-mirror service
@ -193,11 +193,11 @@
become: true become: true
tasks: tasks:
- include_vars: ../roles/ceph-common/defaults/main.yml - include_vars: roles/ceph-common/defaults/main.yml
- include_vars: ../roles/ceph-nfs/defaults/main.yml - include_vars: roles/ceph-nfs/defaults/main.yml
- include_vars: ../group_vars/all - include_vars: group_vars/all
failed_when: false failed_when: false
- include_vars: ../group_vars/nfss - include_vars: group_vars/nfss
failed_when: false failed_when: false
- name: disable ceph nfs service - name: disable ceph nfs service
@ -248,11 +248,11 @@
become: true become: true
tasks: tasks:
- include_vars: ../roles/ceph-common/defaults/main.yml - include_vars: roles/ceph-common/defaults/main.yml
- include_vars: ../roles/ceph-osd/defaults/main.yml - include_vars: roles/ceph-osd/defaults/main.yml
- include_vars: ../group_vars/all - include_vars: group_vars/all
failed_when: false failed_when: false
- include_vars: ../group_vars/osds - include_vars: group_vars/osds
failed_when: false failed_when: false
- name: disable ceph osd service - name: disable ceph osd service
@ -343,14 +343,14 @@
become: true become: true
tasks: tasks:
- include_vars: ../roles/ceph-common/defaults/main.yml - include_vars: roles/ceph-common/defaults/main.yml
- include_vars: ../roles/ceph-mon/defaults/main.yml - include_vars: roles/ceph-mon/defaults/main.yml
- include_vars: ../roles/ceph-restapi/defaults/main.yml - include_vars: roles/ceph-restapi/defaults/main.yml
- include_vars: ../group_vars/all - include_vars: group_vars/all
failed_when: false failed_when: false
- include_vars: ../group_vars/mons - include_vars: group_vars/mons
failed_when: false failed_when: false
- include_vars: ../group_vars/restapis - include_vars: group_vars/restapis
failed_when: false failed_when: false
- name: disable ceph mon service - name: disable ceph mon service
@ -599,22 +599,22 @@
gather_facts: false gather_facts: false
tasks: tasks:
- include_vars: ../roles/ceph-common/defaults/main.yml - include_vars: roles/ceph-common/defaults/main.yml
- include_vars: ../group_vars/all - include_vars: group_vars/all
failed_when: false failed_when: false
- include_vars: ../group_vars/mdss - include_vars: group_vars/mdss
failed_when: false failed_when: false
- include_vars: ../group_vars/rgws - include_vars: group_vars/rgws
failed_when: false failed_when: false
- include_vars: ../group_vars/rbd-mirrors - include_vars: group_vars/rbd-mirrors
failed_when: false failed_when: false
- include_vars: ../group_vars/nfss - include_vars: group_vars/nfss
failed_when: false failed_when: false
- include_vars: ../group_vars/osds - include_vars: group_vars/osds
failed_when: false failed_when: false
- include_vars: ../group_vars/mons - include_vars: group_vars/mons
failed_when: false failed_when: false
- include_vars: ../group_vars/restapis - include_vars: group_vars/restapis
failed_when: false failed_when: false
- name: purge fetch directory for localhost - name: purge fetch directory for localhost

View File

@ -77,14 +77,14 @@
- ceph-mon - ceph-mon
post_tasks: post_tasks:
- include_vars: ../roles/ceph-common/defaults/main.yml - include_vars: roles/ceph-common/defaults/main.yml
- include_vars: ../roles/ceph-mon/defaults/main.yml - include_vars: roles/ceph-mon/defaults/main.yml
- include_vars: ../roles/ceph-restapi/defaults/main.yml - include_vars: roles/ceph-restapi/defaults/main.yml
- include_vars: ../group_vars/all - include_vars: group_vars/all
failed_when: false failed_when: false
- include_vars: ../group_vars/mons - include_vars: group_vars/mons
failed_when: false failed_when: false
- include_vars: ../group_vars/restapis - include_vars: group_vars/restapis
failed_when: false failed_when: false
- name: restart ceph mons with upstart - name: restart ceph mons with upstart
@ -136,11 +136,11 @@
become: True become: True
pre_tasks: pre_tasks:
- include_vars: ../roles/ceph-common/defaults/main.yml - include_vars: roles/ceph-common/defaults/main.yml
- include_vars: ../roles/ceph-osd/defaults/main.yml - include_vars: roles/ceph-osd/defaults/main.yml
- include_vars: ../group_vars/all - include_vars: group_vars/all
failed_when: false failed_when: false
- include_vars: ../group_vars/osds - include_vars: group_vars/osds
failed_when: false failed_when: false
- name: set osd flags - name: set osd flags
@ -156,11 +156,11 @@
- ceph-osd - ceph-osd
post_tasks: post_tasks:
- include_vars: ../roles/ceph-common/defaults/main.yml - include_vars: roles/ceph-common/defaults/main.yml
- include_vars: ../roles/ceph-osd/defaults/main.yml - include_vars: roles/ceph-osd/defaults/main.yml
- include_vars: ../group_vars/all - include_vars: group_vars/all
failed_when: false failed_when: false
- include_vars: ../group_vars/osds - include_vars: group_vars/osds
failed_when: false failed_when: false
- name: get osd numbers - name: get osd numbers
@ -222,11 +222,11 @@
- ceph-mds - ceph-mds
post_tasks: post_tasks:
- include_vars: ../roles/ceph-common/defaults/main.yml - include_vars: roles/ceph-common/defaults/main.yml
- include_vars: ../roles/ceph-mds/defaults/main.yml - include_vars: roles/ceph-mds/defaults/main.yml
- include_vars: ../group_vars/all - include_vars: group_vars/all
failed_when: false failed_when: false
- include_vars: ../group_vars/mdss - include_vars: group_vars/mdss
failed_when: false failed_when: false
- name: restart ceph mdss with upstart - name: restart ceph mdss with upstart
@ -267,11 +267,11 @@
- ceph-rgw - ceph-rgw
post_tasks: post_tasks:
- include_vars: ../roles/ceph-common/defaults/main.yml - include_vars: roles/ceph-common/defaults/main.yml
- include_vars: ../roles/ceph-rgw/defaults/main.yml - include_vars: roles/ceph-rgw/defaults/main.yml
- include_vars: ../group_vars/all - include_vars: group_vars/all
failed_when: false failed_when: false
- include_vars: ../group_vars/rgws - include_vars: group_vars/rgws
failed_when: false failed_when: false
- name: restart ceph rgws with systemd - name: restart ceph rgws with systemd

View File

@ -102,14 +102,14 @@
become: true become: true
tasks: tasks:
- include_vars: ../roles/ceph-common/defaults/main.yml - include_vars: roles/ceph-common/defaults/main.yml
- include_vars: ../roles/ceph-mon/defaults/main.yml - include_vars: roles/ceph-mon/defaults/main.yml
- include_vars: ../roles/ceph-restapi/defaults/main.yml - include_vars: roles/ceph-restapi/defaults/main.yml
- include_vars: ../group_vars/all - include_vars: group_vars/all
failed_when: false failed_when: false
- include_vars: ../group_vars/mons - include_vars: group_vars/mons
failed_when: false failed_when: false
- include_vars: ../group_vars/restapis - include_vars: group_vars/restapis
failed_when: false failed_when: false
- name: select a running monitor - name: select a running monitor
@ -192,11 +192,11 @@
become: true become: true
tasks: tasks:
- include_vars: ../roles/ceph-common/defaults/main.yml - include_vars: roles/ceph-common/defaults/main.yml
- include_vars: ../roles/ceph-osd/defaults/main.yml - include_vars: roles/ceph-osd/defaults/main.yml
- include_vars: ../group_vars/all - include_vars: group_vars/all
failed_when: false failed_when: false
- include_vars: ../group_vars/osds - include_vars: group_vars/osds
failed_when: false failed_when: false
- name: collect osd ids - name: collect osd ids
@ -297,11 +297,11 @@
become: true become: true
tasks: tasks:
- include_vars: ../roles/ceph-common/defaults/main.yml - include_vars: roles/ceph-common/defaults/main.yml
- include_vars: ../roles/ceph-mds/defaults/main.yml - include_vars: roles/ceph-mds/defaults/main.yml
- include_vars: ../group_vars/all - include_vars: group_vars/all
failed_when: false failed_when: false
- include_vars: ../group_vars/mdss - include_vars: group_vars/mdss
failed_when: false failed_when: false
- name: stop ceph mds service - name: stop ceph mds service
@ -357,11 +357,11 @@
become: true become: true
tasks: tasks:
- include_vars: ../roles/ceph-common/defaults/main.yml - include_vars: roles/ceph-common/defaults/main.yml
- include_vars: ../roles/ceph-rgw/defaults/main.yml - include_vars: roles/ceph-rgw/defaults/main.yml
- include_vars: ../group_vars/all - include_vars: group_vars/all
failed_when: false failed_when: false
- include_vars: ../group_vars/rgws - include_vars: group_vars/rgws
failed_when: false failed_when: false
- name: stop ceph rgw service - name: stop ceph rgw service
@ -418,11 +418,11 @@
become: true become: true
tasks: tasks:
- include_vars: ../roles/ceph-common/defaults/main.yml - include_vars: roles/ceph-common/defaults/main.yml
- include_vars: ../roles/ceph-rbd-mirror/defaults/main.yml - include_vars: roles/ceph-rbd-mirror/defaults/main.yml
- include_vars: ../group_vars/all - include_vars: group_vars/all
failed_when: false failed_when: false
- include_vars: ../group_vars/rbd-mirrors - include_vars: group_vars/rbd-mirrors
failed_when: false failed_when: false
- name: stop ceph rbd mirror service - name: stop ceph rbd mirror service
@ -477,11 +477,11 @@
become: true become: true
tasks: tasks:
- include_vars: ../roles/ceph-common/defaults/main.yml - include_vars: roles/ceph-common/defaults/main.yml
- include_vars: ../roles/ceph-nfs/defaults/main.yml - include_vars: roles/ceph-nfs/defaults/main.yml
- include_vars: ../group_vars/all - include_vars: group_vars/all
failed_when: false failed_when: false
- include_vars: ../group_vars/nfss - include_vars: group_vars/nfss
failed_when: false failed_when: false
- name: stop ceph nfs service - name: stop ceph nfs service