1 heat_template_version: pike
4 OpenStack containerized aodh service
10 DockerAodhConfigImage:
11 description: The container image to use for the aodh config_volume
15 description: Mapping of service endpoint -> protocol. Typically set
16 via parameter_defaults in the resource registry.
20 description: Dictionary packing service data
24 description: Mapping of service_name -> network name. Typically set
25 via parameter_defaults in the resource registry. This
26 mapping overrides those in ServiceNetMapDefaults.
33 description: Role name on which the service is applied
37 description: Parameters specific to the role
45 internal_tls_enabled: {equals: [{get_param: EnableInternalTLS}, true]}
50 type: ./containers-common.yaml
53 type: ../../puppet/services/database/mysql-client.yaml
56 type: ../../puppet/services/aodh-api.yaml
58 EndpointMap: {get_param: EndpointMap}
59 ServiceNetMap: {get_param: ServiceNetMap}
60 DefaultPasswords: {get_param: DefaultPasswords}
61 RoleName: {get_param: RoleName}
62 RoleParameters: {get_param: RoleParameters}
66 description: Role data for the aodh API role.
68 service_name: {get_attr: [AodhApiPuppetBase, role_data, service_name]}
71 - get_attr: [AodhApiPuppetBase, role_data, config_settings]
72 - apache::default_vhost: false
73 step_config: &step_config
76 - - {get_attr: [AodhApiPuppetBase, role_data, step_config]}
77 - {get_attr: [MySQLClient, role_data, step_config]}
78 service_config_settings: {get_attr: [AodhApiPuppetBase, role_data, service_config_settings]}
79 # BEGIN DOCKER SETTINGS
82 puppet_tags: aodh_api_paste_ini,aodh_config
83 step_config: *step_config
84 config_image: {get_param: DockerAodhConfigImage}
86 /var/lib/kolla/config_files/aodh_api.json:
87 command: /usr/sbin/httpd -DFOREGROUND
89 - source: "/var/lib/kolla/config_files/src/*"
92 preserve_properties: true
98 # db sync runs before permissions set by kolla_config
101 image: &aodh_api_image {get_param: DockerAodhApiImage}
104 - /var/log/containers/aodh:/var/log/aodh
105 command: ['/bin/bash', '-c', 'mkdir -p /var/log/httpd; chown -R aodh:aodh /var/log/aodh']
108 image: *aodh_api_image
115 - {get_attr: [ContainersCommon, volumes]}
117 - /var/lib/config-data/aodh/etc/aodh/:/etc/aodh/:ro
118 - /var/log/containers/aodh:/var/log/aodh
119 command: "/usr/bin/bootstrap_host_exec aodh_api su aodh -s /bin/bash -c /usr/bin/aodh-dbsync"
122 image: *aodh_api_image
128 - {get_attr: [ContainersCommon, volumes]}
130 - /var/lib/kolla/config_files/aodh_api.json:/var/lib/kolla/config_files/config.json:ro
131 - /var/lib/config-data/puppet-generated/aodh/:/var/lib/kolla/config_files/src:ro
132 - /var/log/containers/aodh:/var/log/aodh
135 - internal_tls_enabled
136 - /etc/pki/tls/certs/httpd:/etc/pki/tls/certs/httpd:ro
140 - internal_tls_enabled
141 - /etc/pki/tls/private/httpd:/etc/pki/tls/private/httpd:ro
144 - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
146 - name: create persistent logs directory
148 path: /var/log/containers/aodh
151 - name: Stop and disable aodh service (running under httpd)
153 service: name=httpd state=stopped enabled=no
155 get_attr: [AodhApiPuppetBase, role_data, metadata_settings]