1 heat_template_version: pike
2 description: 'All Nodes Config for Puppet'
7 cloud_name_internal_api:
11 cloud_name_storage_mgmt:
16 type: comma_delimited_list
18 type: comma_delimited_list
23 short_service_node_names:
25 short_service_bootstrap_node:
28 type: comma_delimited_list
40 Setting this to a unique value will re-run any deployment tasks which
41 perform configuration on a Heat stack-update.
46 Setting to a previously unused value during stack-update will trigger
47 package update on all nodes
51 Heat action on performed top-level stack. Note StackUpdateType is
52 set to UPGRADE when a major-version upgrade is in progress.
54 - allowed_values: ['CREATE', 'UPDATE']
58 Type of update, to differentiate between UPGRADE and UPDATE cases
59 when StackAction is UPDATE (both are the same stack action).
61 - allowed_values: ['', 'UPGRADE']
63 # NOTE(jaosorior): This is being set as IPA as it's the first
64 # CA we'll actually be testing out. But we can change this if
75 description: The name of the internal_api network.
79 description: The name of the external network.
83 description: The name of the management network.
87 description: The name of the storage network.
91 description: The name of the storage_mgmt network.
95 description: The name of the tenant network.
102 type: OS::Heat::StructuredConfig
108 bootstrap_nodeid: {get_input: bootstrap_nodeid}
109 bootstrap_nodeid_ip: {get_input: bootstrap_nodeid_ip}
114 expression: $.data.distinct()
115 data: {get_param: enabled_services}
116 # This writes out a mapping of service_name_enabled: 'true'
117 # For any services not enabled, hiera foo_enabled will
118 # return nil, as it's undefined
122 # Note this must be string 'true' due to
123 # https://bugs.launchpad.net/heat/+bug/1617203
124 SERVICE_enabled: 'true'
126 SERVICE: {get_param: enabled_services}
127 # Dynamically generate per-service network data
128 # This works as follows (outer->inner functions)
129 # yaql - filters services where no mapping exists in ServiceNetMap
130 # map_replace: substitute e.g heat_api_network with network name from ServiceNetMap
131 # map_merge/repeat: generate a per-service mapping
133 # This filters any entries where the value hasn't been substituted for
134 # a list, e.g it's still $service_network. This happens when there is
135 # no network defined for the service in the ServiceNetMap, which is OK
136 # as not all services have to be bound to a network, so we filter them
137 expression: dict($.data.map.items().where(isString($[1]) and not $[1].endsWith("_network")))
144 SERVICE_network: SERVICE_network
146 SERVICE: {get_param: enabled_services}
147 - values: {get_param: ServiceNetMap}
148 # Keystone doesn't provide separate entries for the public
149 # and admin endpoints, so we need to add them here manually
150 # like we do in the vip-config below
151 - keystone_admin_api_network: {get_param: [ServiceNetMap, keystone_admin_api_network]}
152 keystone_public_api_network: {get_param: [ServiceNetMap, keystone_public_api_network]}
153 # provides a mapping of service_name_ips to a list of IPs
154 - {get_param: service_ips}
155 - {get_param: service_node_names}
156 - {get_param: short_service_node_names}
157 - {get_param: short_service_bootstrap_node}
158 - controller_node_ips:
161 - {get_param: controller_ips}
162 controller_node_names:
165 - {get_param: controller_names}
166 deploy_identifier: {get_param: DeployIdentifier}
167 update_identifier: {get_param: UpdateIdentifier}
168 stack_action: {get_param: StackAction}
169 stack_update_type: {get_param: StackUpdateType}
172 # Dynamically generate per-service VIP data based on enabled_services
173 # This works as follows (outer->inner functions)
174 # yaql - filters services where no mapping exists in ServiceNetMap
175 # map_replace: substitute e.g internal_api with the IP from NetVipMap
176 # map_replace: substitute e.g heat_api_network with network name from ServiceNetMap
177 # map_merge/repeat: generate a per-service mapping
179 # This filters any entries where the value hasn't been substituted for
180 # a list, e.g it's still $service_network. This happens when there is
181 # no network defined for the service in the ServiceNetMap, which is OK
182 # as not all services have to be bound to a network, so we filter them
183 expression: dict($.data.map.items().where(isString($[1]) and not $[1].endsWith("_network")))
191 SERVICE_vip: SERVICE_network
193 SERVICE: {get_param: enabled_services}
194 - values: {get_param: ServiceNetMap}
195 - values: {get_param: NetVipMap}
196 - keystone_admin_api_vip:
197 get_param: [NetVipMap, {get_param: [ServiceNetMap, keystone_admin_api_network]}]
198 keystone_public_api_vip:
199 get_param: [NetVipMap, {get_param: [ServiceNetMap, keystone_public_api_network]}]
200 public_virtual_ip: {get_param: [NetVipMap, {get_param: ExternalNetName}]}
201 controller_virtual_ip: {get_param: [NetVipMap, ctlplane]}
202 internal_api_virtual_ip: {get_param: [NetVipMap, {get_param: InternalApiNetName}]}
203 storage_virtual_ip: {get_param: [NetVipMap, {get_param: StorageNetName}]}
204 storage_mgmt_virtual_ip: {get_param: [NetVipMap, {get_param: StorageMgmtNetName}]}
205 redis_vip: {get_param: RedisVirtualIP}
206 # public_virtual_ip and controller_virtual_ip are needed in
207 # both HAproxy & keepalived.
208 tripleo::haproxy::public_virtual_ip: {get_param: [NetVipMap, {get_param: ExternalNetName}]}
209 tripleo::haproxy::controller_virtual_ip: {get_param: [NetVipMap, ctlplane]}
210 tripleo::keepalived::public_virtual_ip: {get_param: [NetVipMap, {get_param: ExternalNetName}]}
211 tripleo::keepalived::controller_virtual_ip: {get_param: [NetVipMap, ctlplane]}
212 tripleo::keepalived::internal_api_virtual_ip: {get_param: [NetVipMap, {get_param: InternalApiNetName}]}
213 tripleo::keepalived::storage_virtual_ip: {get_param: [NetVipMap, {get_param: StorageNetName}]}
214 tripleo::keepalived::storage_mgmt_virtual_ip: {get_param: [NetVipMap, {get_param: StorageMgmtNetName}]}
215 tripleo::keepalived::redis_virtual_ip: {get_param: RedisVirtualIP}
216 tripleo::redis_notification::haproxy_monitor_ip: {get_param: [NetVipMap, ctlplane]}
217 cloud_name_external: {get_param: cloud_name_external}
218 cloud_name_internal_api: {get_param: cloud_name_internal_api}
219 cloud_name_storage: {get_param: cloud_name_storage}
220 cloud_name_storage_mgmt: {get_param: cloud_name_storage_mgmt}
221 cloud_name_ctlplane: {get_param: cloud_name_ctlplane}
223 certmonger_ca: {get_param: CertmongerCA}
224 enable_internal_tls: {get_param: EnableInternalTLS}
228 description: The ID of the allNodesConfigImpl resource.
230 {get_resource: allNodesConfigImpl}