1 heat_template_version: 2015-04-30
2 description: 'OpenStack swift storage node configured by Puppet'
5 description: Flavor for Swift storage nodes to request when deploying.
8 - custom_constraint: nova.flavor
11 description: A random string to be used as a salt when hashing to determine mappings
16 default: overcloud-swift-storage
20 description: Name of an existing EC2 KeyPair to enable SSH access to the instances
24 description: Value of mount_check in Swift account/container/object -server.conf
29 description: The minimum time (in hours) before a partition in a ring can be moved following a rebalance.
32 description: Partition Power to use when building Swift rings
37 description: How many replicas to use in the swift rings.
38 SnmpdReadonlyUserName:
40 description: The user name for SNMPd with readonly rights running on all Overcloud nodes
42 SnmpdReadonlyUserPassword:
44 description: The user password for SNMPd with readonly rights running on all Overcloud nodes
52 description: Set to true to enable package installation via Puppet
58 Setting to a previously unused value during stack-update will trigger
59 package update on all nodes
62 description: Mapping of service_name -> network name. Typically set
63 via parameter_defaults in the resource registry.
67 default: '' # Defaults to Heat created hostname
71 Additional hiera configuration to inject into the cluster. Note
72 that ObjectStorageExtraConfig takes precedence over ExtraConfig.
74 ObjectStorageExtraConfig:
77 Role specific additional hiera configuration to inject into the cluster.
84 type: OS::Nova::Server
86 image: {get_param: Image}
87 flavor: {get_param: Flavor}
88 key_name: {get_param: KeyName}
91 user_data_format: SOFTWARE_CONFIG
92 user_data: {get_resource: NodeUserData}
93 name: {get_param: Hostname}
96 type: OS::TripleO::NodeUserData
99 type: OS::TripleO::SwiftStorage::Ports::InternalApiPort
101 ControlPlaneIP: {get_attr: [SwiftStorage, networks, ctlplane, 0]}
104 type: OS::TripleO::SwiftStorage::Ports::StoragePort
106 ControlPlaneIP: {get_attr: [SwiftStorage, networks, ctlplane, 0]}
109 type: OS::TripleO::SwiftStorage::Ports::StorageMgmtPort
111 ControlPlaneIP: {get_attr: [SwiftStorage, networks, ctlplane, 0]}
114 type: OS::TripleO::ObjectStorage::Net::SoftwareConfig
116 InternalApiIpSubnet: {get_attr: [InternalApiPort, ip_subnet]}
117 StorageIpSubnet: {get_attr: [StoragePort, ip_subnet]}
118 StorageMgmtIpSubnet: {get_attr: [StorageMgmtPort, ip_subnet]}
121 type: OS::TripleO::Network::Ports::NetIpMap
123 InternalApiIp: {get_attr: [InternalApiPort, ip_address]}
124 StorageIp: {get_attr: [StoragePort, ip_address]}
125 StorageMgmtIp: {get_attr: [StorageMgmtPort, ip_address]}
128 type: OS::TripleO::SoftwareDeployment
130 config: {get_resource: NetworkConfig}
131 server: {get_resource: SwiftStorage}
133 SwiftStorageHieraConfig:
134 type: OS::Heat::StructuredConfig
136 group: os-apply-config
140 - heat_config_%{::deploy_config_name}
144 - swift_devices_and_proxy # provided by SwiftDevicesAndProxyConfig
145 - all_nodes # provided by allNodesConfig
150 raw_data: {get_file: hieradata/common.yaml}
152 mapped_data: {get_param: ObjectStorageExtraConfig}
154 mapped_data: {get_param: ExtraConfig}
156 raw_data: {get_file: hieradata/object.yaml}
157 mapped_data: # data supplied directly to this deployment configuration, etc
158 swift::swift_hash_suffix: { get_input: swift_hash_suffix }
159 tripleo::ringbuilder::part_power: { get_input: swift_part_power }
160 tripleo::ringbuilder::replicas: {get_input: swift_replicas }
162 swift::storage::all::storage_local_net_ip: {get_input: swift_management_network}
163 swift_mount_check: {get_input: swift_mount_check }
164 tripleo::ringbuilder::min_part_hours: { get_input: swift_min_part_hours }
165 ntp::servers: {get_input: ntp_servers}
166 # NOTE(dprince): build_ring support is currently not wired in.
167 # See: https://review.openstack.org/#/c/109225/
168 tripleo::ringbuilder::build_ring: True
169 snmpd_readonly_user_name: {get_input: snmpd_readonly_user_name}
170 snmpd_readonly_user_password: {get_input: snmpd_readonly_user_password}
171 tripleo::packages::enable_install: {get_input: enable_package_install}
174 SwiftStorageHieraDeploy:
175 type: OS::Heat::StructuredDeployment
176 depends_on: NetworkDeployment
178 server: {get_resource: SwiftStorage}
179 config: {get_resource: SwiftStorageHieraConfig}
181 local_ip: {get_attr: [SwiftStorage, networks, ctlplane, 0]}
182 snmpd_readonly_user_name: {get_param: SnmpdReadonlyUserName}
183 snmpd_readonly_user_password: {get_param: SnmpdReadonlyUserPassword}
184 swift_hash_suffix: {get_param: HashSuffix}
185 swift_mount_check: {get_param: MountCheck}
186 swift_min_part_hours: {get_param: MinPartHours}
187 swift_part_power: {get_param: PartPower}
188 swift_replicas: { get_param: Replicas}
191 template: '["server"]'
193 server: {get_param: NtpServer}
194 enable_package_install: {get_param: EnablePackageInstall}
195 swift_management_network: {get_attr: [NetIpMap, net_ip_map, {get_param: [ServiceNetMap, SwiftMgmtNetwork]}]}
198 type: OS::TripleO::Tasks::PackageUpdate
201 type: OS::Heat::SoftwareDeployment
203 config: {get_resource: UpdateConfig}
204 server: {get_resource: SwiftStorage}
207 get_param: UpdateIdentifier
213 template: "IP HOST.localdomain HOST"
215 IP: {get_attr: [NetIpMap, net_ip_map, {get_param: [ServiceNetMap, ObjectStorageHostnameResolveNetwork]}]}
216 HOST: {get_attr: [SwiftStorage, name]}
217 nova_server_resource:
218 description: Heat resource handle for the swift storage server
220 {get_resource: SwiftStorage}
222 description: Swift device formatted for swift-ring-builder
225 template: 'r1z1-IP:%PORT%/d1'
227 IP: {get_attr: [NetIpMap, net_ip_map, {get_param: [ServiceNetMap, SwiftMgmtNetwork]}]}
228 internal_api_ip_address:
229 description: IP address of the server in the internal_api network
230 value: {get_attr: [InternalApiPort, ip_address]}
232 description: IP address of the server in the storage network
233 value: {get_attr: [StoragePort, ip_address]}
234 storage_mgmt_ip_address:
235 description: IP address of the server in the storage_mgmt network
236 value: {get_attr: [StorageMgmtPort, ip_address]}
238 description: identifier which changes if the node configuration may need re-applying
239 value: {get_attr: [SwiftStorageHieraDeploy, deploy_stdout]}