mirror of
https://github.com/saltstack/salt-bootstrap.git
synced 2025-04-16 09:40:21 +00:00
Add Multi-Master-PKI Capability for Minions
This commit is contained in:
parent
aff81efe37
commit
5601d6ce6b
1 changed files with 6 additions and 0 deletions
|
@ -4510,6 +4510,12 @@ config_salt() {
|
|||
chmod 664 "$_PKI_DIR/minion/minion.pub" || return 1
|
||||
CONFIGURED_ANYTHING=$BS_TRUE
|
||||
fi
|
||||
# For multi-master-pki, copy the master_sign public key if found
|
||||
if [ -f "$_TEMP_CONFIG_DIR/master_sign.pub" ]; then
|
||||
movefile "$_TEMP_CONFIG_DIR/master_sign.pub" "$_PKI_DIR/minion/" || return 1
|
||||
chmod 664 "$_PKI_DIR/minion/master_sign.pub" || return 1
|
||||
CONFIGURED_ANYTHING=$BS_TRUE
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue