tripleo-heat-templates/extraconfig/tasks/major_upgrade_ceilometer_wsgi_mitaka_newton.yaml
Pradeep Kilambi eaf91da5ef Ceilometer Wsgi Mitaka->Newton upgrades
In Newton, ceilometer api is changed to run under apache wsgi
instead of eventlet. This will require upgrades for mitaka
deployments to switch to wsgi.

Closes-Bug: 1631297
Change-Id: If9d6987cd0a8fc5d3f9de518ba422d97d5149732
2016-10-07 11:43:33 +03:00

63 lines
2.0 KiB
YAML

heat_template_version: 2014-10-16
description: >
Software-config for ceilometer configuration under httpd during upgrades
parameters:
servers:
type: json
input_values:
type: json
description: input values for the software deployments
resources:
CeilometerWsgiMitakaNewtonPreUpgradeConfig:
type: OS::Heat::SoftwareConfig
properties:
group: puppet
config:
get_file: mitaka_to_newton_ceilometer_wsgi_upgrade.pp
CeilometerWsgiMitakaNewtonUpgradeConfig:
type: OS::Heat::SoftwareConfig
properties:
group: script
config:
list_join:
- ''
- - "#!/bin/bash\n\nset -e\n\n"
- get_file: pacemaker_common_functions.sh
- get_file: major_upgrade_pacemaker_migrations.sh
- "disable_standalone_ceilometer_api\n\n"
CeilometerWsgiMitakaNewtonPostUpgradeConfig:
type: OS::Heat::SoftwareConfig
properties:
group: script
config: |
#!/bin/bash
set -e
/usr/bin/systemctl reload httpd
CeilometerWsgiMitakaNewtonPreUpgradeDeployment:
type: OS::Heat::SoftwareDeploymentGroup
properties:
name: CeilometerWsgiMitakaNewtonPreUpgradeDeployment
servers: {get_param: [servers, Controller]}
config: {get_resource: CeilometerWsgiMitakaNewtonPreUpgradeConfig}
CeilometerWsgiMitakaNewtonUpgradeConfigDeployment:
type: OS::Heat::SoftwareDeploymentGroup
depends_on: CeilometerWsgiMitakaNewtonPreUpgradeDeployment
properties:
name: CeilometerWsgiMitakaNewtonUpgradeConfigDeployment
servers: {get_param: [servers, Controller]}
config: {get_resource: CeilometerWsgiMitakaNewtonUpgradeConfig}
CeilometerWsgiMitakaNewtonPostUpgradeDeployment:
type: OS::Heat::SoftwareDeploymentGroup
depends_on: CeilometerWsgiMitakaNewtonUpgradeConfigDeployment
properties:
name: CeilometerWsgiMitakaNewtonPostUpgradeDeployment
servers: {get_param: [servers, Controller]}
config: {get_resource: CeilometerWsgiMitakaNewtonPostUpgradeConfig}