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
88 type: OS::Heat::StructuredConfig
90 group: os-apply-config
93 export_MIB: UCD-SNMP-MIB
94 readonly_user_name: {get_input: snmpd_readonly_user_name}
95 readonly_user_password: {get_input: snmpd_readonly_user_password}
97 hash: { get_input: swift_hash_suffix }
98 part-power: { get_input: swift_part_power }
99 min-part-hours: { get_input: swift_min_part_hours }
100 mount-check: { get_input: swift_mount_check }
101 replicas: {get_input: swift_replicas }
104 local_ip: { get_input: neutron_local_ip }
106 type: OS::Nova::Server
108 image: {get_param: Image}
109 flavor: {get_param: Flavor}
110 key_name: {get_param: KeyName}
113 user_data_format: SOFTWARE_CONFIG
114 user_data: {get_resource: NodeUserData}
117 type: OS::TripleO::NodeUserData
120 type: OS::TripleO::SwiftStorage::Ports::InternalApiPort
122 ControlPlaneIP: {get_attr: [SwiftStorage, networks, ctlplane, 0]}
125 type: OS::TripleO::SwiftStorage::Ports::StoragePort
127 ControlPlaneIP: {get_attr: [SwiftStorage, networks, ctlplane, 0]}
130 type: OS::TripleO::SwiftStorage::Ports::StorageMgmtPort
132 ControlPlaneIP: {get_attr: [SwiftStorage, networks, ctlplane, 0]}
135 type: OS::TripleO::ObjectStorage::Net::SoftwareConfig
137 InternalApiIpSubnet: {get_attr: [InternalApiPort, ip_subnet]}
138 StorageIpSubnet: {get_attr: [StoragePort, ip_subnet]}
139 StorageMgmtIpSubnet: {get_attr: [StorageMgmtPort, ip_subnet]}
142 type: OS::TripleO::SoftwareDeployment
144 config: {get_resource: NetworkConfig}
145 server: {get_resource: SwiftStorage}
148 type: OS::Heat::StructuredDeployment
150 server: {get_resource: SwiftStorage}
151 config: {get_resource: SwiftConfig}
152 signal_transport: NO_SIGNAL
154 neutron_local_ip: {get_attr: [SwiftStorage, networks, ctlplane, 0]}
155 snmpd_readonly_user_name: {get_param: SnmpdReadonlyUserName}
156 snmpd_readonly_user_password: {get_param: SnmpdReadonlyUserPassword}
157 swift_hash_suffix: {get_param: HashSuffix}
158 swift_mount_check: {get_param: MountCheck}
159 swift_min_part_hours: {get_param: MinPartHours}
160 swift_part_power: {get_param: PartPower}
161 swift_replicas: { get_param: Replicas}
169 IP: {get_attr: [SwiftStorage, networks, ctlplane, 0]}
170 HOST: {get_attr: [SwiftStorage, name]}
171 nova_server_resource:
172 description: Heat resource handle for the swift storage server
174 {get_resource: SwiftStorage}
176 description: Swift device formatted for swift-ring-builder
179 template: 'r1z1-IP:%PORT%/d1'
181 IP: {get_attr: [SwiftStorage, networks, ctlplane, 0]}
182 internal_api_ip_address:
183 description: IP address of the server in the internal_api network
184 value: {get_attr: [InternalApiPort, ip_address]}
186 description: IP address of the server in the storage network
187 value: {get_attr: [StoragePort, ip_address]}
188 storage_mgmt_ip_address:
189 description: IP address of the server in the storage_mgmt network
190 value: {get_attr: [StorageMgmtPort, ip_address]}