Add GlobalConfigExtraMapData

Adds a new GlobalConfigExtraMapData parameter that can be used to inject
global_config_settings hieradata into the deployment. Any values generated
in the stack will override those passed in by the parameter value.

This will be used for the distributed compute node when deploying with separate
stacks and data from the control plane stack needs to be injected into the
compute stack.

Change-Id: Id3e52e272bae67ee4036c81b3d7640255e0349ae
This commit is contained in:
James Slagle 2019-02-08 10:29:04 -05:00
parent d5298e2f79
commit 2634ffaa5d
2 changed files with 11 additions and 0 deletions

View File

@ -238,6 +238,11 @@ parameters:
description: > description: >
List of server hostnames to blacklist from any triggered deployments. List of server hostnames to blacklist from any triggered deployments.
GlobalConfigExtraMapData:
type: json
default: {}
description: Map of extra global_config_settings data to set on each node.
{% for role in roles %} {% for role in roles %}
{%- if role.deprecated_param_scheduler_hints is defined or role.deprecated_param_extraconfig is defined %} {%- if role.deprecated_param_scheduler_hints is defined or role.deprecated_param_extraconfig is defined %}
{%- if not parameter_groups_defined|default(false) %} {%- if not parameter_groups_defined|default(false) %}
@ -449,6 +454,7 @@ resources:
type: json type: json
value: value:
map_merge: map_merge:
- get_param: GlobalConfigExtraMapData
- get_attr: [{{role.name}}ServiceChainRoleData, value, config_settings] - get_attr: [{{role.name}}ServiceChainRoleData, value, config_settings]
{% for r in roles %} {% for r in roles %}
- get_attr: [{{r.name}}ServiceChainRoleData, value, global_config_settings] - get_attr: [{{r.name}}ServiceChainRoleData, value, global_config_settings]

View File

@ -0,0 +1,5 @@
---
features:
- Adds a new GlobalConfigExtraMapData parameter that can be used to inject
global_config_settings hieradata into the deployment. Any values generated
in the stack will override those passed in by the parameter value.