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::ObjectStorage::Net::SoftwareConfig
75 type: OS::TripleO::SoftwareDeployment
77 config: {get_attr: [NetworkConfig, config_id]}
78 server: {get_resource: SwiftStorage}
80 SwiftStorageHieraConfig:
81 type: OS::Heat::StructuredConfig
83 group: os-apply-config
87 - heat_config_%{::deploy_config_name}
93 raw_data: {get_file: hieradata/common.yaml}
95 raw_data: {get_file: hieradata/object.yaml}
96 oac_data: # data we map in from other OAC configurations
97 tripleo::ringbuilder::devices: swift.devices
98 mapped_data: # data supplied directly to this deployment configuration, etc
99 swift::swift_hash_suffix: { get_input: swift_hash_suffix }
100 tripleo::ringbuilder::part_power: { get_input: swift_part_power }
101 tripleo::ringbuilder::replicas: {get_input: swift_replicas }
103 swift::storage::all::storage_local_net_ip: {get_input: local_ip}
104 swift_mount_check: {get_input: swift_mount_check }
105 tripleo::ringbuilder::min_part_hours: { get_input: swift_min_part_hours }
106 ntp::servers: {get_input: ntp_servers}
107 # NOTE(dprince): build_ring support is currently not wired in.
108 # See: https://review.openstack.org/#/c/109225/
109 tripleo::ringbuilder::build_ring: True
110 enable_package_install: {get_input: enable_package_install}
113 SwiftStorageHieraDeploy:
114 type: OS::Heat::StructuredDeployment
116 server: {get_resource: SwiftStorage}
117 config: {get_resource: SwiftStorageHieraConfig}
118 signal_transport: NO_SIGNAL
120 local_ip: {get_attr: [SwiftStorage, networks, ctlplane, 0]}
121 snmpd_readonly_user_name: {get_param: SnmpdReadonlyUserName}
122 snmpd_readonly_user_password: {get_param: SnmpdReadonlyUserPassword}
123 swift_hash_suffix: {get_param: HashSuffix}
124 swift_mount_check: {get_param: MountCheck}
125 swift_min_part_hours: {get_param: MinPartHours}
126 swift_part_power: {get_param: PartPower}
127 swift_replicas: { get_param: Replicas}
130 template: '["server"]'
132 server: {get_param: NtpServer}
133 enable_package_install: {get_param: EnablePackageInstall}
141 IP: {get_attr: [SwiftStorage, networks, ctlplane, 0]}
142 HOST: {get_attr: [SwiftStorage, name]}
143 nova_server_resource:
144 description: Heat resource handle for the swift storage server
146 {get_resource: SwiftStorage}
148 description: Swift device formatted for swift-ring-builder
151 template: 'r1z1-IP:%PORT%/d1'
153 IP: {get_attr: [SwiftStorage, networks, ctlplane, 0]}