1 heat_template_version: 2014-10-16
2 description: 'Block Storage Configuration w/ 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: Set to True to enable debugging on all services.
29 Additional configuration to inject into the cluster. The JSON should have
30 the following structure:
33 [{"section": "SECTIONNAME",
35 [{"option": "OPTIONNAME",
46 [{"section": "default",
48 [{"option": "force_config_drive",
56 "value": "nova.cells.rpc_driver.CellsRPCDriver"
65 description: Flavor for block storage nodes to request when deploying.
68 - custom_constraint: nova.flavor
71 description: Glance port.
75 description: Name of an existing EC2 KeyPair to enable SSH access to the instances
86 Rabbit client subscriber parameter to specify
87 an SSL connection to the RabbitMQ host.
91 description: Set rabbit subscriber port, change this if using SSL
93 SnmpdReadonlyUserName:
95 description: The user name for SNMPd with readonly rights running on all Overcloud nodes
97 SnmpdReadonlyUserPassword:
99 description: The user password for SNMPd with readonly rights running on all Overcloud nodes
105 EnablePackageInstall:
107 description: Set to true to enable package installation via Puppet
112 type: OS::Nova::Server
116 flavor: {get_param: Flavor}
117 key_name: {get_param: KeyName}
118 user_data_format: SOFTWARE_CONFIG
122 BlockStorageDeployment:
123 type: OS::Heat::StructuredDeployment
125 server: {get_resource: BlockStorage}
126 config: {get_resource: BlockStorageConfig}
128 debug: {get_param: Debug}
129 cinder_dsn: {list_join: ['', ['mysql://cinder:unset@', {get_param: VirtualIP} , '/cinder']]}
130 snmpd_readonly_user_name: {get_param: SnmpdReadonlyUserName}
131 snmpd_readonly_user_password: {get_param: SnmpdReadonlyUserPassword}
132 cinder_lvm_loop_device_size:
136 size: {get_param: CinderLVMLoopDeviceSize}
137 cinder_enable_iscsi_backend: {get_param: CinderEnableIscsiBackend}
138 cinder_iscsi_helper: {get_param: CinderISCSIHelper}
143 host: {get_param: VirtualIP}
144 rabbit_username: {get_param: RabbitUserName}
145 rabbit_password: {get_param: RabbitPassword}
146 rabbit_client_use_ssl: {get_param: RabbitClientUseSSL}
147 rabbit_client_port: {get_param: RabbitClientPort}
150 template: '["server"]'
152 server: {get_param: NtpServer}
153 enable_package_install: {get_param: EnablePackageInstall}
154 signal_transport: NO_SIGNAL
156 # Map heat metadata into hiera datafiles
158 type: OS::Heat::StructuredConfig
160 group: os-apply-config
164 - heat_config_%{::deploy_config_name}
169 raw_data: {get_file: hieradata/common.yaml}
171 raw_data: {get_file: hieradata/volume.yaml}
173 cinder_iscsi_ip_address: local-ipv4
176 cinder::debug: {get_input: debug}
177 cinder::setup_test_volume::size: {get_input: cinder_lvm_loop_device_size}
178 cinder_iscsi_helper: {get_input: cinder_iscsi_helper}
179 cinder::database_connection: {get_input: cinder_dsn}
180 cinder::rabbit_hosts: {get_input: rabbit_hosts}
181 cinder::rabbit_userid: {get_input: rabbit_username}
182 cinder::rabbit_password: {get_input: rabbit_password}
183 cinder::rabbit_use_ssl: {get_input: rabbit_client_use_ssl}
184 cinder::rabbit_port: {get_input: rabbit_client_port}
185 cinder_enable_iscsi_backend: {get_input: cinder_enable_iscsi_backend}
186 ntp::servers: {get_input: ntp_servers}
187 enable_package_install: {get_input: enable_package_install}
188 snmpd_readonly_user_name: {get_input: snmpd_readonly_user_name}
189 snmpd_readonly_user_password: {get_input: snmpd_readonly_user_password}
195 template: "IP HOST HOST.novalocal"
197 IP: {get_attr: [BlockStorage, networks, ctlplane, 0]}
198 HOST: {get_attr: [BlockStorage, name]}
199 nova_server_resource:
200 description: Heat resource handle for the block storage server
202 {get_resource: BlockStorage}