ezmomi icon indicating copy to clipboard operation
ezmomi copied to clipboard

Request - Clone multiple Servers at once

Open nitrohuffer2001 opened this issue 9 years ago • 2 comments

This is a slick script. any chance you could add functionality that would allow you to clone more than 1 VM at a time? e.g. So if you needed 10 vm's test-vm1 through test-vm10 starting with IP: 10.0.0.10 and ending at 10.0.0.20

command would look something like:

ezmomi clone --template my_template --hostname test-vm -num10 --cpus 2 --mem 4 --ip's 10.0.0.10, 10.0.0.19

Thanks.

nitrohuffer2001 avatar Sep 02 '15 20:09 nitrohuffer2001

This could be supported, we could use better arguments however: ezmomi clone --template my_template --hostname "test-vm-%d" --cpus 2 --mem 4 --ip's 10.0.0.[10-19]

In this instance a range of IP's are parsed and %d is substituted for each host (10, 11, 12, etc).

However that will probably have to wait until the clone functionality is refactored.

czee avatar Sep 02 '15 21:09 czee

I like the approach. There is an issue or PR that may still be open with a similar proposal.

On Sep 2, 2015, at 5:10 PM, cxz [email protected] wrote:

This could be supported, we could support better arguments however: ezmomi clone --template my_template --hostname "test-vm-%d" --cpus 2 --mem 4 --ip's 10.0.0.[10-19]

In this instance a range of IP's are parsed and %d is substituted for each host (10, 11, 12, etc).

However that will probably have to wait until the clone functionality is refactored.

— Reply to this email directly or view it on GitHub.

snobear avatar Sep 03 '15 02:09 snobear