Merge "Make various password descriptions consistent"
[apex-tripleo-heat-templates.git] / puppet / services / network / contrail-base.yaml
1 heat_template_version: pike
2
3 description: >
4   Base parameters for all Contrail 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   AAAMode:
34     description: AAAmode can be no-auth, cloud-admin or rbac
35     type: string
36     default: 'rbac'
37   AAAModeAnalytics:
38     description: AAAmode for analytics can be no-auth, cloud-admin or rbac
39     type: string
40     default: 'no-auth'
41   AdminPassword:
42     description: The password for the keystone admin account, used for monitoring, querying neutron etc.
43     type: string
44     hidden: true
45   AdminTenantName:
46     description: Keystone admin tenant name
47     type: string
48     default: 'admin'
49   AdminToken:
50     description: The keystone auth secret and db password.
51     type: string
52     hidden: true
53   AdminUser:
54     description: Keystone admin user name
55     type: string
56     default: 'admin'
57   ContrailAuth:
58     default: 'keystone'
59     description: Keystone authentication method
60     type: string
61   ContrailAnalyticsVIP:
62     default: ''
63     description: Contrail Analytics Api Virtual IP address
64     type: string
65   ContrailConfigPort:
66     default: 8082
67     description: Contrail Config Api port
68     type: number
69   ContrailConfigVIP:
70     default: ''
71     description: Contrail Config Virtual IP address
72     type: string
73   ContrailDiscoveryPort:
74     default: 5998
75     description: Contrail Config Api  port
76     type: number
77   ContrailInsecure:
78     default: false
79     description: Keystone insecure mode
80     type: boolean
81   ContrailMemcachedServer:
82     default: '127.0.0.1:12111'
83     description: Memcached server
84     type: string
85   ContrailVIP:
86     default: ''
87     description: Contrail VIP
88     type: string
89   ContrailWebuiVIP:
90     default: ''
91     description: Contrail Webui Virtual IP address
92     type: string
93   RabbitPassword:
94     description: The password for RabbitMQ
95     type: string
96     hidden: true
97   RabbitUserName:
98     default: guest
99     description: The username for RabbitMQ
100     type: string
101   RabbitClientPort:
102     default: 5672
103     description: Set rabbit subscriber port, change this if using SSL
104     type: number
105
106 conditions:
107   contrail_config_vip_unset: {equals : [{get_param: ContrailConfigVIP}, '']}
108   contrail_analytics_vip_unset: {equals : [{get_param: ContrailAnalyticsVIP}, '']}
109   contrail_webui_vip_unset: {equals : [{get_param: ContrailWebuiVIP}, '']}
110
111 outputs:
112   role_data:
113     description: Shared role data for the Contrail services.
114     value:
115       service_name: contrail_base
116       config_settings:
117         map_merge:
118         - contrail::aaa_mode: {get_param: AAAMode}
119           contrail::analytics_aaa_mode: {get_param: AAAModeAnalytics}
120           contrail::admin_password: {get_param: AdminPassword}
121           contrail::admin_tenant_name: {get_param: AdminTenantName}
122           contrail::admin_token: {get_param: AdminToken}
123           contrail::admin_user: {get_param: AdminUser}
124           contrail::auth: {get_param: ContrailAuth}
125           contrail::auth_host: {get_param: [EndpointMap, KeystoneAdmin, host] }
126           contrail::auth_port: {get_param: [EndpointMap, KeystoneAdmin, port] }
127           contrail::auth_port_public: {get_param: [EndpointMap, KeystonePublic, port] }
128           contrail::auth_protocol: {get_param: [EndpointMap, KeystonePublic, protocol] }
129           contrail::api_port: {get_param: ContrailConfigPort }
130           contrail::disc_server_port: {get_param: ContrailDiscoveryPort }
131           contrail::insecure: {get_param: ContrailInsecure}
132           contrail::memcached_server: {get_param: ContrailMemcachedServer}
133           contrail::rabbit_password: {get_param: RabbitPassword}
134           contrail::rabbit_user: {get_param: RabbitUserName}
135           contrail::rabbit_port: {get_param: RabbitClientPort}
136           contrail::vip: {get_param: ContrailVIP}
137         - 
138           if:
139           - contrail_config_vip_unset
140           - {}
141           - contrail_config_vip: {get_param: ContrailConfigVIP}
142         - 
143           if:
144           - contrail_webui_vip_unset
145           - {}
146           - contrail_webui_vip: {get_param: ContrailWebuiVIP}
147         - 
148           if:
149           - contrail_analytics_vip_unset
150           - {}
151           - contrail_analytics_vip: {get_param: ContrailAnalyticsVIP}