diff options
author | 2018-01-30 01:03:47 +0000 | |
---|---|---|
committer | 2018-01-30 01:03:47 +0000 | |
commit | 7dfbe30d59e513da56fe34e3ffa44840a4c41ded (patch) | |
tree | fb3e6188baff221827a7e6c71c055de93f327e0a /deploy/adapters/ansible/roles/post-osa/tasks/ceilometer-upgrade.yml | |
parent | 2c93fa28f1f1e78f4135f096f0c59e82963fd847 (diff) | |
parent | 8c52d2b68d656aef61baf8d092e40024f397c5ed (diff) |
Merge "Change gnocchi storage and increase the capacity of ceph"
Diffstat (limited to 'deploy/adapters/ansible/roles/post-osa/tasks/ceilometer-upgrade.yml')
-rwxr-xr-x | deploy/adapters/ansible/roles/post-osa/tasks/ceilometer-upgrade.yml | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/deploy/adapters/ansible/roles/post-osa/tasks/ceilometer-upgrade.yml b/deploy/adapters/ansible/roles/post-osa/tasks/ceilometer-upgrade.yml new file mode 100755 index 00000000..3d991b74 --- /dev/null +++ b/deploy/adapters/ansible/roles/post-osa/tasks/ceilometer-upgrade.yml @@ -0,0 +1,28 @@ +############################################################################# +# Copyright (c) 2017 HUAWEI TECHNOLOGIES CO.,LTD and others. +# +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Apache License, Version 2.0 +# which accompanies this distribution, and is available at +# http://www.apache.org/licenses/LICENSE-2.0 +############################################################################## +--- +- name: check for gnocchi resource file + stat: + path: "/etc/ceilometer/gnocchi_resources.yaml" + register: gnocchi_resource_file + +- name: get the path of ceilometer-upgrade + shell: "find / -name ceilometer-upgrade 2>/dev/null || true" + register: ceilometer_upgrade_path + +- name: Initialize Gnocchi database by creating ceilometer resources + command: "{{ ceilometer_upgrade_path.stdout }} --skip-metering-database" + become: "yes" + when: gnocchi_resource_file.stat.exists + register: _upgrade + until: _upgrade | success + retries: 10 + delay: 2 + notify: + - Restart ceilometer services |