1 heat_template_version: pike
4 OpenStack containerized Aodh Notifier service
9 default: 'tripleoupstream'
11 DockerAodhNotifierImage:
13 default: 'centos-binary-aodh-notifier: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
45 type: ./containers-common.yaml
48 type: ../../puppet/services/aodh-notifier.yaml
50 EndpointMap: {get_param: EndpointMap}
51 ServiceNetMap: {get_param: ServiceNetMap}
52 DefaultPasswords: {get_param: DefaultPasswords}
53 RoleName: {get_param: RoleName}
54 RoleParameters: {get_param: RoleParameters}
58 description: Role data for the Aodh API role.
60 service_name: {get_attr: [AodhNotifierBase, role_data, service_name]}
63 - get_attr: [AodhNotifierBase, role_data, config_settings]
64 step_config: &step_config
65 get_attr: [AodhNotifierBase, role_data, step_config]
66 service_config_settings: {get_attr: [AodhNotifierBase, role_data, service_config_settings]}
67 # BEGIN DOCKER SETTINGS
70 puppet_tags: aodh_config
71 step_config: *step_config
75 - [ {get_param: DockerNamespace}, {get_param: DockerAodhConfigImage} ]
77 /var/lib/kolla/config_files/aodh_notifier.json:
78 command: /usr/bin/aodh-notifier
80 - source: "/var/lib/kolla/config_files/src/*"
83 preserve_properties: true
94 - [ {get_param: DockerNamespace}, {get_param: DockerAodhNotifierImage} ]
100 - {get_attr: [ContainersCommon, volumes]}
102 - /var/lib/kolla/config_files/aodh_notifier.json:/var/lib/kolla/config_files/config.json:ro
103 - /var/lib/config-data/puppet-generated/aodh/:/var/lib/kolla/config_files/src:ro
104 - /var/log/containers/aodh:/var/log/aodh
106 - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
108 - name: create persistent logs directory
110 path: /var/log/containers/aodh
113 - name: Stop and disable openstack-aodh-notifier service
115 service: name=openstack-aodh-notifier.service state=stopped enabled=no