1 heat_template_version: pike
4 OpenStack containerized aodh service
9 default: 'tripleoupstream'
13 default: 'centos-binary-aodh-api:latest'
15 DockerAodhConfigImage:
16 description: The container image to use for the aodh config_volume
17 default: 'centos-binary-aodh-api:latest'
21 description: Mapping of service endpoint -> protocol. Typically set
22 via parameter_defaults in the resource registry.
26 description: Mapping of service_name -> network name. Typically set
27 via parameter_defaults in the resource registry. This
28 mapping overrides those in ServiceNetMapDefaults.
35 description: Role name on which the service is applied
39 description: Parameters specific to the role
47 internal_tls_enabled: {equals: [{get_param: EnableInternalTLS}, true]}
52 type: ./containers-common.yaml
55 type: ../../puppet/services/aodh-api.yaml
57 EndpointMap: {get_param: EndpointMap}
58 ServiceNetMap: {get_param: ServiceNetMap}
59 DefaultPasswords: {get_param: DefaultPasswords}
60 RoleName: {get_param: RoleName}
61 RoleParameters: {get_param: RoleParameters}
65 description: Role data for the aodh API role.
67 service_name: {get_attr: [AodhApiPuppetBase, role_data, service_name]}
70 - get_attr: [AodhApiPuppetBase, role_data, config_settings]
71 - apache::default_vhost: false
72 step_config: &step_config
73 get_attr: [AodhApiPuppetBase, role_data, step_config]
74 service_config_settings: {get_attr: [AodhApiPuppetBase, role_data, service_config_settings]}
75 # BEGIN DOCKER SETTINGS
78 puppet_tags: aodh_api_paste_ini,aodh_config
79 step_config: *step_config
83 - [ {get_param: DockerNamespace}, {get_param: DockerAodhConfigImage} ]
85 /var/lib/kolla/config_files/aodh_api.json:
86 command: /usr/sbin/httpd -DFOREGROUND
92 # db sync runs before permissions set by kolla_config
95 image: &aodh_api_image
98 - [ {get_param: DockerNamespace}, {get_param: DockerAodhApiImage} ]
101 - /var/log/containers/aodh:/var/log/aodh
102 command: ['/bin/bash', '-c', 'mkdir -p /var/log/httpd; chown -R aodh:aodh /var/log/aodh']
105 image: *aodh_api_image
112 - {get_attr: [ContainersCommon, volumes]}
114 - /var/lib/config-data/aodh/etc/aodh/:/etc/aodh/:ro
115 - /var/log/containers/aodh:/var/log/aodh
116 command: "/usr/bin/bootstrap_host_exec aodh_api su aodh -s /bin/bash -c /usr/bin/aodh-dbsync"
119 image: *aodh_api_image
125 - {get_attr: [ContainersCommon, volumes]}
127 - /var/lib/kolla/config_files/aodh_api.json:/var/lib/kolla/config_files/config.json:ro
128 - /var/lib/config-data/aodh/etc/aodh/:/etc/aodh/:ro
129 - /var/lib/config-data/aodh/etc/httpd/conf/:/etc/httpd/conf/:ro
130 - /var/lib/config-data/aodh/etc/httpd/conf.d/:/etc/httpd/conf.d/:ro
131 - /var/lib/config-data/aodh/etc/httpd/conf.modules.d/:/etc/httpd/conf.modules.d/:ro
132 - /var/lib/config-data/aodh/var/www/:/var/www/:ro
133 - /var/log/containers/aodh:/var/log/aodh
136 - internal_tls_enabled
137 - /etc/pki/tls/certs/httpd:/etc/pki/tls/certs/httpd:ro
141 - internal_tls_enabled
142 - /etc/pki/tls/private/httpd:/etc/pki/tls/private/httpd:ro
145 - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
147 - name: create persistent logs directory
149 path: /var/log/containers/aodh
152 - name: Stop and disable aodh service (running under httpd)
154 service: name=httpd state=stopped enabled=no
156 get_attr: [AodhApiPuppetBase, role_data, metadata_settings]