1 heat_template_version: 2015-04-30
2 description: 'OpenStack cinder storage configured by Puppet'
5 default: overcloud-cinder-volume
7 CinderEnableIscsiBackend:
9 description: Whether to enable or not the Iscsi backend for Cinder
13 description: The iSCSI helper to use with cinder.
15 CinderLVMLoopDeviceSize:
17 description: The size of the loopback file used by the cinder LVM driver.
21 description: The password for the cinder service and db account, used by cinder-api.
26 description: Set to True to enable debugging on all services.
28 VirtualIP: # deprecated. Use per service VIPs instead.
34 Additional hiera configuration to inject into the cluster. Note
35 that BlockStorageExtraConfig takes precedence over ExtraConfig.
37 BlockStorageExtraConfig:
40 Role specific additional hiera configuration to inject into the cluster.
43 description: Flavor for block storage nodes to request when deploying.
46 - custom_constraint: nova.flavor
49 description: Glance port.
53 description: Protocol to use when connecting to glance, set to https for SSL.
57 description: Name of an existing EC2 KeyPair to enable SSH access to the instances
68 Rabbit client subscriber parameter to specify
69 an SSL connection to the RabbitMQ host.
73 description: Set rabbit subscriber port, change this if using SSL
75 SnmpdReadonlyUserName:
77 description: The user name for SNMPd with readonly rights running on all Overcloud nodes
79 SnmpdReadonlyUserPassword:
81 description: The user password for SNMPd with readonly rights running on all Overcloud nodes
89 description: Set to true to enable package installation via Puppet
95 Setting to a previously unused value during stack-update will trigger
96 package update on all nodes
99 default: '' # Defaults to Heat created hostname
102 description: Mapping of service_name -> network name. Typically set
103 via parameter_defaults in the resource registry.
114 type: OS::Nova::Server
118 flavor: {get_param: Flavor}
119 key_name: {get_param: KeyName}
122 user_data_format: SOFTWARE_CONFIG
123 user_data: {get_resource: UserData}
124 name: {get_param: Hostname}
126 # Combine the NodeAdminUserData and NodeUserData mime archives
128 type: OS::Heat::MultipartMime
131 - config: {get_resource: NodeAdminUserData}
133 - config: {get_resource: NodeUserData}
136 # Creates the "heat-admin" user if configured via the environment
137 # Should return a OS::Heat::MultipartMime reference via OS::stack_id
139 type: OS::TripleO::NodeAdminUserData
141 # For optional operator additional userdata
142 # Should return a OS::Heat::MultipartMime reference via OS::stack_id
144 type: OS::TripleO::NodeUserData
147 type: OS::TripleO::BlockStorage::Ports::InternalApiPort
149 ControlPlaneIP: {get_attr: [BlockStorage, networks, ctlplane, 0]}
152 type: OS::TripleO::BlockStorage::Ports::StoragePort
154 ControlPlaneIP: {get_attr: [BlockStorage, networks, ctlplane, 0]}
157 type: OS::TripleO::BlockStorage::Ports::StorageMgmtPort
159 ControlPlaneIP: {get_attr: [BlockStorage, networks, ctlplane, 0]}
162 type: OS::TripleO::BlockStorage::Net::SoftwareConfig
164 ControlPlaneIp: {get_attr: [BlockStorage, networks, ctlplane, 0]}
165 InternalApiIpSubnet: {get_attr: [InternalApiPort, ip_subnet]}
166 StorageIpSubnet: {get_attr: [StoragePort, ip_subnet]}
167 StorageMgmtIpSubnet: {get_attr: [StorageMgmtPort, ip_subnet]}
170 type: OS::TripleO::Network::Ports::NetIpMap
172 ControlPlaneIp: {get_attr: [BlockStorage, networks, ctlplane, 0]}
173 InternalApiIp: {get_attr: [InternalApiPort, ip_address]}
174 StorageIp: {get_attr: [StoragePort, ip_address]}
175 StorageMgmtIp: {get_attr: [StorageMgmtPort, ip_address]}
178 type: OS::TripleO::SoftwareDeployment
180 config: {get_resource: NetworkConfig}
181 server: {get_resource: BlockStorage}
183 BlockStorageDeployment:
184 type: OS::Heat::StructuredDeployment
185 depends_on: NetworkDeployment
187 server: {get_resource: BlockStorage}
188 config: {get_resource: BlockStorageConfig}
190 debug: {get_param: Debug}
191 cinder_dsn: {list_join: ['', ['mysql://cinder:', {get_param: CinderPassword}, '@', {get_param: MysqlVirtualIP} , '/cinder']]}
192 snmpd_readonly_user_name: {get_param: SnmpdReadonlyUserName}
193 snmpd_readonly_user_password: {get_param: SnmpdReadonlyUserPassword}
194 cinder_lvm_loop_device_size:
198 size: {get_param: CinderLVMLoopDeviceSize}
199 cinder_enable_iscsi_backend: {get_param: CinderEnableIscsiBackend}
200 cinder_iscsi_helper: {get_param: CinderISCSIHelper}
201 cinder_iscsi_ip_address: {get_attr: [NetIpMap, net_ip_map, {get_param: [ServiceNetMap, CinderIscsiNetwork]}]}
205 - - {get_param: GlanceProtocol}
207 - {get_param: GlanceApiVirtualIP}
209 - {get_param: GlancePort}
210 rabbit_username: {get_param: RabbitUserName}
211 rabbit_password: {get_param: RabbitPassword}
212 rabbit_client_use_ssl: {get_param: RabbitClientUseSSL}
213 rabbit_client_port: {get_param: RabbitClientPort}
216 template: '["server"]'
218 server: {get_param: NtpServer}
219 enable_package_install: {get_param: EnablePackageInstall}
221 # Map heat metadata into hiera datafiles
223 type: OS::Heat::StructuredConfig
225 group: os-apply-config
230 - heat_config_%{::deploy_config_name}
234 - all_nodes # provided by allNodesConfig
239 raw_data: {get_file: hieradata/common.yaml}
241 mapped_data: {get_param: BlockStorageExtraConfig}
243 mapped_data: {get_param: ExtraConfig}
245 raw_data: {get_file: hieradata/volume.yaml}
248 cinder::debug: {get_input: debug}
249 cinder::setup_test_volume::size: {get_input: cinder_lvm_loop_device_size}
250 cinder_iscsi_helper: {get_input: cinder_iscsi_helper}
251 cinder::database_connection: {get_input: cinder_dsn}
252 cinder::rabbit_userid: {get_input: rabbit_username}
253 cinder::rabbit_password: {get_input: rabbit_password}
254 cinder::rabbit_use_ssl: {get_input: rabbit_client_use_ssl}
255 cinder::rabbit_port: {get_input: rabbit_client_port}
256 cinder_enable_iscsi_backend: {get_input: cinder_enable_iscsi_backend}
257 cinder_iscsi_ip_address: {get_input: cinder_iscsi_ip_address}
258 cinder::glance::glance_api_servers: {get_input: glance_api_servers}
259 ntp::servers: {get_input: ntp_servers}
260 tripleo::packages::enable_install: {get_input: enable_package_install}
261 snmpd_readonly_user_name: {get_input: snmpd_readonly_user_name}
262 snmpd_readonly_user_password: {get_input: snmpd_readonly_user_password}
265 type: OS::TripleO::Tasks::PackageUpdate
268 type: OS::Heat::SoftwareDeployment
270 config: {get_resource: UpdateConfig}
271 server: {get_resource: BlockStorage}
274 get_param: UpdateIdentifier
280 template: "IP HOST.localdomain HOST"
282 IP: {get_attr: [NetIpMap, net_ip_map, {get_param: [ServiceNetMap, BlockStorageHostnameResolveNetwork]}]}
283 HOST: {get_attr: [BlockStorage, name]}
284 nova_server_resource:
285 description: Heat resource handle for the block storage server
287 {get_resource: BlockStorage}
288 internal_api_ip_address:
289 description: IP address of the server in the internal_api network
290 value: {get_attr: [InternalApiPort, ip_address]}
292 description: IP address of the server in the storage network
293 value: {get_attr: [StoragePort, ip_address]}
294 storage_mgmt_ip_address:
295 description: IP address of the server in the storage_mgmt network
296 value: {get_attr: [StorageMgmtPort, ip_address]}
298 description: identifier which changes if the node configuration may need re-applying
299 value: {get_attr: [BlockStorageDeployment, deploy_stdout]}