GithubHelp home page GithubHelp logo

spqr2001 / ansible-deploy-vmware-vm Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cloudmaniac/ansible-deploy-vmware-vm

0.0 0.0 0.0 6 KB

Deploy multiple VMware VM with Ansible vmware_guest module

ansible-deploy-vmware-vm's Introduction

Deploy Multiple VMware VM with Ansible

Description

Playbook and role to deploy multiple vSphere virtual machines from a template using Ansible. For more information, you can refer to the related blog post.

Requirements

  • Python (≥ 2.6)
  • Ansible
  • PyVmomi

Configuration

The required files are:

├── ansible.cfg
├── answerfile.yml
├── deploy-kubernetes-prod.yml
├── roles
│   └── deploy-vsphere-template
│       └── tasks
│           └── main.yml
└── vms-to-deploy
  1. Edit the vms-to-deploy file to define the number of virtual machines you want to deploy, as well as their names, datastore, IP and notes.
  2. Edit the answerfile.yml file to set the correct parameter for
    • the infrastructure (where to deploy)
    • the common options for the virtual machines
  3. (optional) Edit the role.

Note: Uncomment the #resource_pool: '{{ deploy_vsphere_resourcepool }}' line in the roles/deploy-vsphere-template/tasks/main.yml file to deploy the virtual machines in a specific resource pool; don't forget to reflect your resource pool name in the answerfile.yml.

Execution

ansible-playbook -i vms-to-deploy deploy-kubernetes-prod.yml

Enjoy! :)

ansible-deploy-vmware-vm's People

Contributors

cloudmaniac avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.