Skip to content

Commit 39b5446

Browse files
author
Nicole Thomas
committed
Merge pull request #850 from rallytime/merge-stable
[stable] Merge develop into stable branch
2 parents 7e4aaef + a1d7af6 commit 39b5446

2 files changed

Lines changed: 7 additions & 4 deletions

File tree

ChangeLog

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
Version 2016.05.11:
2+
* Only overwrite the minion config file if '-C' is passed. Otherwise, preserve it. (rallytime) #848
3+
14
Version 2016.05.10:
25
* Removed libzmq4 and forking-deamon-patch for Opensuse13. (jtand) #840
36
* Ubuntu 12.04 needs to be updated before installing packages. (jtand) #829

bootstrap-salt.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
#======================================================================================================================
1919
set -o nounset # Treat unset variables as an error
2020

21-
__ScriptVersion="2016.05.10"
21+
__ScriptVersion="2016.05.11"
2222
__ScriptName="bootstrap-salt.sh"
2323

2424
#======================================================================================================================
@@ -5901,18 +5901,18 @@ config_salt() {
59015901

59025902
# Copy the minions configuration if found
59035903
if [ -f "$_TEMP_CONFIG_DIR/minion" ]; then
5904-
__movefile "$_TEMP_CONFIG_DIR/minion" "$_SALT_ETC_DIR" "$BS_TRUE" || return 1
5904+
__movefile "$_TEMP_CONFIG_DIR/minion" "$_SALT_ETC_DIR" "$_CONFIG_ONLY" || return 1
59055905
CONFIGURED_ANYTHING=$BS_TRUE
59065906
fi
59075907

59085908
# Copy the minion's keys if found
59095909
if [ -f "$_TEMP_CONFIG_DIR/minion.pem" ]; then
5910-
__movefile "$_TEMP_CONFIG_DIR/minion.pem" "$_PKI_DIR/minion/" "$BS_TRUE" || return 1
5910+
__movefile "$_TEMP_CONFIG_DIR/minion.pem" "$_PKI_DIR/minion/" "$_CONFIG_ONLY" || return 1
59115911
chmod 400 "$_PKI_DIR/minion/minion.pem" || return 1
59125912
CONFIGURED_ANYTHING=$BS_TRUE
59135913
fi
59145914
if [ -f "$_TEMP_CONFIG_DIR/minion.pub" ]; then
5915-
__movefile "$_TEMP_CONFIG_DIR/minion.pub" "$_PKI_DIR/minion/" "$BS_TRUE" || return 1
5915+
__movefile "$_TEMP_CONFIG_DIR/minion.pub" "$_PKI_DIR/minion/" "$_CONFIG_ONLY" || return 1
59165916
chmod 664 "$_PKI_DIR/minion/minion.pub" || return 1
59175917
CONFIGURED_ANYTHING=$BS_TRUE
59185918
fi

0 commit comments

Comments
 (0)