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: UserData}
93 name: {get_param: Hostname}
95 # Combine the NodeAdminUserData and NodeUserData mime archives
97 type: OS::Heat::MultipartMime
100 - config: {get_resource: NodeAdminUserData}
102 - config: {get_resource: NodeUserData}
105 # Creates the "heat-admin" user if configured via the environment
106 # Should return a OS::Heat::MultipartMime reference via OS::stack_id
108 type: OS::TripleO::NodeAdminUserData
110 # For optional operator additional userdata
111 # Should return a OS::Heat::MultipartMime reference via OS::stack_id
113 type: OS::TripleO::NodeUserData
116 type: OS::TripleO::SwiftStorage::Ports::InternalApiPort
118 ControlPlaneIP: {get_attr: [SwiftStorage, networks, ctlplane, 0]}
121 type: OS::TripleO::SwiftStorage::Ports::StoragePort
123 ControlPlaneIP: {get_attr: [SwiftStorage, networks, ctlplane, 0]}
126 type: OS::TripleO::SwiftStorage::Ports::StorageMgmtPort
128 ControlPlaneIP: {get_attr: [SwiftStorage, networks, ctlplane, 0]}
131 type: OS::TripleO::ObjectStorage::Net::SoftwareConfig
133 ControlPlaneIp: {get_attr: [SwiftStorage, networks, ctlplane, 0]}
134 InternalApiIpSubnet: {get_attr: [InternalApiPort, ip_subnet]}
135 StorageIpSubnet: {get_attr: [StoragePort, ip_subnet]}
136 StorageMgmtIpSubnet: {get_attr: [StorageMgmtPort, ip_subnet]}
139 type: OS::TripleO::Network::Ports::NetIpMap
141 ControlPlaneIp: {get_attr: [SwiftStorage, networks, ctlplane, 0]}
142 InternalApiIp: {get_attr: [InternalApiPort, ip_address]}
143 StorageIp: {get_attr: [StoragePort, ip_address]}
144 StorageMgmtIp: {get_attr: [StorageMgmtPort, ip_address]}
147 type: OS::TripleO::SoftwareDeployment
149 config: {get_resource: NetworkConfig}
150 server: {get_resource: SwiftStorage}
152 SwiftStorageHieraConfig:
153 type: OS::Heat::StructuredConfig
155 group: os-apply-config
160 - heat_config_%{::deploy_config_name}
164 - swift_devices_and_proxy # provided by SwiftDevicesAndProxyConfig
165 - all_nodes # provided by allNodesConfig
170 raw_data: {get_file: hieradata/common.yaml}
172 mapped_data: {get_param: ObjectStorageExtraConfig}
174 mapped_data: {get_param: ExtraConfig}
176 raw_data: {get_file: hieradata/object.yaml}
177 mapped_data: # data supplied directly to this deployment configuration, etc
178 swift::swift_hash_suffix: { get_input: swift_hash_suffix }
179 tripleo::ringbuilder::part_power: { get_input: swift_part_power }
180 tripleo::ringbuilder::replicas: {get_input: swift_replicas }
182 swift::storage::all::storage_local_net_ip: {get_input: swift_management_network}
183 swift_mount_check: {get_input: swift_mount_check }
184 tripleo::ringbuilder::min_part_hours: { get_input: swift_min_part_hours }
185 ntp::servers: {get_input: ntp_servers}
186 # NOTE(dprince): build_ring support is currently not wired in.
187 # See: https://review.openstack.org/#/c/109225/
188 tripleo::ringbuilder::build_ring: True
189 snmpd_readonly_user_name: {get_input: snmpd_readonly_user_name}
190 snmpd_readonly_user_password: {get_input: snmpd_readonly_user_password}
191 tripleo::packages::enable_install: {get_input: enable_package_install}
192 tripleo::packages::enable_upgrade: {get_input: enable_package_upgrade}
195 SwiftStorageHieraDeploy:
196 type: OS::Heat::StructuredDeployment
197 depends_on: NetworkDeployment
199 server: {get_resource: SwiftStorage}
200 config: {get_resource: SwiftStorageHieraConfig}
202 local_ip: {get_attr: [SwiftStorage, networks, ctlplane, 0]}
203 snmpd_readonly_user_name: {get_param: SnmpdReadonlyUserName}
204 snmpd_readonly_user_password: {get_param: SnmpdReadonlyUserPassword}
205 swift_hash_suffix: {get_param: HashSuffix}
206 swift_mount_check: {get_param: MountCheck}
207 swift_min_part_hours: {get_param: MinPartHours}
208 swift_part_power: {get_param: PartPower}
209 swift_replicas: { get_param: Replicas}
212 template: '["server"]'
214 server: {get_param: NtpServer}
215 enable_package_install: {get_param: EnablePackageInstall}
216 enable_package_upgrade: {get_attr: [UpdateDeployment, update_managed_packages]}
217 swift_management_network: {get_attr: [NetIpMap, net_ip_map, {get_param: [ServiceNetMap, SwiftMgmtNetwork]}]}
220 type: OS::TripleO::Tasks::PackageUpdate
223 type: OS::Heat::SoftwareDeployment
225 config: {get_resource: UpdateConfig}
226 server: {get_resource: SwiftStorage}
229 get_param: UpdateIdentifier
235 template: "IP HOST.localdomain HOST"
237 IP: {get_attr: [NetIpMap, net_ip_map, {get_param: [ServiceNetMap, ObjectStorageHostnameResolveNetwork]}]}
238 HOST: {get_attr: [SwiftStorage, name]}
239 nova_server_resource:
240 description: Heat resource handle for the swift storage server
242 {get_resource: SwiftStorage}
244 description: Swift device formatted for swift-ring-builder
247 template: 'r1z1-IP:%PORT%/d1'
249 IP: {get_attr: [NetIpMap, net_ip_map, {get_param: [ServiceNetMap, SwiftMgmtNetwork]}]}
250 internal_api_ip_address:
251 description: IP address of the server in the internal_api network
252 value: {get_attr: [InternalApiPort, ip_address]}
254 description: IP address of the server in the storage network
255 value: {get_attr: [StoragePort, ip_address]}
256 storage_mgmt_ip_address:
257 description: IP address of the server in the storage_mgmt network
258 value: {get_attr: [StorageMgmtPort, ip_address]}
260 description: identifier which changes if the node configuration may need re-applying
264 - - {get_attr: [SwiftStorageHieraDeploy, deploy_stdout]}
265 - {get_param: UpdateIdentifier}