Change flat network name for nosdn fdio scenario
[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   ServiceData:
8     default: {}
9     description: Dictionary packing service data
10     type: json
11   ServiceNetMap:
12     default: {}
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.
16     type: json
17   DefaultPasswords:
18     default: {}
19     type: json
20   RoleName:
21     default: ''
22     description: Role name on which the service is applied
23     type: string
24   RoleParameters:
25     default: {}
26     description: Parameters specific to the role
27     type: json
28   EndpointMap:
29     default: {}
30     description: Mapping of service endpoint -> protocol. Typically set
31                  via parameter_defaults in the resource registry.
32     type: json
33   PankoPassword:
34     description: The password for the panko services.
35     type: string
36     hidden: true
37   Debug:
38     default: ''
39     description: Set to True to enable debugging on all services.
40     type: string
41   PankoDebug:
42     default: ''
43     description: Set to True to enable debugging Panko services.
44     type: string
45   KeystoneRegion:
46     type: string
47     default: 'regionOne'
48     description: Keystone region for endpoint
49
50 conditions:
51   service_debug_unset: {equals : [{get_param: PankoDebug}, '']}
52
53 outputs:
54   role_data:
55     description: Role data for the Panko role.
56     value:
57       service_name: panko_base
58       config_settings:
59         panko::db::database_connection:
60           make_url:
61             scheme: {get_param: [EndpointMap, MysqlInternal, protocol]}
62             username: panko
63             password: {get_param: PankoPassword}
64             host: {get_param: [EndpointMap, MysqlInternal, host]}
65             path: /panko
66             query:
67               read_default_file: /etc/my.cnf.d/tripleo.cnf
68               read_default_group: tripleo
69         panko::debug:
70           if:
71           - service_debug_unset
72           - {get_param: Debug }
73           - {get_param: PankoDebug }
74         panko::auth::auth_url: {get_param: [EndpointMap, KeystoneInternal, uri_no_suffix] }
75         panko::keystone::authtoken::project_name: 'service'
76         panko::keystone::authtoken::user_domain_name: 'Default'
77         panko::keystone::authtoken::project_domain_name: 'Default'
78         panko::keystone::authtoken::password: {get_param: PankoPassword}
79         panko::keystone::authtoken::auth_uri: {get_param: [EndpointMap, KeystoneInternal, uri_no_suffix] }
80         panko::keystone::authtoken::auth_url: { get_param: [EndpointMap, KeystoneInternal, uri_no_suffix] }
81         panko::auth::auth_password: {get_param: PankoPassword}
82         panko::auth::auth_region: 'regionOne'
83         panko::auth::auth_tenant_name: 'service'
84       service_config_settings:
85         keystone:
86           panko::keystone::auth::public_url: {get_param: [EndpointMap, PankoPublic, uri]}
87           panko::keystone::auth::internal_url: {get_param: [EndpointMap, PankoInternal, uri]}
88           panko::keystone::auth::admin_url: {get_param: [EndpointMap, PankoAdmin, uri]}
89           panko::keystone::auth::password: {get_param: PankoPassword}
90           panko::keystone::auth::region: {get_param: KeystoneRegion}
91           panko::keystone::auth::tenant: 'service'
92         mysql:
93           panko::db::mysql::user: panko
94           panko::db::mysql::password: {get_param: PankoPassword}
95           panko::db::mysql::host: {get_param: [EndpointMap, MysqlInternal, host_nobrackets]}
96           panko::db::mysql::dbname: panko
97           panko::db::mysql::allowed_hosts:
98             - '%'
99             - "%{hiera('mysql_bind_host')}"