Git Product home page Git Product logo

ansible-vmware-deploy's Introduction

ansible-vmware

Criação de vms no vCenter e cluster swarm com o ansible.

Pré requisitos

Matrix de compatibilidade dos sistemas operacionais das vms http://partnerweb.vmware.com/programs/guestOS/guest-os-customization-matrix.pdf

Exemplo que estou usando é o ubuntu-18.04

Instalar o ansible

https://docs.ansible.com/ansible/latest/installation_guide/intro_installation.html

Instalar o pip do python para instalar a API de conexão com o vCenter.

sudo apt install python-pip
sudo pip install pyvmomi

1 Criando variáveis

Depois de clonar o repositório edite o arquivo.

$ vim group_vars/all

Encripitar essas informções. Vai pedir para definir uma senha, pode ser qualquer uma, ela será pedida na exeção do playbook.

$ ansible-vault encrypt group_vars/all

2 Edite infos que precisar nos arquivos abaixo

$ vim vms_deploy
$ vim main.yml
$ vim roles/vms/tasks/main.yml
$ vim roles/manager/tasks/main.yml
$ vim roles/worker/tasks/main.yml

3 Executar o playbook

$ ansible-playbook -i vms_deploy main.yml --ask-vault-pass -K

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.