diff options
author | Jenkins <jenkins@review.openstack.org> | 2017-01-26 13:33:02 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2017-01-26 13:33:02 +0000 |
commit | 3853c0e646298390f1588d9138577b1d52977081 (patch) | |
tree | db5085ad6bf04999cac3b0a09ffc640dc0b53601 | |
parent | 7c8e79168fe4d2fa34cdd8eec813833b0cf1e8b0 (diff) | |
parent | 6fb4eecbab8bf4a14be5780b4a4e3bb41fc2da10 (diff) |
Merge "Add upgrade support for ceph-mon service"
-rw-r--r-- | puppet/services/ceph-mon.yaml | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/puppet/services/ceph-mon.yaml b/puppet/services/ceph-mon.yaml index 68ad69b7..0c61305d 100644 --- a/puppet/services/ceph-mon.yaml +++ b/puppet/services/ceph-mon.yaml @@ -113,3 +113,24 @@ outputs: get_attr: [CephBase, role_data, service_config_settings] step_config: | include ::tripleo::profile::base::ceph::mon + upgrade_batch_tasks: + # Note we perform these tasks in list order, but they are all step0 so + # we can perform a rolling upgrade of all mon nodes in step0, then a + # rolling upgrade of all osd nodes in step1 + # FIXME(shardy) I suspect we can use heat or ansible facts here instead? + - name: Get hostname + tags: step0 + shell: hostname -s + register: mon_id + - name: Stop Ceph Mon + tags: step0 + service: name=ceph-mon@{{mon_id.stdout}} pattern=ceph-mon state=stopped + - name: Update ceph packages + tags: step0 + yum: name=ceph-mon,ceph state=latest + - name: Start ceph-mon service + tags: step0 + service: name=ceph-mon@{{mon_id.stdout}} state=started + - name: ceph osd crush tunables default + tags: step0 + shell: ceph osd crush tunables default |