Merge "Moving the 'export_data' dict into constants"
This commit is contained in:
commit
fa2de4f913
@ -230,6 +230,27 @@ EXPORT_PASSWORD_EXCLUDE_PATTERNS = [
|
||||
'ceph.*'
|
||||
]
|
||||
|
||||
EXPORT_DATA = {
|
||||
"EndpointMap": {
|
||||
"parameter": "EndpointMapOverride",
|
||||
},
|
||||
"HostsEntry": {
|
||||
"parameter": "ExtraHostFileEntries",
|
||||
},
|
||||
"GlobalConfig": {
|
||||
"parameter": "GlobalConfigExtraMapData",
|
||||
},
|
||||
"AllNodesConfig": {
|
||||
"file": "group_vars/overcloud.json",
|
||||
"parameter": "AllNodesExtraMapData",
|
||||
"filter": ["oslo_messaging_notify_short_bootstrap_node_name",
|
||||
"oslo_messaging_notify_node_names",
|
||||
"oslo_messaging_rpc_node_names",
|
||||
"memcached_node_ips",
|
||||
"ovn_dbs_vip",
|
||||
"redis_vip"]},
|
||||
}
|
||||
|
||||
# Package that need to be to the latest before undercloud
|
||||
# update/update
|
||||
UNDERCLOUD_EXTRA_PACKAGES = [
|
||||
|
@ -60,31 +60,11 @@ def export_stack(heat, stack, should_filter=False,
|
||||
# output.File is relative to <config-download-dir>/stack.
|
||||
# filter: in case only specific settings should be
|
||||
# exported from parameter data.
|
||||
export_data = {
|
||||
"EndpointMap": {
|
||||
"parameter": "EndpointMapOverride",
|
||||
},
|
||||
"HostsEntry": {
|
||||
"parameter": "ExtraHostFileEntries",
|
||||
},
|
||||
"GlobalConfig": {
|
||||
"parameter": "GlobalConfigExtraMapData",
|
||||
},
|
||||
"AllNodesConfig": {
|
||||
"file": "group_vars/overcloud.json",
|
||||
"parameter": "AllNodesExtraMapData",
|
||||
"filter": ["oslo_messaging_notify_short_bootstrap_node_name",
|
||||
"oslo_messaging_notify_node_names",
|
||||
"oslo_messaging_rpc_node_names",
|
||||
"memcached_node_ips",
|
||||
"ovn_dbs_vip",
|
||||
"redis_vip"]},
|
||||
}
|
||||
|
||||
data = {}
|
||||
heat_stack = oooutils.get_stack(heat, stack)
|
||||
|
||||
for export_key, export_param in export_data.items():
|
||||
for export_key, export_param in constants.EXPORT_DATA.items():
|
||||
param = export_param["parameter"]
|
||||
if "file" in export_param:
|
||||
# get file data
|
||||
|
Loading…
x
Reference in New Issue
Block a user