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.
34 Additional configuration to inject into the cluster. The JSON should have
35 the following structure:
38 [{"section": "SECTIONNAME",
40 [{"option": "OPTIONNAME",
51 [{"section": "default",
53 [{"option": "force_config_drive",
61 "value": "nova.cells.rpc_driver.CellsRPCDriver"
70 description: Flavor for block storage nodes to request when deploying.
73 - custom_constraint: nova.flavor
76 description: Glance port.
80 description: Name of an existing EC2 KeyPair to enable SSH access to the instances
91 Rabbit client subscriber parameter to specify
92 an SSL connection to the RabbitMQ host.
96 description: Set rabbit subscriber port, change this if using SSL
98 SnmpdReadonlyUserName:
100 description: The user name for SNMPd with readonly rights running on all Overcloud nodes
102 SnmpdReadonlyUserPassword:
104 description: The user password for SNMPd with readonly rights running on all Overcloud nodes
110 EnablePackageInstall:
112 description: Set to true to enable package installation via Puppet
118 Setting to a previously unused value during stack-update will trigger
119 package update on all nodes
123 type: OS::Nova::Server
127 flavor: {get_param: Flavor}
128 key_name: {get_param: KeyName}
131 user_data_format: SOFTWARE_CONFIG
132 user_data: {get_resource: NodeUserData}
135 type: OS::TripleO::NodeUserData
138 type: OS::TripleO::BlockStorage::Ports::InternalApiPort
140 ControlPlaneIP: {get_attr: [BlockStorage, networks, ctlplane, 0]}
143 type: OS::TripleO::BlockStorage::Ports::StoragePort
145 ControlPlaneIP: {get_attr: [BlockStorage, networks, ctlplane, 0]}
148 type: OS::TripleO::BlockStorage::Ports::StorageMgmtPort
150 ControlPlaneIP: {get_attr: [BlockStorage, networks, ctlplane, 0]}
153 type: OS::TripleO::BlockStorage::Net::SoftwareConfig
155 InternalApiIpSubnet: {get_attr: [InternalApiPort, ip_subnet]}
156 StorageIpSubnet: {get_attr: [StoragePort, ip_subnet]}
157 StorageMgmtIpSubnet: {get_attr: [StorageMgmtPort, ip_subnet]}
160 type: OS::TripleO::SoftwareDeployment
162 config: {get_resource: NetworkConfig}
163 server: {get_resource: BlockStorage}
165 BlockStorageDeployment:
166 type: OS::Heat::StructuredDeployment
168 server: {get_resource: BlockStorage}
169 config: {get_resource: BlockStorageConfig}
171 debug: {get_param: Debug}
172 cinder_dsn: {list_join: ['', ['mysql://cinder:', {get_param: CinderPassword}, '@', {get_param: VirtualIP} , '/cinder']]}
173 snmpd_readonly_user_name: {get_param: SnmpdReadonlyUserName}
174 snmpd_readonly_user_password: {get_param: SnmpdReadonlyUserPassword}
175 cinder_lvm_loop_device_size:
179 size: {get_param: CinderLVMLoopDeviceSize}
180 cinder_enable_iscsi_backend: {get_param: CinderEnableIscsiBackend}
181 cinder_iscsi_helper: {get_param: CinderISCSIHelper}
182 rabbit_username: {get_param: RabbitUserName}
183 rabbit_password: {get_param: RabbitPassword}
184 rabbit_client_use_ssl: {get_param: RabbitClientUseSSL}
185 rabbit_client_port: {get_param: RabbitClientPort}
188 template: '["server"]'
190 server: {get_param: NtpServer}
191 enable_package_install: {get_param: EnablePackageInstall}
192 signal_transport: NO_SIGNAL
194 # Map heat metadata into hiera datafiles
196 type: OS::Heat::StructuredConfig
198 group: os-apply-config
202 - heat_config_%{::deploy_config_name}
204 - all_nodes # provided by allNodesConfig
209 raw_data: {get_file: hieradata/common.yaml}
211 raw_data: {get_file: hieradata/volume.yaml}
213 cinder_iscsi_ip_address: local-ipv4
216 cinder::debug: {get_input: debug}
217 cinder::setup_test_volume::size: {get_input: cinder_lvm_loop_device_size}
218 cinder_iscsi_helper: {get_input: cinder_iscsi_helper}
219 cinder::database_connection: {get_input: cinder_dsn}
220 cinder::rabbit_userid: {get_input: rabbit_username}
221 cinder::rabbit_password: {get_input: rabbit_password}
222 cinder::rabbit_use_ssl: {get_input: rabbit_client_use_ssl}
223 cinder::rabbit_port: {get_input: rabbit_client_port}
224 cinder_enable_iscsi_backend: {get_input: cinder_enable_iscsi_backend}
225 ntp::servers: {get_input: ntp_servers}
226 enable_package_install: {get_input: enable_package_install}
227 snmpd_readonly_user_name: {get_input: snmpd_readonly_user_name}
228 snmpd_readonly_user_password: {get_input: snmpd_readonly_user_password}
231 type: OS::TripleO::Tasks::PackageUpdate
234 type: OS::Heat::SoftwareDeployment
236 config: {get_resource: UpdateConfig}
237 server: {get_resource: BlockStorage}
240 get_param: UpdateIdentifier
246 template: "IP HOST.localdomain HOST"
248 IP: {get_attr: [BlockStorage, networks, ctlplane, 0]}
249 HOST: {get_attr: [BlockStorage, name]}
250 nova_server_resource:
251 description: Heat resource handle for the block storage server
253 {get_resource: BlockStorage}
254 internal_api_ip_address:
255 description: IP address of the server in the internal_api network
256 value: {get_attr: [InternalApiPort, ip_address]}
258 description: IP address of the server in the storage network
259 value: {get_attr: [StoragePort, ip_address]}
260 storage_mgmt_ip_address:
261 description: IP address of the server in the storage_mgmt network
262 value: {get_attr: [StorageMgmtPort, ip_address]}