Creating an automated shell script that can boot up and execute the same commands across multiple remote servers and VMs eliminates human error and promotes effectiveness. DESCRIPTION:
- we are going to reset our vagrant configuration file via Vim; we will be adding the IP addresses and network settings we wish to use for our automated script before running a vagrant up to boot our new servers
List out our servers and the SSH options we will be using to time out our servers when experiencing connection errors. We are setting it to 2 seconds. We want sudoers to be able to run this script independently without any restriction in functionality or need for special privileges.
-
we will create a usage statement that will be built into a function.
-
store the return code or exit value into the SSH code and send error codes to standard error.
-
since we are executing on various systems, we don't want one failed server error to affect the other running codes. Easily remove failed server without affecting other running servers,
-
ping the servers,
-
03
configure SSH Authentication, key-value pair using SSH-keygen and copy to servers
04





