Fix the disable expirer to remove crontab
Instead of doing this via puppet which has the consequence of including the step_config and getting included on the host manifest. Lets disable via ansible upgrade task instead. Change-Id: I5f1a4019dd635dea67db4313bd06a228ae7bacd4
This commit is contained in:
parent
3c98a1bc3f
commit
321ecf916f
@ -27,24 +27,12 @@ parameters:
|
|||||||
via parameter_defaults in the resource registry.
|
via parameter_defaults in the resource registry.
|
||||||
type: json
|
type: json
|
||||||
|
|
||||||
resources:
|
|
||||||
CeilometerServiceBase:
|
|
||||||
type: ../ceilometer-base.yaml
|
|
||||||
properties:
|
|
||||||
ServiceNetMap: {get_param: ServiceNetMap}
|
|
||||||
DefaultPasswords: {get_param: DefaultPasswords}
|
|
||||||
EndpointMap: {get_param: EndpointMap}
|
|
||||||
RoleName: {get_param: RoleName}
|
|
||||||
RoleParameters: {get_param: RoleParameters}
|
|
||||||
|
|
||||||
outputs:
|
outputs:
|
||||||
role_data:
|
role_data:
|
||||||
description: Role data for the disabling Ceilometer Expirer role.
|
description: Role data for the disabling Ceilometer Expirer role.
|
||||||
value:
|
value:
|
||||||
service_name: ceilometer_expirer_disabled
|
service_name: ceilometer_expirer_disabled
|
||||||
config_settings:
|
upgrade_tasks:
|
||||||
map_merge:
|
- name: Remove ceilometer expirer cron tab on upgrade
|
||||||
- get_attr: [CeilometerServiceBase, role_data, config_settings]
|
tags: step1
|
||||||
- ceilometer::expirer::enable_cron: false
|
shell: '/usr/bin/crontab -u ceilometer -r'
|
||||||
step_config: |
|
|
||||||
include ::tripleo::profile::base::ceilometer::expirer
|
|
||||||
|
@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
upgrade:
|
||||||
|
- Ceilometer expirer is deprecated in pike. During upgrade, the crontab thats
|
||||||
|
configured with ceilometer user will be removed to ensure the expirer
|
||||||
|
script is not running.
|
Loading…
Reference in New Issue
Block a user