heat_template_version:pikedescription:>OpenStack containerized aodh serviceparameters:DockerAodhApiImage:description:imagetype:stringDockerAodhConfigImage:description:The container image to use for the aodh config_volumetype:stringEndpointMap:default:{}description:Mapping of service endpoint -> protocol. Typically setvia parameter_defaults in the resource registry.type:jsonServiceData:default:{}description:Dictionary packing service datatype:jsonServiceNetMap:default:{}description:Mapping of service_name -> network name. Typically setvia parameter_defaults in the resource registry. Thismapping overrides those in ServiceNetMapDefaults.type:jsonDefaultPasswords:default:{}type:jsonRoleName:default:''description:Role name on which the service is appliedtype:stringRoleParameters:default:{}description:Parameters specific to the roletype:jsonEnableInternalTLS:type:booleandefault:falseconditions:internal_tls_enabled:{equals:[{get_param:EnableInternalTLS},true]}resources:ContainersCommon:type:./containers-common.yamlMySQLClient:type:../../puppet/services/database/mysql-client.yamlAodhApiPuppetBase:type:../../puppet/services/aodh-api.yamlproperties:EndpointMap:{get_param:EndpointMap}ServiceNetMap:{get_param:ServiceNetMap}DefaultPasswords:{get_param:DefaultPasswords}RoleName:{get_param:RoleName}RoleParameters:{get_param:RoleParameters}outputs:role_data:description:Role data for the aodh API role.value:service_name:{get_attr:[AodhApiPuppetBase,role_data,service_name]}config_settings:map_merge:-get_attr:[AodhApiPuppetBase,role_data,config_settings]-apache::default_vhost:falselogging_source:{get_attr:[AodhApiPuppetBase,role_data,logging_source]}logging_groups:{get_attr:[AodhApiPuppetBase,role_data,logging_groups]}step_config:&step_configlist_join:-"\n"--{get_attr:[AodhApiPuppetBase,role_data,step_config]}-{get_attr:[MySQLClient,role_data,step_config]}service_config_settings:{get_attr:[AodhApiPuppetBase,role_data,service_config_settings]}# BEGIN DOCKER SETTINGSpuppet_config:config_volume:aodhpuppet_tags:aodh_api_paste_ini,aodh_configstep_config:*step_configconfig_image:{get_param:DockerAodhConfigImage}kolla_config:/var/lib/kolla/config_files/aodh_api.json:command:/usr/sbin/httpd -DFOREGROUNDconfig_files:-source:"/var/lib/kolla/config_files/src/*"dest:"/"merge:truepreserve_properties:truepermissions:-path:/var/log/aodhowner:aodh:aodhrecurse:truedocker_config:# db sync runs before permissions set by kolla_configstep_2:aodh_init_log:image:&aodh_api_image{get_param:DockerAodhApiImage}user:rootvolumes:-/var/log/containers/aodh:/var/log/aodh-/var/log/containers/httpd/aodh-api:/var/log/httpdcommand:['/bin/bash','-c','chown-Raodh:aodh/var/log/aodh']step_3:aodh_db_sync:image:*aodh_api_imagenet:hostprivileged:falsedetach:falseuser:rootvolumes:list_concat:-{get_attr:[ContainersCommon,volumes]}--/var/lib/config-data/aodh/etc/my.cnf.d/tripleo.cnf:/etc/my.cnf.d/tripleo.cnf:ro-/var/lib/config-data/aodh/etc/aodh/:/etc/aodh/:ro-/var/log/containers/aodh:/var/log/aodh-/var/log/containers/httpd/aodh-api:/var/log/httpdcommand:"/usr/bin/bootstrap_host_execaodh_apisuaodh-s/bin/bash-c/usr/bin/aodh-dbsync"step_4:aodh_api:image:*aodh_api_imagenet:hostprivileged:falserestart:alwaysvolumes:list_concat:-{get_attr:[ContainersCommon,volumes]}--/var/lib/kolla/config_files/aodh_api.json:/var/lib/kolla/config_files/config.json:ro-/var/lib/config-data/puppet-generated/aodh/:/var/lib/kolla/config_files/src:ro-/var/log/containers/aodh:/var/log/aodh-/var/log/containers/httpd/aodh-api:/var/log/httpd-if:-internal_tls_enabled-/etc/pki/tls/certs/httpd:/etc/pki/tls/certs/httpd:ro-''-if:-internal_tls_enabled-/etc/pki/tls/private/httpd:/etc/pki/tls/private/httpd:ro-''environment:-KOLLA_CONFIG_STRATEGY=COPY_ALWAYShost_prep_tasks:-name:create persistent logs directoryfile:path:"{{item}}"state:directorywith_items:-/var/log/containers/aodh-/var/log/containers/httpd/aodh-apiupgrade_tasks:-name:Stop and disable aodh service (running under httpd)tags:step2service:name=httpd state=stopped enabled=nometadata_settings:get_attr:[AodhApiPuppetBase,role_data,metadata_settings]