1 heat_template_version: 2015-04-30
2 description: 'Common Swift Storage Configuration'
7 Additional configuration to inject into the cluster. The JSON should have
8 the following structure:
11 [{"section": "SECTIONNAME",
13 [{"option": "OPTIONNAME",
24 [{"section": "default",
26 [{"option": "force_config_drive",
34 "value": "nova.cells.rpc_driver.CellsRPCDriver"
43 description: Flavor for Swift storage nodes to request when deploying.
46 - custom_constraint: nova.flavor
49 description: A random string to be used as a salt when hashing to determine mappings
54 default: overcloud-swift-storage
58 description: Name of an existing EC2 KeyPair to enable SSH access to the instances
62 description: Value of mount_check in Swift account/container/object -server.conf
67 description: The minimum time (in hours) before a partition in a ring can be moved following a rebalance.
70 description: Partition Power to use when building Swift rings
75 description: How many replicas to use in the swift rings.
76 SnmpdReadonlyUserName:
78 description: The user name for SNMPd with readonly rights running on all Overcloud nodes
80 SnmpdReadonlyUserPassword:
82 description: The user password for SNMPd with readonly rights running on all Overcloud nodes
89 Setting to a previously unused value during stack-update will trigger
90 package update on all nodes
93 default: '' # Defaults to Heat created hostname
97 type: OS::Heat::StructuredConfig
99 group: os-apply-config
102 export_MIB: UCD-SNMP-MIB
103 readonly_user_name: {get_input: snmpd_readonly_user_name}
104 readonly_user_password: {get_input: snmpd_readonly_user_password}
106 hash: { get_input: swift_hash_suffix }
107 part-power: { get_input: swift_part_power }
108 min-part-hours: { get_input: swift_min_part_hours }
109 mount-check: { get_input: swift_mount_check }
110 replicas: {get_input: swift_replicas }
113 local_ip: { get_input: neutron_local_ip }
115 type: OS::Nova::Server
117 image: {get_param: Image}
118 flavor: {get_param: Flavor}
119 key_name: {get_param: KeyName}
122 user_data_format: SOFTWARE_CONFIG
123 user_data: {get_resource: NodeUserData}
124 name: {get_param: Hostname}
127 type: OS::TripleO::NodeUserData
130 type: OS::TripleO::SwiftStorage::Ports::InternalApiPort
132 ControlPlaneIP: {get_attr: [SwiftStorage, networks, ctlplane, 0]}
135 type: OS::TripleO::SwiftStorage::Ports::StoragePort
137 ControlPlaneIP: {get_attr: [SwiftStorage, networks, ctlplane, 0]}
140 type: OS::TripleO::SwiftStorage::Ports::StorageMgmtPort
142 ControlPlaneIP: {get_attr: [SwiftStorage, networks, ctlplane, 0]}
145 type: OS::TripleO::ObjectStorage::Net::SoftwareConfig
147 InternalApiIpSubnet: {get_attr: [InternalApiPort, ip_subnet]}
148 StorageIpSubnet: {get_attr: [StoragePort, ip_subnet]}
149 StorageMgmtIpSubnet: {get_attr: [StorageMgmtPort, ip_subnet]}
152 type: OS::TripleO::SoftwareDeployment
154 config: {get_resource: NetworkConfig}
155 server: {get_resource: SwiftStorage}
158 type: OS::Heat::StructuredDeployment
160 server: {get_resource: SwiftStorage}
161 config: {get_resource: SwiftConfig}
162 signal_transport: NO_SIGNAL
164 neutron_local_ip: {get_attr: [SwiftStorage, networks, ctlplane, 0]}
165 snmpd_readonly_user_name: {get_param: SnmpdReadonlyUserName}
166 snmpd_readonly_user_password: {get_param: SnmpdReadonlyUserPassword}
167 swift_hash_suffix: {get_param: HashSuffix}
168 swift_mount_check: {get_param: MountCheck}
169 swift_min_part_hours: {get_param: MinPartHours}
170 swift_part_power: {get_param: PartPower}
171 swift_replicas: { get_param: Replicas}
179 IP: {get_attr: [SwiftStorage, networks, ctlplane, 0]}
180 HOST: {get_attr: [SwiftStorage, name]}
181 nova_server_resource:
182 description: Heat resource handle for the swift storage server
184 {get_resource: SwiftStorage}
186 description: Swift device formatted for swift-ring-builder
189 template: 'r1z1-IP:%PORT%/d1'
191 IP: {get_attr: [SwiftStorage, networks, ctlplane, 0]}
192 internal_api_ip_address:
193 description: IP address of the server in the internal_api network
194 value: {get_attr: [InternalApiPort, ip_address]}
196 description: IP address of the server in the storage network
197 value: {get_attr: [StoragePort, ip_address]}
198 storage_mgmt_ip_address:
199 description: IP address of the server in the storage_mgmt network
200 value: {get_attr: [StorageMgmtPort, ip_address]}