1 heat_template_version: pike
2 description: 'All Nodes Config for Puppet'
5 {%- for network in networks if network.vip|default(false) %}
6 cloud_name_{{network.name_lower}}:
12 type: comma_delimited_list
14 type: comma_delimited_list
19 short_service_node_names:
21 short_service_bootstrap_node:
24 type: comma_delimited_list
36 Setting this to a unique value will re-run any deployment tasks which
37 perform configuration on a Heat stack-update.
42 Setting to a previously unused value during stack-update will trigger
43 package update on all nodes
47 Heat action on performed top-level stack. Note StackUpdateType is
48 set to UPGRADE when a major-version upgrade is in progress.
50 - allowed_values: ['CREATE', 'UPDATE']
54 Type of update, to differentiate between UPGRADE and UPDATE cases
55 when StackAction is UPDATE (both are the same stack action).
57 - allowed_values: ['', 'UPGRADE']
59 # NOTE(jaosorior): This is being set as IPA as it's the first
60 # CA we'll actually be testing out. But we can change this if
69 {%- for network in networks %}
70 {{network.name}}NetName:
71 default: {{network.name_lower}}
72 description: The name of the {{network.name_lower}} network.
80 type: OS::Heat::StructuredConfig
86 bootstrap_nodeid: {get_input: bootstrap_nodeid}
87 bootstrap_nodeid_ip: {get_input: bootstrap_nodeid_ip}
92 expression: $.data.distinct()
93 data: {get_param: enabled_services}
94 # This writes out a mapping of service_name_enabled: 'true'
95 # For any services not enabled, hiera foo_enabled will
96 # return nil, as it's undefined
100 # Note this must be string 'true' due to
101 # https://bugs.launchpad.net/heat/+bug/1617203
102 SERVICE_enabled: 'true'
104 SERVICE: {get_param: enabled_services}
105 # Dynamically generate per-service network data
106 # This works as follows (outer->inner functions)
107 # yaql - filters services where no mapping exists in ServiceNetMap
108 # map_replace: substitute e.g heat_api_network with network name from ServiceNetMap
109 # map_merge/repeat: generate a per-service mapping
111 # This filters any entries where the value hasn't been substituted for
112 # a list, e.g it's still $service_network. This happens when there is
113 # no network defined for the service in the ServiceNetMap, which is OK
114 # as not all services have to be bound to a network, so we filter them
115 expression: dict($.data.map.items().where(isString($[1]) and not $[1].endsWith("_network")))
122 SERVICE_network: SERVICE_network
124 SERVICE: {get_param: enabled_services}
125 - values: {get_param: ServiceNetMap}
126 # Keystone doesn't provide separate entries for the public
127 # and admin endpoints, so we need to add them here manually
128 # like we do in the vip-config below
129 - keystone_admin_api_network: {get_param: [ServiceNetMap, keystone_admin_api_network]}
130 keystone_public_api_network: {get_param: [ServiceNetMap, keystone_public_api_network]}
131 # provides a mapping of service_name_ips to a list of IPs
132 - {get_param: service_ips}
133 - {get_param: service_node_names}
134 - {get_param: short_service_node_names}
135 - {get_param: short_service_bootstrap_node}
136 - controller_node_ips:
139 - {get_param: controller_ips}
140 controller_node_names:
143 - {get_param: controller_names}
144 deploy_identifier: {get_param: DeployIdentifier}
145 update_identifier: {get_param: UpdateIdentifier}
146 stack_action: {get_param: StackAction}
147 stack_update_type: {get_param: StackUpdateType}
150 # Dynamically generate per-service VIP data based on enabled_services
151 # This works as follows (outer->inner functions)
152 # yaql - filters services where no mapping exists in ServiceNetMap
153 # map_replace: substitute e.g internal_api with the IP from NetVipMap
154 # map_replace: substitute e.g heat_api_network with network name from ServiceNetMap
155 # map_merge/repeat: generate a per-service mapping
157 # This filters any entries where the value hasn't been substituted for
158 # a list, e.g it's still $service_network. This happens when there is
159 # no network defined for the service in the ServiceNetMap, which is OK
160 # as not all services have to be bound to a network, so we filter them
161 expression: dict($.data.map.items().where(isString($[1]) and not $[1].endsWith("_network")))
169 SERVICE_vip: SERVICE_network
171 SERVICE: {get_param: enabled_services}
172 - values: {get_param: ServiceNetMap}
173 - values: {get_param: NetVipMap}
174 - keystone_admin_api_vip:
175 get_param: [NetVipMap, {get_param: [ServiceNetMap, keystone_admin_api_network]}]
176 keystone_public_api_vip:
177 get_param: [NetVipMap, {get_param: [ServiceNetMap, keystone_public_api_network]}]
178 public_virtual_ip: {get_param: [NetVipMap, {get_param: ExternalNetName}]}
179 controller_virtual_ip: {get_param: [NetVipMap, ctlplane]}
180 internal_api_virtual_ip: {get_param: [NetVipMap, {get_param: InternalApiNetName}]}
181 storage_virtual_ip: {get_param: [NetVipMap, {get_param: StorageNetName}]}
182 storage_mgmt_virtual_ip: {get_param: [NetVipMap, {get_param: StorageMgmtNetName}]}
183 redis_vip: {get_param: RedisVirtualIP}
184 # public_virtual_ip and controller_virtual_ip are needed in
185 # both HAproxy & keepalived.
186 tripleo::haproxy::public_virtual_ip: {get_param: [NetVipMap, {get_param: ExternalNetName}]}
187 tripleo::haproxy::controller_virtual_ip: {get_param: [NetVipMap, ctlplane]}
188 tripleo::keepalived::public_virtual_ip: {get_param: [NetVipMap, {get_param: ExternalNetName}]}
189 tripleo::keepalived::controller_virtual_ip: {get_param: [NetVipMap, ctlplane]}
190 tripleo::keepalived::internal_api_virtual_ip: {get_param: [NetVipMap, {get_param: InternalApiNetName}]}
191 tripleo::keepalived::storage_virtual_ip: {get_param: [NetVipMap, {get_param: StorageNetName}]}
192 tripleo::keepalived::storage_mgmt_virtual_ip: {get_param: [NetVipMap, {get_param: StorageMgmtNetName}]}
193 tripleo::keepalived::redis_virtual_ip: {get_param: RedisVirtualIP}
194 tripleo::redis_notification::haproxy_monitor_ip: {get_param: [NetVipMap, ctlplane]}
195 cloud_name_external: {get_param: cloud_name_external}
196 cloud_name_internal_api: {get_param: cloud_name_internal_api}
197 cloud_name_storage: {get_param: cloud_name_storage}
198 cloud_name_storage_mgmt: {get_param: cloud_name_storage_mgmt}
199 cloud_name_ctlplane: {get_param: cloud_name_ctlplane}
201 certmonger_ca: {get_param: CertmongerCA}
202 enable_internal_tls: {get_param: EnableInternalTLS}
206 description: The ID of the allNodesConfigImpl resource.
208 {get_resource: allNodesConfigImpl}