1 heat_template_version: 2016-10-14
2 description: 'All Nodes Config for Puppet'
7 cloud_name_internal_api:
11 cloud_name_storage_mgmt:
15 # FIXME(shardy) this can be comma_delimited_list when
16 # https://bugs.launchpad.net/heat/+bug/1617019 is fixed
20 type: comma_delimited_list
29 short_service_node_names:
31 short_service_bootstrap_node:
34 type: comma_delimited_list
36 type: comma_delimited_list
48 Setting this to a unique value will re-run any deployment tasks which
49 perform configuration on a Heat stack-update.
53 Setting to a previously unused value during stack-update will trigger
54 package update on all nodes
58 Heat action on performed top-level stack.
60 - allowed_values: ['CREATE', 'UPDATE']
61 # NOTE(jaosorior): This is being set as IPA as it's the first
62 # CA we'll actually be testing out. But we can change this if
74 type: OS::Heat::StructuredConfig
80 bootstrap_nodeid: {get_input: bootstrap_nodeid}
81 bootstrap_nodeid_ip: {get_input: bootstrap_nodeid_ip}
84 - tripleo::profile::base::logging::fluentd::fluentd_sources: {get_param: logging_sources}
85 - tripleo::profile::base::logging::fluentd::fluentd_groups: {get_param: logging_groups}
86 - enabled_services: {get_param: enabled_services}
87 # This writes out a mapping of service_name_enabled: 'true'
88 # For any services not enabled, hiera foo_enabled will
89 # return nil, as it's undefined
93 # Note this must be string 'true' due to
94 # https://bugs.launchpad.net/heat/+bug/1617203
95 SERVICE_enabled: 'true'
98 str_split: [',', {get_param: enabled_services}]
99 # Dynamically generate per-service network data
100 # This works as follows (outer->inner functions)
101 # yaql - filters services where no mapping exists in ServiceNetMap
102 # map_replace: substitute e.g heat_api_network with network name from ServiceNetMap
103 # map_merge/repeat: generate a per-service mapping
105 # This filters any entries where the value hasn't been substituted for
106 # a list, e.g it's still $service_network. This happens when there is
107 # no network defined for the service in the ServiceNetMap, which is OK
108 # as not all services have to be bound to a network, so we filter them
109 expression: dict($.data.map.items().where(isString($[1]) and not $[1].endsWith("_network")))
116 SERVICE_network: SERVICE_network
119 str_split: [',', {get_param: enabled_services}]
120 - values: {get_param: ServiceNetMap}
121 # Keystone doesn't provide separate entries for the public
122 # and admin endpoints, so we need to add them here manually
123 # like we do in the vip-config below
124 - keystone_admin_api_network: {get_param: [ServiceNetMap, keystone_admin_api_network]}
125 keystone_public_api_network: {get_param: [ServiceNetMap, keystone_public_api_network]}
126 # provides a mapping of service_name_ips to a list of IPs
127 - {get_param: service_ips}
128 - {get_param: service_node_names}
129 - {get_param: short_service_node_names}
130 - {get_param: short_service_bootstrap_node}
131 - controller_node_ips:
134 - {get_param: controller_ips}
135 controller_node_names:
138 - {get_param: controller_names}
139 memcached_node_ips_v6:
141 template: "inet6:[NAME]"
143 NAME: {get_param: memcache_node_ips}
144 deploy_identifier: {get_param: DeployIdentifier}
145 update_identifier: {get_param: UpdateIdentifier}
146 stack_action: {get_param: StackAction}
149 # Dynamically generate per-service VIP data based on enabled_services
150 # This works as follows (outer->inner functions)
151 # yaql - filters services where no mapping exists in ServiceNetMap
152 # map_replace: substitute e.g internal_api with the IP from NetVipMap
153 # map_replace: substitute e.g heat_api_network with network name from ServiceNetMap
154 # map_merge/repeat: generate a per-service mapping
156 # This filters any entries where the value hasn't been substituted for
157 # a list, e.g it's still $service_network. This happens when there is
158 # no network defined for the service in the ServiceNetMap, which is OK
159 # as not all services have to be bound to a network, so we filter them
160 expression: dict($.data.map.items().where(isString($[1]) and not $[1].endsWith("_network")))
168 SERVICE_vip: SERVICE_network
171 str_split: [',', {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, external]}
179 controller_virtual_ip: {get_param: [NetVipMap, ctlplane]}
180 internal_api_virtual_ip: {get_param: [NetVipMap, internal_api]}
181 storage_virtual_ip: {get_param: [NetVipMap, storage]}
182 storage_mgmt_virtual_ip: {get_param: [NetVipMap, storage_mgmt]}
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, external]}
187 tripleo::haproxy::controller_virtual_ip: {get_param: [NetVipMap, ctlplane]}
188 tripleo::keepalived::public_virtual_ip: {get_param: [NetVipMap, external]}
189 tripleo::keepalived::controller_virtual_ip: {get_param: [NetVipMap, ctlplane]}
190 tripleo::keepalived::internal_api_virtual_ip: {get_param: [NetVipMap, internal_api]}
191 tripleo::keepalived::storage_virtual_ip: {get_param: [NetVipMap, storage]}
192 tripleo::keepalived::storage_mgmt_virtual_ip: {get_param: [NetVipMap, storage_mgmt]}
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}