Browse Source

Merge "Add upgrade task to run gnocchi upgrade"

changes/37/522037/1
Zuul 5 years ago committed by Gerrit Code Review
parent
commit
6c29a106cb
  1. 11
      puppet/services/gnocchi-api.yaml

11
puppet/services/gnocchi-api.yaml

@ -157,3 +157,14 @@ outputs:
- name: Stop gnocchi_api service (running under httpd)
tags: step1
service: name=httpd state=stopped
- name: get bootstrap nodeid
tags: common
command: hiera bootstrap_nodeid
register: bootstrap_node
- name: set is_bootstrap_node fact
tags: common
set_fact: is_bootstrap_node={{bootstrap_node.stdout|lower == ansible_hostname|lower}}
- name: Setup gnocchi db during upgrade
tags: step5
command: gnocchi-upgrade
when: is_bootstrap_node

Loading…
Cancel
Save