1 heat_template_version: 2014-10-16
2 description: 'Common Swift Storage Configuration'
10 Additional configuration to inject into the cluster. The JSON should have
11 the following structure:
14 [{"section": "SECTIONNAME",
16 [{"option": "OPTIONNAME",
27 [{"section": "default",
29 [{"option": "force_config_drive",
37 "value": "nova.cells.rpc_driver.CellsRPCDriver"
46 description: Flavor for Swift storage nodes to request when deploying.
49 - custom_constraint: nova.flavor
52 description: A random string to be used as a salt when hashing to determine mappings
57 default: overcloud-swift-storage
61 description: Name of an existing EC2 KeyPair to enable SSH access to the instances
65 description: Value of mount_check in Swift account/container/object -server.conf
67 NeutronEnableTunnelling:
75 description: Partition Power to use when building Swift rings
79 description: The password for the swift service account, used by the swift proxy
86 description: How many replicas to use in the swift rings.
87 SnmpdReadonlyUserName:
89 description: The user name for SNMPd with readonly rights running on all Overcloud nodes
91 SnmpdReadonlyUserPassword:
93 description: The user password for SNMPd with readonly rights running on all Overcloud nodes
99 type: OS::Heat::StructuredConfig
101 group: os-apply-config
104 export_MIB: UCD-SNMP-MIB
105 readonly_user_name: {get_input: snmpd_readonly_user_name}
106 readonly_user_password: {get_input: snmpd_readonly_user_password}
108 hash: { get_input: swift_hash_suffix }
109 part-power: { get_input: swift_part_power }
110 replicas: {get_input: swift_replicas }
111 service-password: { get_input: swift_password }
113 enable_tunnelling: {get_param: NeutronEnableTunnelling}
114 tenant_network_type: {get_param: NeutronNetworkType}
116 local_ip: { get_input: neutron_local_ip }
118 type: OS::Nova::Server
120 image: {get_param: Image}
121 flavor: {get_param: Flavor}
122 key_name: {get_param: KeyName}
123 user_data_format: SOFTWARE_CONFIG
127 type: OS::Heat::StructuredConfig
131 host: {get_input: keystone_host}
132 SwiftStorageKeystone:
133 type: OS::Heat::StructuredDeployment
135 server: {get_resource: SwiftStorage}
136 config: {get_resource: SwiftKeystoneConfig}
137 signal_transport: NO_SIGNAL
139 keystone_host: {get_param: ControllerIP}
141 type: OS::Heat::StructuredDeployment
143 server: {get_resource: SwiftStorage}
144 config: {get_resource: SwiftConfig}
145 signal_transport: NO_SIGNAL
147 neutron_local_ip: {get_attr: [SwiftStorage, networks, ctlplane, 0]}
148 snmpd_readonly_user_name: {get_param: SnmpdReadonlyUserName}
149 snmpd_readonly_user_password: {get_param: SnmpdReadonlyUserPassword}
150 swift_hash_suffix: {get_param: HashSuffix}
151 swift_mount_check: {get_param: MountCheck}
152 swift_password: {get_param: Password}
153 swift_part_power: {get_param: PartPower}
154 swift_replicas: { get_param: Replicas}
160 template: "IP HOST HOST.novalocal"
162 IP: {get_attr: [SwiftStorage, networks, ctlplane, 0]}
163 HOST: {get_attr: [SwiftStorage, name]}
164 nova_server_resource:
165 description: Heat resource handle for the swift storage server
167 {get_resource: SwiftStorage}
169 description: Swift device formatted for swift-ring-builder
172 template: 'r1z1-IP:%PORT%/d1'
174 IP: {get_attr: [SwiftStorage, networks, ctlplane, 0]}