1 heat_template_version: pike
4 OpenStack Sahara 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: Role name on which the service is applied
22 description: Parameters specific to the role
26 description: Mapping of service endpoint -> protocol. Typically set
27 via parameter_defaults in the resource registry.
30 description: The password for the sahara service account, used by sahara-api.
35 description: The number of workers for the sahara-api.
40 description: Keystone region for endpoint
41 MonitoringSubscriptionSaharaApi:
42 default: 'overcloud-sahara-api'
44 SaharaApiLoggingSource:
47 tag: openstack.sahara.api
48 path: /var/log/sahara/sahara-api.log
51 A hash of policies to configure for Sahara API.
52 e.g. { sahara-context_is_admin: { key: context_is_admin, value: 'role:admin' } }
58 type: ./sahara-base.yaml
60 ServiceNetMap: {get_param: ServiceNetMap}
61 DefaultPasswords: {get_param: DefaultPasswords}
62 EndpointMap: {get_param: EndpointMap}
63 RoleName: {get_param: RoleName}
64 RoleParameters: {get_param: RoleParameters}
68 description: Role data for the Sahara API role.
70 service_name: sahara_api
71 monitoring_subscription: {get_param: MonitoringSubscriptionSaharaApi}
72 logging_source: {get_param: SaharaApiLoggingSource}
77 - get_attr: [SaharaBase, role_data, config_settings]
78 - sahara::port: {get_param: [EndpointMap, SaharaInternal, port]}
79 sahara::policy::policies: {get_param: SaharaApiPolicies}
80 sahara::service::api::api_workers: {get_param: SaharaWorkers}
81 # NOTE: bind IP is found in Heat replacing the network name with the local node IP
82 # for the given network; replacement examples (eg. for internal_api):
84 # internal_api_uri -> [IP]
85 # internal_api_subnet - > IP/CIDR
86 sahara::host: {get_param: [ServiceNetMap, SaharaApiNetwork]}
87 tripleo.sahara_api.firewall_rules:
93 include ::tripleo::profile::base::sahara::api
94 service_config_settings:
96 sahara::keystone::auth::tenant: 'service'
97 sahara::keystone::auth::public_url: {get_param: [EndpointMap, SaharaPublic, uri]}
98 sahara::keystone::auth::internal_url: {get_param: [EndpointMap, SaharaInternal, uri]}
99 sahara::keystone::auth::admin_url: {get_param: [EndpointMap, SaharaAdmin, uri]}
100 sahara::keystone::auth::password: {get_param: SaharaPassword }
101 sahara::keystone::auth::region: {get_param: KeystoneRegion}
103 sahara::db::mysql::password: {get_param: SaharaPassword}
104 sahara::db::mysql::user: sahara
105 sahara::db::mysql::host: {get_param: [EndpointMap, MysqlInternal, host_nobrackets]}
106 sahara::db::mysql::dbname: sahara
107 sahara::db::mysql::allowed_hosts:
109 - "%{hiera('mysql_bind_host')}"
111 - name: Stop sahara_api service
113 service: name=openstack-sahara-api state=stopped