Merge "Secure the MySQL bind-address on the undercloud"
[apex-tripleo-heat-templates.git] / nova-compute-instance.yaml
1 heat_template_version: 2013-05-23
2 description: 'Nova Compute'
3 parameters:
4   AdminPassword:
5     default: unset
6     description: The password for the keystone admin account, used for monitoring, querying neutron etc.
7     type: string
8     hidden: true
9   AllNodesConfig:
10     type: string
11     description: OS::Heat::Config to use for all nodes deployment
12   CeilometerComputeAgent:
13     description: Indicates whether the Compute agent is present and expects nova-compute to be configured accordingly
14     type: string
15     default: ''
16     constraints:
17     - allowed_values: ['', Present]
18   CeilometerDSN:
19     type: string
20   CeilometerMeteringSecret:
21     default: unset
22     description: Secret shared by the ceilometer services.
23     type: string
24     hidden: true
25   CeilometerPassword:
26     default: unset
27     description: The password for the ceilometer service account.
28     type: string
29     hidden: true
30   DefaultSignalTransport:
31     default: CFN_SIGNAL
32     description: Transport to use for software-config signals.
33     type: string
34     constraints:
35       - allowed_values: [ CFN_SIGNAL, HEAT_SIGNAL, NO_SIGNAL ]
36   ExtraConfig:
37     default: {}
38     description: |
39       Additional configuration to inject into the cluster. The JSON should have
40       the following structure:
41         {"FILEKEY":
42           {"config":
43             [{"section": "SECTIONNAME",
44               "values":
45                 [{"option": "OPTIONNAME",
46                   "value": "VALUENAME"
47                  }
48                 ]
49              }
50             ]
51           }
52         }
53       For instance:
54         {"nova":
55           {"config":
56             [{"section": "default",
57               "values":
58                 [{"option": "force_config_drive",
59                   "value": "always"
60                  }
61                 ]
62              },
63              {"section": "cells",
64               "values":
65                 [{"option": "driver",
66                   "value": "nova.cells.rpc_driver.CellsRPCDriver"
67                  }
68                 ]
69              }
70             ]
71           }
72         }
73     type: json
74   GlanceHost:
75     type: string
76   GlancePort:
77     default: 9292
78     description: Glance port.
79     type: string
80   GlanceProtocol:
81     default: http
82     description: Protocol to use when connecting to glance, set to https for SSL.
83     type: string
84   ImageUpdatePolicy:
85     default: 'REBUILD_PRESERVE_EPHEMERAL'
86     description: What policy to use when reconstructing instances. REBUILD for rebuilds, REBUILD_PRESERVE_EPHEMERAL to preserve /mnt.
87     type: string
88   KeyName:
89     description: Name of an existing EC2 KeyPair to enable SSH access to the instances
90     type: string
91     default: default
92   KeystoneHost:
93     type: string
94   LiveUpdateComputeImage:
95     type: string
96     description: The image ID for live-updates to the overcloud compute nodes.
97     default: ''
98   LiveUpdateHost:
99     type: string
100     description: The IP address for the undercloud Glance API.
101     default: ''
102   LiveUpdatePassword:
103     type: string
104     default: ''
105     description: The live-update password for the undercloud Glance API.
106     hidden: true
107   LiveUpdateTenantName:
108     type: string
109     description: The live-update tenant name for the undercloud Glance API.
110     default: ''
111   LiveUpdateUserName:
112     type: string
113     description: The live-update username for the undercloud Glance API.
114     default: ''
115   NeutronBridgeMappings:
116     type: string
117   NeutronDSN:
118     type: string
119   NeutronEnableTunnelling:
120     type: string
121   NeutronFlatNetworks:
122     type: string
123     default: ''
124     description: If set, flat networks to configure in neutron plugins.
125   NeutronHost:
126     type: string
127   NeutronNetworkType:
128     default: 'gre'
129     description: The tenant network type for Neutron, either gre or vxlan.
130     type: string
131   NeutronNetworkVLANRanges:
132     type: string
133   NeutronPhysicalBridge:
134     default: ''
135     description: An OVS bridge to create for accessing external networks.
136     type: string
137   NeutronPublicInterface:
138     default: ''
139     description: A port to add to the NeutronPhysicalBridge.
140     type: string
141   NeutronTunnelTypes:
142     default: 'gre'
143     description: |
144         The tunnel types for the Neutron tenant network. To specify multiple
145         values, use a comma separated string, like so: 'gre,vxlan'
146     type: string
147   NovaApiHost:
148     type: string
149   NovaComputeDriver:
150     type: string
151     default: libvirt.LibvirtDriver
152   NovaComputeExtraConfig:
153     default: {}
154     description: |
155       NovaCompute specific configuration to inject into the cluster. Same
156       structure as ExtraConfig.
157     type: json
158   NovaComputeLibvirtType:
159     type: string
160     default: ''
161   NovaDSN:
162     type: string
163   NovaImage:
164     type: string
165     default: overcloud-compute
166   NovaPassword:
167     default: unset
168     description: The password for the nova service account, used by nova-api.
169     type: string
170     hidden: true
171   NovaPublicIP:
172     type: string
173   NtpServer:
174     type: string
175     default: ''
176   OvercloudComputeFlavor:
177     description: Use this flavor
178     type: string
179     default: baremetal
180   RabbitHost:
181     type: string
182   RabbitUserName:
183     type: string
184   RabbitPassword:
185     type: string
186     hidden: true
187   SnmpdReadonlyUserName:
188     default: ro_snmp_user
189     description: The user name for SNMPd with readonly rights running on all Overcloud nodes
190     type: string
191   SnmpdReadonlyUserPassword:
192     default: unset
193     description: The user password for SNMPd with readonly rights running on all Overcloud nodes
194     type: string
195     hidden: true
196 resources:
197   NovaCompute0:
198     type: OS::Nova::Server
199     properties:
200       image:
201         {get_param: NovaImage}
202       image_update_policy:
203         get_param: ImageUpdatePolicy
204       flavor: {get_param: OvercloudComputeFlavor}
205       key_name: {get_param: KeyName}
206       networks:
207         - network: ctlplane
208       user_data_format: SOFTWARE_CONFIG
209   NovaCompute0Deployment:
210     depends_on: [controller0AllNodesDeployment]
211     type: OS::Heat::StructuredDeployment
212     properties:
213       signal_transport: NO_SIGNAL
214       config: {get_resource: NovaComputeConfig}
215       server: {get_resource: NovaCompute0}
216       input_values:
217         nova_compute_driver: {get_param: NovaComputeDriver}
218         nova_compute_libvirt_type: {get_param: NovaComputeLibvirtType}
219         nova_dsn: {get_param: NovaDSN}
220         nova_public_ip: {get_param: NovaPublicIP}
221         nova_api_host: {get_param: NovaApiHost}
222         nova_password: {get_param: NovaPassword}
223         ceilometer_dsn: {get_param: CeilometerDSN}
224         ceilometer_metering_secret: {get_param: CeilometerMeteringSecret}
225         ceilometer_password: {get_param: CeilometerPassword}
226         ceilometer_compute_agent: {get_param: CeilometerComputeAgent}
227         snmpd_readonly_user_name: {get_param: SnmpdReadonlyUserName}
228         snmpd_readonly_user_password: {get_param: SnmpdReadonlyUserPassword}
229         glance_host: {get_param: GlanceHost}
230         glance_port: {get_param: GlancePort}
231         glance_protocol: {get_param: GlanceProtocol}
232         keystone_host: {get_param: KeystoneHost}
233         neutron_flat_networks: {get_param: NeutronFlatNetworks}
234         neutron_host: {get_param: NeutronHost}
235         neutron_dsn: {get_param: NeutronDSN}
236         neutron_local_ip: {get_attr: [NovaCompute0, networks, ctlplane, 0]}
237         neutron_tenant_network_type: {get_param: NeutronNetworkType}
238         neutron_tunnel_types: {get_param: NeutronTunnelTypes}
239         neutron_network_vlan_ranges: {get_param: NeutronNetworkVLANRanges}
240         neutron_bridge_mappings: {get_param: NeutronBridgeMappings}
241         neutron_enable_tunneling: {get_param: NeutronEnableTunnelling}
242         neutron_physical_bridge: {get_param: NeutronPhysicalBridge}
243         neutron_public_interface: {get_param: NeutronPublicInterface}
244         neutron_password: {get_param: NeutronPassword}
245         admin_password: {get_param: AdminPassword}
246         rabbit_host: {get_param: RabbitHost}
247         rabbit_username: {get_param: RabbitUserName}
248         rabbit_password: {get_param: RabbitPassword}
249         live_update_host: {get_param: LiveUpdateHost}
250         live_update_username: {get_param: LiveUpdateUserName}
251         live_update_password: {get_param: LiveUpdatePassword}
252         live_update_tenant_name: {get_param: LiveUpdateTenantName}
253         nova_image: {get_param: NovaImage}
254         live_update_image_id: {get_param: LiveUpdateComputeImage}
255         ntp_server: {get_param: NtpServer}
256   NovaCompute0AllNodesDeployment:
257     depends_on: [NovaCompute0Passthrough]
258     type: OS::Heat::StructuredDeployment
259     properties:
260       signal_transport: {get_param: DefaultSignalTransport}
261       config: {get_param: AllNodesConfig}
262       server: {get_resource: NovaCompute0}
263   NovaCompute0Passthrough:
264     depends_on: [NovaCompute0Deployment]
265     type: OS::Heat::StructuredDeployment
266     properties:
267       config: {get_resource: NovaComputePassthrough}
268       server: {get_resource: NovaCompute0}
269       signal_transport: NO_SIGNAL
270       input_values:
271         passthrough_config: {get_param: ExtraConfig}
272   NovaCompute0PassthroughSpecific:
273     depends_on: [NovaCompute0Passthrough]
274     type: OS::Heat::StructuredDeployment
275     properties:
276       config: {get_resource: NovaComputePassthroughSpecific}
277       server: {get_resource: NovaCompute0}
278       signal_transport: NO_SIGNAL
279       input_values:
280         passthrough_config_specific: {get_param: NovaComputeExtraConfig}