Setup Script - Added a message for the big salt install

This commit is contained in:
Mike Reeves
2018-03-23 17:06:20 -04:00
parent c43a253153
commit bffc664aef

View File

@@ -274,6 +274,19 @@ saltify() {
fi fi
} }
salt_checkin() {
salt-call state.highstate
}
salt_checkin_message() {
echo "####################################################"
echo "## ##"
echo "## Applying and Installing everything ##"
echo "## (This will take a while) ##"
echo "## ##"
echo "####################################################"
}
salt_master_directories() { salt_master_directories() {
# Create salt directories # Create salt directories
mkdir -p /opt/so/saltstack/salt mkdir -p /opt/so/saltstack/salt
@@ -289,6 +302,7 @@ update_sudoers() {
} }
#whiptail_bro_pins() { #whiptail_bro_pins() {
# #
#} #}
@@ -457,30 +471,27 @@ if (whiptail_you_sure) then
whiptail_make_changes whiptail_make_changes
# Install salt and dependencies # Install salt and dependencies
echo "Saltifying"
saltify saltify
echo "Configuring minion master"
configure_minion master configure_minion master
echo "Installing Master"
install_master install_master
echo "Creating Master Directories"
salt_master_directories salt_master_directories
echo "Adding socore user" echo ""
echo "**** Please set a password for socore. You will use this password when setting up other Nodes/Sensors"
echo ""
add_socore_user_master add_socore_user_master
echo "Updating sudoers file"
update_sudoers update_sudoers
echo "chown salt dirs"
chown_salt_master chown_salt_master
echo "calculating es heap size"
es_heapsize es_heapsize
echo "calculating LS heap size"
ls_heapsize ls_heapsize
echo "generating the master pillar" echo "generating the master pillar"
master_pillar master_pillar
echo "starting salt" # Do a checkin to push the key up
start_salt salt_checkin
echo "accepting master key" # Accept the Master Key
accept_salt_key_local accept_salt_key_local
# Do the big checkin
salt_checkin_message
start_salt
whiptail_setup_complete whiptail_setup_complete