1

Jenkins SaltStack vmWare

I have CI/CD stack tools like Jenkins, Open SaltStack with VMware cloud module and vmWare

My goals is clone and manipulate Virtual Machine (Salt Minion) Using Jenkins to make call to SaltMaster witch making call to vmWare vCentre(Vshpere).

Here is some of work flow plans:

1) Jenkis sends call with configurable attributes to Salt Master to start clone VM:

  • salt_minion_ID="some-server.dev.kit"
  • hostname="some-server"
  • CPU=4 MemoryMB=4096 Network="dev.kit"
  • SaltMastee="saltmaster.dev.kit" etc.

So in the different Jenkins pipelines is different VM attributes

2) SaltMaster makes call to vCente(vSphere) to clone VM with parameters and add VM (Salt Minion) key to his SaltMaster

3) Jenkins can retrieve VM IP address (dynamic or static) from SaltMaster and pass it to Jenkins pipeline steps

4) Jenkins can make call to SaltMaster to reconfigure VM attributes (disc size etc.) if its needed in some pipline step

5) Jenkins can delete VM via SaltMaster and remove VM (Salt Minion) key from Master.

How those work flow steps possible to achieve?

vasja
  • 11
  • 1
  • Welcome to StackOverflow. What's actually your question? Are you hoping that somebody writes down that Jenkins Pipeline code for you? Please read [How do I ask a good question?](https://stackoverflow.com/help/how-to-ask). – StephenKing Sep 23 '18 at 19:20

0 Answers0