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
64 type: OS::Nova::Server
66 image: {get_param: Image}
67 flavor: {get_param: Flavor}
68 key_name: {get_param: KeyName}
71 user_data_format: SOFTWARE_CONFIG
72 user_data: {get_resource: NodeUserData}
75 type: OS::TripleO::NodeUserData
78 type: OS::TripleO::SwiftStorage::Ports::InternalApiPort
80 ControlPlaneIP: {get_attr: [SwiftStorage, networks, ctlplane, 0]}
83 type: OS::TripleO::SwiftStorage::Ports::StoragePort
85 ControlPlaneIP: {get_attr: [SwiftStorage, networks, ctlplane, 0]}
88 type: OS::TripleO::SwiftStorage::Ports::StorageMgmtPort
90 ControlPlaneIP: {get_attr: [SwiftStorage, networks, ctlplane, 0]}
93 type: OS::TripleO::ObjectStorage::Net::SoftwareConfig
95 InternalApiIpSubnet: {get_attr: [InternalApiPort, ip_subnet]}
96 StorageIpSubnet: {get_attr: [StoragePort, ip_subnet]}
97 StorageMgmtIpSubnet: {get_attr: [StorageMgmtPort, ip_subnet]}
100 type: OS::TripleO::SoftwareDeployment
102 config: {get_resource: NetworkConfig}
103 server: {get_resource: SwiftStorage}
105 SwiftStorageHieraConfig:
106 type: OS::Heat::StructuredConfig
108 group: os-apply-config
112 - heat_config_%{::deploy_config_name}
118 raw_data: {get_file: hieradata/common.yaml}
120 raw_data: {get_file: hieradata/object.yaml}
121 oac_data: # data we map in from other OAC configurations
122 tripleo::ringbuilder::devices: swift.devices
123 mapped_data: # data supplied directly to this deployment configuration, etc
124 swift::swift_hash_suffix: { get_input: swift_hash_suffix }
125 tripleo::ringbuilder::part_power: { get_input: swift_part_power }
126 tripleo::ringbuilder::replicas: {get_input: swift_replicas }
128 swift::storage::all::storage_local_net_ip: {get_input: local_ip}
129 swift_mount_check: {get_input: swift_mount_check }
130 tripleo::ringbuilder::min_part_hours: { get_input: swift_min_part_hours }
131 ntp::servers: {get_input: ntp_servers}
132 # NOTE(dprince): build_ring support is currently not wired in.
133 # See: https://review.openstack.org/#/c/109225/
134 tripleo::ringbuilder::build_ring: True
135 enable_package_install: {get_input: enable_package_install}
138 SwiftStorageHieraDeploy:
139 type: OS::Heat::StructuredDeployment
141 server: {get_resource: SwiftStorage}
142 config: {get_resource: SwiftStorageHieraConfig}
143 signal_transport: NO_SIGNAL
145 local_ip: {get_attr: [SwiftStorage, networks, ctlplane, 0]}
146 snmpd_readonly_user_name: {get_param: SnmpdReadonlyUserName}
147 snmpd_readonly_user_password: {get_param: SnmpdReadonlyUserPassword}
148 swift_hash_suffix: {get_param: HashSuffix}
149 swift_mount_check: {get_param: MountCheck}
150 swift_min_part_hours: {get_param: MinPartHours}
151 swift_part_power: {get_param: PartPower}
152 swift_replicas: { get_param: Replicas}
155 template: '["server"]'
157 server: {get_param: NtpServer}
158 enable_package_install: {get_param: EnablePackageInstall}
161 type: OS::TripleO::Tasks::PackageUpdate
164 type: OS::Heat::SoftwareDeployment
166 config: {get_resource: UpdateConfig}
167 server: {get_resource: SwiftStorage}
170 get_param: UpdateIdentifier
178 IP: {get_attr: [SwiftStorage, networks, ctlplane, 0]}
179 HOST: {get_attr: [SwiftStorage, name]}
180 nova_server_resource:
181 description: Heat resource handle for the swift storage server
183 {get_resource: SwiftStorage}
185 description: Swift device formatted for swift-ring-builder
188 template: 'r1z1-IP:%PORT%/d1'
190 IP: {get_attr: [SwiftStorage, networks, ctlplane, 0]}
191 internal_api_ip_address:
192 description: IP address of the server in the internal_api network
193 value: {get_attr: [InternalApiPort, ip_address]}
195 description: IP address of the server in the storage network
196 value: {get_attr: [StoragePort, ip_address]}
197 storage_mgmt_ip_address:
198 description: IP address of the server in the storage_mgmt network
199 value: {get_attr: [StorageMgmtPort, ip_address]}