|
@@ -9,6 +9,9 @@ while ! salt-call test.ping >/dev/null 2>&1; do
|
|
|
sleep 10
|
|
|
done
|
|
|
|
|
|
+echo "Looks like you did, cool, let's get started!"
|
|
|
+echo
|
|
|
+
|
|
|
################################################################################
|
|
|
# Set up screeen and SSH #
|
|
|
################################################################################
|
|
@@ -19,6 +22,19 @@ salt-call saltutil.sync_all
|
|
|
echo "Configuring screen and SSH..."
|
|
|
salt-call state.apply screen,ssh
|
|
|
|
|
|
+echo "Backing up SSH keys..."
|
|
|
+cp -a /etc/ssh /opt
|
|
|
+
|
|
|
+cat << EOF
|
|
|
+SSH configured, you should now be able to SSH into this device (as root).
|
|
|
+
|
|
|
+EOF
|
|
|
+
|
|
|
+ip -br a
|
|
|
+
|
|
|
+echo
|
|
|
+echo
|
|
|
+
|
|
|
echo "Running highstate..."
|
|
|
salt-call state.highstate
|
|
|
|