1 heat_template_version: pike
4 OpenStack containerized aodh service
9 default: 'tripleoupstream'
13 default: 'centos-binary-aodh-api:latest'
17 description: Mapping of service endpoint -> protocol. Typically set
18 via parameter_defaults in the resource registry.
22 description: Mapping of service_name -> network name. Typically set
23 via parameter_defaults in the resource registry. This
24 mapping overrides those in ServiceNetMapDefaults.
31 description: Role name on which the service is applied
35 description: Parameters specific to the role
43 internal_tls_enabled: {equals: [{get_param: EnableInternalTLS}, true]}
48 type: ./containers-common.yaml
51 type: ../../puppet/services/aodh-api.yaml
53 EndpointMap: {get_param: EndpointMap}
54 ServiceNetMap: {get_param: ServiceNetMap}
55 DefaultPasswords: {get_param: DefaultPasswords}
56 RoleName: {get_param: RoleName}
57 RoleParameters: {get_param: RoleParameters}
61 description: Role data for the aodh API role.
63 service_name: {get_attr: [AodhApiPuppetBase, role_data, service_name]}
66 - get_attr: [AodhApiPuppetBase, role_data, config_settings]
67 - apache::default_vhost: false
68 step_config: &step_config
69 get_attr: [AodhApiPuppetBase, role_data, step_config]
70 service_config_settings: {get_attr: [AodhApiPuppetBase, role_data, service_config_settings]}
71 # BEGIN DOCKER SETTINGS
74 puppet_tags: aodh_api_paste_ini,aodh_config
75 step_config: *step_config
76 config_image: &aodh_image
79 - [ {get_param: DockerNamespace}, {get_param: DockerAodhApiImage} ]
81 /var/lib/kolla/config_files/aodh-api.json:
82 command: /usr/sbin/httpd -DFOREGROUND
88 # db sync runs before permissions set by kolla_config
95 - /var/log/containers/aodh:/var/log/aodh
96 command: ['/bin/bash', '-c', 'mkdir -p /var/log/httpd; chown -R aodh:aodh /var/log/aodh']
106 - {get_attr: [ContainersCommon, volumes]}
108 - /var/lib/config-data/aodh/etc/aodh/:/etc/aodh/:ro
109 - /var/log/containers/aodh:/var/log/aodh
110 command: "/usr/bin/bootstrap_host_exec aodh_api su aodh -s /bin/bash -c /usr/bin/aodh-dbsync"
119 - {get_attr: [ContainersCommon, volumes]}
121 - /var/lib/kolla/config_files/aodh-api.json:/var/lib/kolla/config_files/config.json:ro
122 - /var/lib/config-data/aodh/etc/aodh/:/etc/aodh/:ro
123 - /var/lib/config-data/aodh/etc/httpd/:/etc/httpd/:ro
124 - /var/lib/config-data/aodh/var/www/:/var/www/:ro
125 - /var/log/containers/aodh:/var/log/aodh
128 - internal_tls_enabled
129 - /etc/pki/tls/certs/httpd:/etc/pki/tls/certs/httpd:ro
133 - internal_tls_enabled
134 - /etc/pki/tls/private/httpd:/etc/pki/tls/private/httpd:ro
137 - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
139 - name: create persistent logs directory
141 path: /var/log/containers/aodh
144 - name: Stop and disable aodh service (running under httpd)
146 service: name=httpd state=stopped enabled=no
148 get_attr: [AodhApiPuppetBase, role_data, metadata_settings]