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
94 type: OS::Heat::StructuredConfig
96 group: os-apply-config
99 export_MIB: UCD-SNMP-MIB
100 readonly_user_name: {get_input: snmpd_readonly_user_name}
101 readonly_user_password: {get_input: snmpd_readonly_user_password}
103 hash: { get_input: swift_hash_suffix }
104 part-power: { get_input: swift_part_power }
105 min-part-hours: { get_input: swift_min_part_hours }
106 mount-check: { get_input: swift_mount_check }
107 replicas: {get_input: swift_replicas }
110 local_ip: { get_input: neutron_local_ip }
112 type: OS::Nova::Server
114 image: {get_param: Image}
115 flavor: {get_param: Flavor}
116 key_name: {get_param: KeyName}
119 user_data_format: SOFTWARE_CONFIG
120 user_data: {get_resource: NodeUserData}
123 type: OS::TripleO::NodeUserData
126 type: OS::TripleO::SwiftStorage::Ports::InternalApiPort
128 ControlPlaneIP: {get_attr: [SwiftStorage, networks, ctlplane, 0]}
131 type: OS::TripleO::SwiftStorage::Ports::StoragePort
133 ControlPlaneIP: {get_attr: [SwiftStorage, networks, ctlplane, 0]}
136 type: OS::TripleO::SwiftStorage::Ports::StorageMgmtPort
138 ControlPlaneIP: {get_attr: [SwiftStorage, networks, ctlplane, 0]}
141 type: OS::TripleO::ObjectStorage::Net::SoftwareConfig
143 InternalApiIpSubnet: {get_attr: [InternalApiPort, ip_subnet]}
144 StorageIpSubnet: {get_attr: [StoragePort, ip_subnet]}
145 StorageMgmtIpSubnet: {get_attr: [StorageMgmtPort, ip_subnet]}
148 type: OS::TripleO::SoftwareDeployment
150 config: {get_resource: NetworkConfig}
151 server: {get_resource: SwiftStorage}
154 type: OS::Heat::StructuredDeployment
156 server: {get_resource: SwiftStorage}
157 config: {get_resource: SwiftConfig}
158 signal_transport: NO_SIGNAL
160 neutron_local_ip: {get_attr: [SwiftStorage, networks, ctlplane, 0]}
161 snmpd_readonly_user_name: {get_param: SnmpdReadonlyUserName}
162 snmpd_readonly_user_password: {get_param: SnmpdReadonlyUserPassword}
163 swift_hash_suffix: {get_param: HashSuffix}
164 swift_mount_check: {get_param: MountCheck}
165 swift_min_part_hours: {get_param: MinPartHours}
166 swift_part_power: {get_param: PartPower}
167 swift_replicas: { get_param: Replicas}
175 IP: {get_attr: [SwiftStorage, networks, ctlplane, 0]}
176 HOST: {get_attr: [SwiftStorage, name]}
177 nova_server_resource:
178 description: Heat resource handle for the swift storage server
180 {get_resource: SwiftStorage}
182 description: Swift device formatted for swift-ring-builder
185 template: 'r1z1-IP:%PORT%/d1'
187 IP: {get_attr: [SwiftStorage, networks, ctlplane, 0]}
188 internal_api_ip_address:
189 description: IP address of the server in the internal_api network
190 value: {get_attr: [InternalApiPort, ip_address]}
192 description: IP address of the server in the storage network
193 value: {get_attr: [StoragePort, ip_address]}
194 storage_mgmt_ip_address:
195 description: IP address of the server in the storage_mgmt network
196 value: {get_attr: [StorageMgmtPort, ip_address]}