Puppet: overcloud compute config
[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   NeutronBridgeMappings:
95     type: string
96   NeutronEnableTunnelling:
97     type: string
98   NeutronFlatNetworks:
99     type: string
100     default: ''
101     description: If set, flat networks to configure in neutron plugins.
102   NeutronHost:
103     type: string
104   NeutronNetworkType:
105     default: 'gre'
106     description: The tenant network type for Neutron, either gre or vxlan.
107     type: string
108   NeutronNetworkVLANRanges:
109     type: string
110   NeutronPhysicalBridge:
111     default: ''
112     description: An OVS bridge to create for accessing external networks.
113     type: string
114   NeutronPublicInterface:
115     default: ''
116     description: A port to add to the NeutronPhysicalBridge.
117     type: string
118   NeutronTunnelTypes:
119     default: 'gre'
120     description: |
121         The tunnel types for the Neutron tenant network. To specify multiple
122         values, use a comma separated string, like so: 'gre,vxlan'
123     type: string
124   NeutronPublicInterfaceRawDevice:
125     default: ''
126     type: string
127   NeutronDVR:
128     default: 'False'
129     type: string
130   NeutronMechanismDrivers:
131     default: 'openvswitch'
132     description: |
133         The mechanism drivers for the Neutron tenant network. To specify multiple
134         values, use a comma separated string, like so: 'openvswitch,l2_population'
135     type: string
136   NeutronAllowL3AgentFailover:
137     default: 'True'
138     description: Allow automatic l3-agent failover
139     type: string
140   NovaApiHost:
141     type: string
142   NovaComputeDriver:
143     type: string
144     default: libvirt.LibvirtDriver
145   NovaComputeExtraConfig:
146     default: {}
147     description: |
148       NovaCompute specific configuration to inject into the cluster. Same
149       structure as ExtraConfig.
150     type: json
151   NovaComputeLibvirtType:
152     type: string
153     default: ''
154   NovaImage:
155     type: string
156     default: overcloud-compute
157   NovaPassword:
158     default: unset
159     description: The password for the nova service account, used by nova-api.
160     type: string
161     hidden: true
162   NovaPublicIP:
163     type: string
164   NtpServer:
165     type: string
166     default: ''
167   OvercloudComputeFlavor:
168     description: Use this flavor
169     type: string
170     constraints:
171       - custom_constraint: nova.flavor
172   RabbitHost:
173     type: string
174   RabbitUserName:
175     type: string
176   RabbitPassword:
177     type: string
178     hidden: true
179   SnmpdReadonlyUserName:
180     default: ro_snmp_user
181     description: The user name for SNMPd with readonly rights running on all Overcloud nodes
182     type: string
183   SnmpdReadonlyUserPassword:
184     default: unset
185     description: The user password for SNMPd with readonly rights running on all Overcloud nodes
186     type: string
187     hidden: true
188 resources:
189   NovaCompute0:
190     type: OS::Nova::Server
191     properties:
192       image:
193         {get_param: NovaImage}
194       image_update_policy:
195         get_param: ImageUpdatePolicy
196       flavor: {get_param: OvercloudComputeFlavor}
197       key_name: {get_param: KeyName}
198       networks:
199         - network: ctlplane
200       user_data_format: SOFTWARE_CONFIG
201   NovaCompute0Deployment:
202     type: OS::Heat::StructuredDeployment
203     properties:
204       signal_transport: NO_SIGNAL
205       config: {get_resource: NovaComputeConfig}
206       server: {get_resource: NovaCompute0}
207       input_values:
208         nova_compute_driver: {get_param: NovaComputeDriver}
209         nova_compute_libvirt_type: {get_param: NovaComputeLibvirtType}
210         nova_public_ip: {get_param: NovaPublicIP}
211         nova_api_host: {get_param: NovaApiHost}
212         nova_password: {get_param: NovaPassword}
213         ceilometer_dsn: {get_param: CeilometerDSN}
214         ceilometer_metering_secret: {get_param: CeilometerMeteringSecret}
215         ceilometer_password: {get_param: CeilometerPassword}
216         ceilometer_compute_agent: {get_param: CeilometerComputeAgent}
217         snmpd_readonly_user_name: {get_param: SnmpdReadonlyUserName}
218         snmpd_readonly_user_password: {get_param: SnmpdReadonlyUserPassword}
219         glance_host: {get_param: GlanceHost}
220         glance_port: {get_param: GlancePort}
221         glance_protocol: {get_param: GlanceProtocol}
222         keystone_host: {get_param: KeystoneHost}
223         neutron_flat_networks: {get_param: NeutronFlatNetworks}
224         neutron_host: {get_param: NeutronHost}
225         neutron_local_ip: {get_attr: [NovaCompute0, networks, ctlplane, 0]}
226         neutron_tenant_network_type: {get_param: NeutronNetworkType}
227         neutron_tunnel_types: {get_param: NeutronTunnelTypes}
228         neutron_network_vlan_ranges: {get_param: NeutronNetworkVLANRanges}
229         neutron_bridge_mappings: {get_param: NeutronBridgeMappings}
230         neutron_enable_tunneling: {get_param: NeutronEnableTunnelling}
231         neutron_physical_bridge: {get_param: NeutronPhysicalBridge}
232         neutron_public_interface: {get_param: NeutronPublicInterface}
233         neutron_public_interface_raw_device: {get_param: NeutronPublicInterfaceRawDevice}
234         neutron_password: {get_param: NeutronPassword}
235         neutron_agent_mode: {get_param: NeutronComputeAgentMode}
236         neutron_router_distributed: {get_param: NeutronDVR}
237         neutron_metadata_proxy_shared_secret: {get_param: NeutronMetadataProxySharedSecret}
238         neutron_mechanism_drivers: {get_param: NeutronMechanismDrivers}
239         neutron_allow_l3agent_failover: {get_param: NeutronAllowL3AgentFailover}
240         admin_password: {get_param: AdminPassword}
241         rabbit_host: {get_param: RabbitHost}
242         rabbit_username: {get_param: RabbitUserName}
243         rabbit_password: {get_param: RabbitPassword}
244         ntp_server: {get_param: NtpServer}
245   NovaCompute0AllNodesDeployment:
246     depends_on:
247       - controller0AllNodesDeployment
248       - NovaCompute0Deployment
249       - NovaCompute0PassthroughSpecific
250     type: OS::Heat::StructuredDeployment
251     properties:
252       signal_transport: {get_param: DefaultSignalTransport}
253       config: {get_param: AllNodesConfig}
254       server: {get_resource: NovaCompute0}
255   NovaCompute0Passthrough:
256     type: OS::Heat::StructuredDeployment
257     properties:
258       config: {get_resource: NovaComputePassthrough}
259       server: {get_resource: NovaCompute0}
260       signal_transport: NO_SIGNAL
261       input_values:
262         passthrough_config: {get_param: ExtraConfig}
263   NovaCompute0PassthroughSpecific:
264     depends_on: [NovaCompute0Passthrough]
265     type: OS::Heat::StructuredDeployment
266     properties:
267       config: {get_resource: NovaComputePassthroughSpecific}
268       server: {get_resource: NovaCompute0}
269       signal_transport: NO_SIGNAL
270       input_values:
271         passthrough_config_specific: {get_param: NovaComputeExtraConfig}