Merge "Change neutron-metadata number of workers determination method"
[apex-tripleo-heat-templates.git] / puppet / services / panko-base.yaml
1 heat_template_version: pike
2
3 description: >
4   OpenStack Panko service configured with Puppet
5
6 parameters:
7   ServiceNetMap:
8     default: {}
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.
12     type: json
13   DefaultPasswords:
14     default: {}
15     type: json
16   RoleName:
17     default: ''
18     description: Role name on which the service is applied
19     type: string
20   RoleParameters:
21     default: {}
22     description: Parameters specific to the role
23     type: json
24   EndpointMap:
25     default: {}
26     description: Mapping of service endpoint -> protocol. Typically set
27                  via parameter_defaults in the resource registry.
28     type: json
29   PankoPassword:
30     description: The password for the panko services.
31     type: string
32     hidden: true
33   Debug:
34     default: ''
35     description: Set to True to enable debugging on all services.
36     type: string
37   KeystoneRegion:
38     type: string
39     default: 'regionOne'
40     description: Keystone region for endpoint
41
42 outputs:
43   role_data:
44     description: Role data for the Panko role.
45     value:
46       service_name: panko_base
47       config_settings:
48         panko::db::database_connection:
49           make_url:
50             scheme: {get_param: [EndpointMap, MysqlInternal, protocol]}
51             username: panko
52             password: {get_param: PankoPassword}
53             host: {get_param: [EndpointMap, MysqlInternal, host]}
54             path: /panko
55             query:
56               read_default_file: /etc/my.cnf.d/tripleo.cnf
57               read_default_group: tripleo
58         panko::debug: {get_param: Debug}
59         panko::auth::auth_url: {get_param: [EndpointMap, KeystoneInternal, uri_no_suffix] }
60         panko::keystone::authtoken::project_name: 'service'
61         panko::keystone::authtoken::user_domain_name: 'Default'
62         panko::keystone::authtoken::project_domain_name: 'Default'
63         panko::keystone::authtoken::password: {get_param: PankoPassword}
64         panko::keystone::authtoken::auth_uri: {get_param: [EndpointMap, KeystoneInternal, uri_no_suffix] }
65         panko::keystone::authtoken::auth_url: { get_param: [EndpointMap, KeystoneInternal, uri_no_suffix] }
66         panko::auth::auth_password: {get_param: PankoPassword}
67         panko::auth::auth_region: 'regionOne'
68         panko::auth::auth_tenant_name: 'service'
69       service_config_settings:
70         keystone:
71           panko::keystone::auth::public_url: {get_param: [EndpointMap, PankoPublic, uri]}
72           panko::keystone::auth::internal_url: {get_param: [EndpointMap, PankoInternal, uri]}
73           panko::keystone::auth::admin_url: {get_param: [EndpointMap, PankoAdmin, uri]}
74           panko::keystone::auth::password: {get_param: PankoPassword}
75           panko::keystone::auth::region: {get_param: KeystoneRegion}
76           panko::keystone::auth::tenant: 'service'
77         mysql:
78           panko::db::mysql::user: panko
79           panko::db::mysql::password: {get_param: PankoPassword}
80           panko::db::mysql::host: {get_param: [EndpointMap, MysqlInternal, host_nobrackets]}
81           panko::db::mysql::dbname: panko
82           panko::db::mysql::allowed_hosts:
83             - '%'
84             - "%{hiera('mysql_bind_host')}"