1 heat_template_version: pike
4 OpenStack Sahara API service configured with Puppet
9 description: Dictionary packing service data
13 description: Mapping of service_name -> network name. Typically set
14 via parameter_defaults in the resource registry. This
15 mapping overrides those in ServiceNetMapDefaults.
22 description: Role name on which the service is applied
26 description: Parameters specific to the role
30 description: Mapping of service endpoint -> protocol. Typically set
31 via parameter_defaults in the resource registry.
34 description: The password for the sahara service account, used by sahara-api.
39 description: The number of workers for the sahara-api.
44 description: Keystone region for endpoint
45 MonitoringSubscriptionSaharaApi:
46 default: 'overcloud-sahara-api'
48 SaharaApiLoggingSource:
51 tag: openstack.sahara.api
52 path: /var/log/sahara/sahara-api.log
55 A hash of policies to configure for Sahara API.
56 e.g. { sahara-context_is_admin: { key: context_is_admin, value: 'role:admin' } }
62 type: ./sahara-base.yaml
64 ServiceData: {get_param: ServiceData}
65 ServiceNetMap: {get_param: ServiceNetMap}
66 DefaultPasswords: {get_param: DefaultPasswords}
67 EndpointMap: {get_param: EndpointMap}
68 RoleName: {get_param: RoleName}
69 RoleParameters: {get_param: RoleParameters}
73 description: Role data for the Sahara API role.
75 service_name: sahara_api
76 monitoring_subscription: {get_param: MonitoringSubscriptionSaharaApi}
77 logging_source: {get_param: SaharaApiLoggingSource}
82 - get_attr: [SaharaBase, role_data, config_settings]
83 - sahara::port: {get_param: [EndpointMap, SaharaInternal, port]}
84 sahara::policy::policies: {get_param: SaharaApiPolicies}
85 sahara::service::api::api_workers: {get_param: SaharaWorkers}
86 # NOTE: bind IP is found in Heat replacing the network name with the local node IP
87 # for the given network; replacement examples (eg. for internal_api):
89 # internal_api_uri -> [IP]
90 # internal_api_subnet - > IP/CIDR
91 sahara::host: {get_param: [ServiceNetMap, SaharaApiNetwork]}
92 tripleo.sahara_api.firewall_rules:
98 include ::tripleo::profile::base::sahara::api
99 service_config_settings:
101 sahara::keystone::auth::tenant: 'service'
102 sahara::keystone::auth::public_url: {get_param: [EndpointMap, SaharaPublic, uri]}
103 sahara::keystone::auth::internal_url: {get_param: [EndpointMap, SaharaInternal, uri]}
104 sahara::keystone::auth::admin_url: {get_param: [EndpointMap, SaharaAdmin, uri]}
105 sahara::keystone::auth::password: {get_param: SaharaPassword }
106 sahara::keystone::auth::region: {get_param: KeystoneRegion}
108 sahara::db::mysql::password: {get_param: SaharaPassword}
109 sahara::db::mysql::user: sahara
110 sahara::db::mysql::host: {get_param: [EndpointMap, MysqlInternal, host_nobrackets]}
111 sahara::db::mysql::dbname: sahara
112 sahara::db::mysql::allowed_hosts:
114 - "%{hiera('mysql_bind_host')}"
116 - name: Stop sahara_api service
118 service: name=openstack-sahara-api state=stopped