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 type: OS::Nova::Server
60 image: {get_param: Image}
61 flavor: {get_param: Flavor}
62 key_name: {get_param: KeyName}
65 user_data_format: SOFTWARE_CONFIG
66 user_data: {get_resource: NodeUserData}
69 type: OS::TripleO::NodeUserData
72 type: OS::TripleO::SwiftStorage::Ports::InternalApiPort
74 ControlPlaneIP: {get_attr: [SwiftStorage, networks, ctlplane, 0]}
77 type: OS::TripleO::SwiftStorage::Ports::StoragePort
79 ControlPlaneIP: {get_attr: [SwiftStorage, networks, ctlplane, 0]}
82 type: OS::TripleO::SwiftStorage::Ports::StorageMgmtPort
84 ControlPlaneIP: {get_attr: [SwiftStorage, networks, ctlplane, 0]}
87 type: OS::TripleO::ObjectStorage::Net::SoftwareConfig
89 InternalApiIpSubnet: {get_attr: [InternalApiPort, ip_subnet]}
90 StorageIpSubnet: {get_attr: [StoragePort, ip_subnet]}
91 StorageMgmtIpSubnet: {get_attr: [StorageMgmtPort, ip_subnet]}
94 type: OS::TripleO::SoftwareDeployment
96 config: {get_resource: NetworkConfig}
97 server: {get_resource: SwiftStorage}
99 SwiftStorageHieraConfig:
100 type: OS::Heat::StructuredConfig
102 group: os-apply-config
106 - heat_config_%{::deploy_config_name}
112 raw_data: {get_file: hieradata/common.yaml}
114 raw_data: {get_file: hieradata/object.yaml}
115 oac_data: # data we map in from other OAC configurations
116 tripleo::ringbuilder::devices: swift.devices
117 mapped_data: # data supplied directly to this deployment configuration, etc
118 swift::swift_hash_suffix: { get_input: swift_hash_suffix }
119 tripleo::ringbuilder::part_power: { get_input: swift_part_power }
120 tripleo::ringbuilder::replicas: {get_input: swift_replicas }
122 swift::storage::all::storage_local_net_ip: {get_input: local_ip}
123 swift_mount_check: {get_input: swift_mount_check }
124 tripleo::ringbuilder::min_part_hours: { get_input: swift_min_part_hours }
125 ntp::servers: {get_input: ntp_servers}
126 # NOTE(dprince): build_ring support is currently not wired in.
127 # See: https://review.openstack.org/#/c/109225/
128 tripleo::ringbuilder::build_ring: True
129 enable_package_install: {get_input: enable_package_install}
132 SwiftStorageHieraDeploy:
133 type: OS::Heat::StructuredDeployment
135 server: {get_resource: SwiftStorage}
136 config: {get_resource: SwiftStorageHieraConfig}
137 signal_transport: NO_SIGNAL
139 local_ip: {get_attr: [SwiftStorage, networks, ctlplane, 0]}
140 snmpd_readonly_user_name: {get_param: SnmpdReadonlyUserName}
141 snmpd_readonly_user_password: {get_param: SnmpdReadonlyUserPassword}
142 swift_hash_suffix: {get_param: HashSuffix}
143 swift_mount_check: {get_param: MountCheck}
144 swift_min_part_hours: {get_param: MinPartHours}
145 swift_part_power: {get_param: PartPower}
146 swift_replicas: { get_param: Replicas}
149 template: '["server"]'
151 server: {get_param: NtpServer}
152 enable_package_install: {get_param: EnablePackageInstall}
160 IP: {get_attr: [SwiftStorage, networks, ctlplane, 0]}
161 HOST: {get_attr: [SwiftStorage, name]}
162 nova_server_resource:
163 description: Heat resource handle for the swift storage server
165 {get_resource: SwiftStorage}
167 description: Swift device formatted for swift-ring-builder
170 template: 'r1z1-IP:%PORT%/d1'
172 IP: {get_attr: [SwiftStorage, networks, ctlplane, 0]}
173 internal_api_ip_address:
174 description: IP address of the server in the internal_api network
175 value: {get_attr: [InternalApiPort, ip_address]}
177 description: IP address of the server in the storage network
178 value: {get_attr: [StoragePort, ip_address]}
179 storage_mgmt_ip_address:
180 description: IP address of the server in the storage_mgmt network
181 value: {get_attr: [StorageMgmtPort, ip_address]}