1 heat_template_version: ocata
4 OpenStack EC2-API service configured with Puppet
9 description: Mapping of service_name -> network name. Typically set
10 via parameter_defaults in the resource registry. This
11 mapping overrides those in ServiceNetMapDefaults.
18 description: Mapping of service endpoint -> protocol. Typically set
19 via parameter_defaults in the resource registry.
23 description: Number of workers for EC2-API service.
26 description: The password for the nova service and db account, used by nova-api.
32 description: Keystone region for endpoint
33 MonitoringSubscriptionEc2Api:
34 default: 'overcloud-ec2-api'
39 tag: openstack.ec2.api
40 path: /var/log/ec2api/ec2api.log
43 description: Set to true to enable package installation via Puppet
48 nova_workers_zero: {equals : [{get_param: Ec2ApiWorkers}, 0]}
52 description: Role data for the EC2-API service.
55 monitoring_subscription: {get_param: MonitoringSubscriptionEc2Api}
56 logging_source: {get_param: Ec2ApiLoggingSource}
61 - tripleo.ec2_api.firewall_rules:
66 ec2api::keystone::authtoken::project_name: 'service'
67 ec2api::keystone::authtoken::password: {get_param: Ec2ApiPassword}
68 ec2api::keystone::authtoken::auth_uri: {get_param: [EndpointMap, KeystoneInternal, uri] }
69 ec2api::keystone::authtoken::auth_url: {get_param: [EndpointMap, KeystoneInternal, uri_no_suffix]}
70 ec2api::api::enabled: true
71 ec2api::package_manage: {get_param: EnablePackageInstall}
72 ec2api::api::ec2api_listen:
75 '"%{::fqdn_$NETWORK}"'
77 $NETWORK: {get_param: [ServiceNetMap, Ec2ApiNetwork]}
78 ec2api::metadata::metadata_listen:
81 '"%{::fqdn_$NETWORK}"'
83 $NETWORK: {get_param: [ServiceNetMap, Ec2ApiMetadataNetwork]}
84 ec2api::db::database_connection:
87 - - {get_param: [EndpointMap, MysqlInternal, protocol]}
89 - {get_param: Ec2ApiPassword}
91 - {get_param: [EndpointMap, MysqlInternal, host]}
93 - '?read_default_file=/etc/my.cnf.d/tripleo.cnf&read_default_group=tripleo'
98 - ec2api::api::ec2api_workers: {get_param: Ec2ApiWorkers}
99 ec2api::metadata::metadata_workers: {get_param: Ec2ApiWorkers}
101 include tripleo::profile::base::nova::ec2api
102 service_config_settings:
104 ec2api::keystone::auth::tenant: 'service'
105 ec2api::keystone::auth::public_url: {get_param: [EndpointMap, Ec2ApiPublic, uri]}
106 ec2api::keystone::auth::internal_url: {get_param: [EndpointMap, Ec2ApiInternal, uri]}
107 ec2api::keystone::auth::admin_url: {get_param: [EndpointMap, Ec2ApiAdmin, uri]}
108 ec2api::keystone::auth::password: {get_param: Ec2ApiPassword}
109 ec2api::keystone::auth::region: {get_param: KeystoneRegion}
111 ec2api::db::mysql::password: {get_param: Ec2ApiPassword}
112 ec2api::db::mysql::user: ec2_api
113 ec2api::db::mysql::host: {get_param: [EndpointMap, MysqlInternal, host_nobrackets]}
114 ec2api::db::mysql::dbname: ec2_api
115 ec2api::db::mysql::allowed_hosts:
117 - "%{hiera('mysql_bind_host')}"