summaryrefslogtreecommitdiffstats
path: root/mcp/config/states/virtual_init
diff options
context:
space:
mode:
authorAlexandru Avadanii <Alexandru.Avadanii@enea.com>2018-12-07 15:42:23 +0100
committerAlexandru Avadanii <Alexandru.Avadanii@enea.com>2018-12-07 15:42:23 +0100
commit2de5348a8b267a1742154dd6d5c4f5bd3a2983ab (patch)
tree90ea913b98e9add210d416ff2a1803a0aae9aa36 /mcp/config/states/virtual_init
parent73b02742d463fc2932ef66baee7123fc773c1b0c (diff)
[cfg01] Patch reclass settings.py broken default
Until a new reclass release including the fix for [1] is published, patch settings.py explicitly. [1] https://github.com/salt-formulas/reclass/issues/77 Change-Id: If93848a6b6f084c76e64ddcf7bfdfa52b7d59050 Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
Diffstat (limited to 'mcp/config/states/virtual_init')
-rwxr-xr-xmcp/config/states/virtual_init3
1 files changed, 3 insertions, 0 deletions
diff --git a/mcp/config/states/virtual_init b/mcp/config/states/virtual_init
index 46d880471..e234b7235 100755
--- a/mcp/config/states/virtual_init
+++ b/mcp/config/states/virtual_init
@@ -22,6 +22,9 @@ NODE_MASK="${LOCAL_VIRT_NODES// /|}"
wait_for 5.0 "salt-call state.sls reclass,linux.network,salt.minion \
exclude='[{id: reclass_packages}, {id: /etc/reclass/reclass-config.yml}]'"
+# Workaround for: https://github.com/salt-formulas/reclass/issues/77
+salt-call file.replace '/usr/local/lib/python2.7/dist-packages/reclass/settings.py' \
+ pattern='(ignore_overwritten_missing_references)defaults.' repl='\1'
wait_for 3.0 "salt -C 'E@^(${NODE_MASK}).*' saltutil.refresh_pillar"
# NOTE: domain name changes are not yet supported without a clean redeploy