blob: c87e682464b308a1c377940403c6075b773775d2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
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}
|