Merge "Containerize Congress API service"
[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   PankoDebug:
38     default: ''
39     description: Set to True to enable debugging Panko services.
40     type: string
41   KeystoneRegion:
42     type: string
43     default: 'regionOne'
44     description: Keystone region for endpoint
45
46 conditions:
47   service_debug_unset: {equals : [{get_param: PankoDebug}, '']}
48
49 outputs:
50   role_data:
51     description: Role data for the Panko role.
52     value:
53       service_name: panko_base
54       config_settings:
55         panko::db::database_connection:
56           make_url:
57             scheme: {get_param: [EndpointMap, MysqlInternal, protocol]}
58             username: panko
59             password: {get_param: PankoPassword}
60             host: {get_param: [EndpointMap, MysqlInternal, host]}
61             path: /panko
62             query:
63               read_default_file: /etc/my.cnf.d/tripleo.cnf
64               read_default_group: tripleo
65         panko::debug:
66           if:
67           - service_debug_unset
68           - {get_param: Debug }
69           - {get_param: PankoDebug }
70         panko::auth::auth_url: {get_param: [EndpointMap, KeystoneInternal, uri_no_suffix] }
71         panko::keystone::authtoken::project_name: 'service'
72         panko::keystone::authtoken::user_domain_name: 'Default'
73         panko::keystone::authtoken::project_domain_name: 'Default'
74         panko::keystone::authtoken::password: {get_param: PankoPassword}
75         panko::keystone::authtoken::auth_uri: {get_param: [EndpointMap, KeystoneInternal, uri_no_suffix] }
76         panko::keystone::authtoken::auth_url: { get_param: [EndpointMap, KeystoneInternal, uri_no_suffix] }
77         panko::auth::auth_password: {get_param: PankoPassword}
78         panko::auth::auth_region: 'regionOne'
79         panko::auth::auth_tenant_name: 'service'
80       service_config_settings:
81         keystone:
82           panko::keystone::auth::public_url: {get_param: [EndpointMap, PankoPublic, uri]}
83           panko::keystone::auth::internal_url: {get_param: [EndpointMap, PankoInternal, uri]}
84           panko::keystone::auth::admin_url: {get_param: [EndpointMap, PankoAdmin, uri]}
85           panko::keystone::auth::password: {get_param: PankoPassword}
86           panko::keystone::auth::region: {get_param: KeystoneRegion}
87           panko::keystone::auth::tenant: 'service'
88         mysql:
89           panko::db::mysql::user: panko
90           panko::db::mysql::password: {get_param: PankoPassword}
91           panko::db::mysql::host: {get_param: [EndpointMap, MysqlInternal, host_nobrackets]}
92           panko::db::mysql::dbname: panko
93           panko::db::mysql::allowed_hosts:
94             - '%'
95             - "%{hiera('mysql_bind_host')}"