Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request - Clone multiple Servers at once #49

Open
nitrohuffer2001 opened this issue Sep 2, 2015 · 2 comments
Open

Request - Clone multiple Servers at once #49

nitrohuffer2001 opened this issue Sep 2, 2015 · 2 comments

Comments

@nitrohuffer2001
Copy link

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.

@czee
Copy link
Contributor

czee commented Sep 2, 2015

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.

@snobear
Copy link
Owner

snobear commented Sep 3, 2015

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants