salt icon indicating copy to clipboard operation
salt copied to clipboard

How to Run Powershell command along with Salt-bootstrap for VMware driver

Open anandnevase opened this issue 10 years ago • 4 comments

I am trying to deploy Windows VM using Salt-Cloud api with Static IP assign to it using VMware driver.

With reference to issue(https://github.com/saltstack/salt/issues/24030), currently only dynamic IP configuration is supported for Windows VM and inside VM we can run powershell command to configure static IP. Can any one tell me how can I pass powershell scripts to Windows VM on start up and run it. So that static IP get assign to VM and minion get connected to master.

anandnevase avatar Jan 22 '16 14:01 anandnevase

@anandxoriant, thanks for reporting. I haven't worked on anything like this specific problem before, but it seems like it should be possible. I've talked with @PatOShea before about issues that are somewhat related to this. See also, https://github.com/saltstack/salt-bootstrap/blob/develop/bootstrap-salt.ps1. @twangboy and @TheBigBear may also have some ideas.

jfindlay avatar Jan 22 '16 20:01 jfindlay

@UtahDave ^^^

twangboy avatar Jan 23 '16 00:01 twangboy

@anandxoriant, you could also try https://github.com/saltstack/salt-bootstrap/blob/develop/bootstrap-salt.ps1.

jfindlay avatar Mar 04 '16 20:03 jfindlay

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue.

stale[bot] avatar Apr 03 '18 21:04 stale[bot]