Merge "Containerize gnocchi services"
[apex-tripleo-heat-templates.git] / puppet / services / panko-base.yaml
1 heat_template_version: ocata
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   EndpointMap:
17     default: {}
18     description: Mapping of service endpoint -> protocol. Typically set
19                  via parameter_defaults in the resource registry.
20     type: json
21   PankoPassword:
22     description: The password for the panko services.
23     type: string
24     hidden: true
25   Debug:
26     default: ''
27     description: Set to True to enable debugging on all services.
28     type: string
29   KeystoneRegion:
30     type: string
31     default: 'regionOne'
32     description: Keystone region for endpoint
33
34 outputs:
35   role_data:
36     description: Role data for the Panko role.
37     value:
38       service_name: panko_base
39       config_settings:
40         panko::db::database_connection:
41           list_join:
42             - ''
43             - - {get_param: [EndpointMap, MysqlInternal, protocol]}
44               - '://panko:'
45               - {get_param: PankoPassword}
46               - '@'
47               - {get_param: [EndpointMap, MysqlInternal, host]}
48               - '/panko'
49               - '?read_default_file=/etc/my.cnf.d/tripleo.cnf&read_default_group=tripleo'
50         panko::debug: {get_param: Debug}
51         panko::auth::auth_url: {get_param: [EndpointMap, KeystoneInternal, uri_no_suffix] }
52         panko::keystone::authtoken::project_name: 'service'
53         panko::keystone::authtoken::user_domain_name: 'Default'
54         panko::keystone::authtoken::project_domain_name: 'Default'
55         panko::keystone::authtoken::password: {get_param: PankoPassword}
56         panko::keystone::authtoken::auth_uri: {get_param: [EndpointMap, KeystoneInternal, uri_no_suffix] }
57         panko::keystone::authtoken::auth_url: { get_param: [EndpointMap, KeystoneInternal, uri_no_suffix] }
58         panko::auth::auth_password: {get_param: PankoPassword}
59         panko::auth::auth_region: 'regionOne'
60         panko::auth::auth_tenant_name: 'service'
61       service_config_settings:
62         keystone:
63           panko::keystone::auth::public_url: {get_param: [EndpointMap, PankoPublic, uri]}
64           panko::keystone::auth::internal_url: {get_param: [EndpointMap, PankoInternal, uri]}
65           panko::keystone::auth::admin_url: {get_param: [EndpointMap, PankoAdmin, uri]}
66           panko::keystone::auth::password: {get_param: PankoPassword}
67           panko::keystone::auth::region: {get_param: KeystoneRegion}
68           panko::keystone::auth::tenant: 'service'
69         mysql:
70           panko::db::mysql::user: panko
71           panko::db::mysql::password: {get_param: PankoPassword}
72           panko::db::mysql::host: {get_param: [EndpointMap, MysqlInternal, host_nobrackets]}
73           panko::db::mysql::dbname: panko
74           panko::db::mysql::allowed_hosts:
75             - '%'
76             - "%{hiera('mysql_bind_host')}"