Merge pull request #1055 from ceph/update-role-path

rebased rolling_update: fix wrong indent
pull/1057/head
Alfredo Deza 2016-10-26 14:12:26 -04:00 committed by GitHub
commit d2cd0d9557
6 changed files with 133 additions and 118 deletions

13
.gitignore vendored
View File

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

View File

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

View File

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

View File

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