Howdy.
I'm currently hoping to putty to a number of Linux VMs and update a hosts file remotely before moving on to the next VM in a list. Does anyone have a script that does anything similar? Are there any decent script repositories online?
Howdy.
I'm currently hoping to putty to a number of Linux VMs and update a hosts file remotely before moving on to the next VM in a list. Does anyone have a script that does anything similar? Are there any decent script repositories online?
Welcome seanbeag,
I have a few to questions pose in response first:-
Most importantly, What have you tried so far?
There are probably many ways to achieve most tasks, so giving us an idea of your style and thoughts will help us guide you to an answer most suitable to you so you can adjust it to suit your needs in future.
We're all here to learn and getting the relevant information will help us all.
Kind regards,
Robin
Hi Robin, thanks for the response:
Currently the way this is done is by literally consoling onto every virtual machine in the environment. The hosts file is then updated, some software downloaded from an ftp site and the software is then installed. I'm trying to automate the whole process, because this is time consuming and antiquated.
I currently have a bash script I run locally where I can update my own hosts file, and one or two remote hosts files, but this is done by tying in the name of each remote machine one by one and I don't really want to go testing this in a virtual environment
As it's a virtual environment there's a mixture of OS types, Windows, CentOS, Linux, OpenSuse etc
Not presently not. There are certain accounts that will work across multiple VMs though
I don't really have a preferred tool
Would ideally like to be able to run a script that will connect to a pre-defined list of remote VMs and:
1 - Update their host file
2 - Copy some install files to a directory on that remote VM and kick off the install
3 - Start the service post install
Most importantly, What have you tried so far?
This is well outside my comfort zone to be honest so I'm hoping for something that may be tried and tested. If that doesn't exist then no worries