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