summaryrefslogtreecommitdiffstats
path: root/puppet
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2017-01-30 21:07:38 +0000
committerGerrit Code Review <review@openstack.org>2017-01-30 21:07:38 +0000
commit85120f4609db89997f42ff658154132474f50366 (patch)
tree57685fd1bf40f89ae5f74270f12378c994fde15b /puppet
parentb2c7d8a74846524b857f9e304fa3df465b04d06e (diff)
parenta0c5f6584650408a93e0943a5bc3ca41bff23ff1 (diff)
Merge "Add upgrade support for CephRGW service"
Diffstat (limited to 'puppet')
-rw-r--r--puppet/services/ceph-rgw.yaml11
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