diff options
author | Giulio Fidente <gfidente@redhat.com> | 2017-01-20 17:32:17 +0100 |
---|---|---|
committer | Giulio Fidente <gfidente@redhat.com> | 2017-01-26 16:12:42 +0000 |
commit | a0c5f6584650408a93e0943a5bc3ca41bff23ff1 (patch) | |
tree | 191225148cd5382b498d387bb93c60d29ca69010 /puppet/services | |
parent | 7020a724049eb7b5f8bfbc503e5a233f97eadb32 (diff) |
Add upgrade support for CephRGW service
Implements minor upgrade of the ceph-radosgw service.
Change-Id: I4c064bf996ec6bb7eba41ab6384bd953a8ec920f
Partially-Implements: blueprint overcloud-upgrades-per-service
Diffstat (limited to 'puppet/services')
-rw-r--r-- | puppet/services/ceph-rgw.yaml | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/puppet/services/ceph-rgw.yaml b/puppet/services/ceph-rgw.yaml index 92536994..83339f2b 100644 --- a/puppet/services/ceph-rgw.yaml +++ b/puppet/services/ceph-rgw.yaml @@ -77,3 +77,14 @@ outputs: ceph::rgw::keystone::auth::tenant: service ceph::rgw::keystone::auth::user: swift ceph::rgw::keystone::auth::password: {get_param: SwiftPassword} + upgrade_tasks: + - name: Gather RGW instance ID + tags: step0 + shell: hiera -c /etc/puppet/hiera.yaml ceph::profile::params::rgw_name radosgw.gateway + register: rgw_id + - name: Check status + shell: /usr/bin/systemctl show ceph-radosgw@{{rgw_id.stdout}} --property ActiveState | grep '\bactive\b' + tags: step0,validation + - name: Stop RGW instance + tags: step1 + service: name=ceph-radosgw@{{rgw_id.stdout}} state=stopped |