Change flat network name for nosdn fdio scenario
[apex-tripleo-heat-templates.git] / puppet / services / sahara-base.yaml
1 heat_template_version: pike
2
3 description: >
4   OpenStack Sahara base service. Shared for all Sahara services.
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   RabbitPassword:
34     description: The password for RabbitMQ
35     type: string
36     hidden: true
37   RabbitUserName:
38     default: guest
39     description: The username for RabbitMQ
40     type: string
41   RabbitClientUseSSL:
42     default: false
43     description: >
44         Rabbit client subscriber parameter to specify
45         an SSL connection to the RabbitMQ host.
46     type: string
47   RabbitClientPort:
48     default: 5672
49     description: Set rabbit subscriber port, change this if using SSL
50     type: number
51   SaharaPassword:
52     description: The password for the sahara service account, used by sahara-api.
53     type: string
54     hidden: true
55   Debug:
56     type: string
57     default: ''
58     description: Set to True to enable debugging on all services.
59   SaharaDebug:
60     default: ''
61     description: Set to True to enable debugging Sahara services.
62     type: string
63   SaharaPlugins:
64     default: ["ambari","cdh","mapr","vanilla","spark","storm"]
65     description: Sahara enabled plugin list
66     type: comma_delimited_list
67   NotificationDriver:
68     type: string
69     default: 'messagingv2'
70     description: Driver or drivers to handle sending notifications.
71     constraints:
72       - allowed_values: [ 'messagingv2', 'noop' ]
73
74 conditions:
75   service_debug_unset: {equals : [{get_param: SaharaDebug}, '']}
76
77 outputs:
78   role_data:
79     description: Role data for the Sahara base service.
80     value:
81       service_name: sahara_base
82       config_settings:
83         sahara::database_connection:
84           make_url:
85             scheme: {get_param: [EndpointMap, MysqlInternal, protocol]}
86             username: sahara
87             password: {get_param: SaharaPassword}
88             host: {get_param: [EndpointMap, MysqlInternal, host]}
89             path: /sahara
90             query:
91               read_default_file: /etc/my.cnf.d/tripleo.cnf
92               read_default_group: tripleo
93         sahara::notify::notification_driver: {get_param: NotificationDriver}
94         sahara::rabbit_password: {get_param: RabbitPassword}
95         sahara::rabbit_user: {get_param: RabbitUserName}
96         sahara::rabbit_use_ssl: {get_param: RabbitClientUseSSL}
97         sahara::rabbit_port: {get_param: RabbitClientPort}
98         sahara::debug:
99           if:
100           - service_debug_unset
101           - {get_param: Debug }
102           - {get_param: SaharaDebug }
103         # Remove admin_password when https://review.openstack.org/442619 is merged.
104         sahara::admin_password: {get_param: SaharaPassword}
105         sahara::use_neutron: true
106         sahara::plugins: {get_param: SaharaPlugins}
107         sahara::rpc_backend: rabbit
108         sahara::db::database_db_max_retries: -1
109         sahara::db::database_max_retries: -1
110         sahara::keystone::authtoken::auth_uri: {get_param: [EndpointMap, KeystoneInternal, uri_no_suffix]}
111         sahara::keystone::authtoken::auth_url: {get_param: [EndpointMap, KeystoneInternal, uri_no_suffix]}
112         sahara::keystone::authtoken::password: {get_param: SaharaPassword}
113         sahara::keystone::authtoken::project_name: 'service'