Skip to content
This repository has been archived by the owner on Dec 27, 2021. It is now read-only.

GabrielJean/Vmware-Automation

Repository files navigation

Home-Ansible

This is a simple repository where I will be storing my ansible & terraform files used to configure my HomeLab environment.

I'm using terraform to provision the virtual machines in my vSphere cluster.

They are all declared under Terraform/Prod.tf and are based off Terraform/modules/Ubuntu 20.04/vm.tf

Once they are created, Terraform executes the ansible script that was define with the tag variable and the vm is configured that way.

Configuration

All of this is very specific to my environment and honestly not really made to be used by someone else. I hope you can still use some of it.

Terraform

  • Go into the Terraform folder

  • Run : cp ../provider.tf .

  • Configure your credentials in the file you just created

It's really important to secure that file and to not send it to a remote repository. (Terraform/provider.tf is in the .gitignore)

Ansible

Ansible will try to gather its inventory from vSphere itself, we need to configure that with the proper credentials too.

  • Go into the Terraform folder

  • Run : cp ../inv.vmware.yml .

  • Configure your credentials in the file you just created

Again, it's really important to secure that file and to not send it to a remote repository. (Terraform/provider.tf is in the .gitignore)

Docker-Compose

Here are stored my docker-compose scripts

You can simply go to the Docker directory and use whatever you want. Keep in mind there is probably some environment variables to adjust.

Todo

  • CI/CD Pipeline to test and deploy automatically my changes

Done

  • Automated VM provisioning with Terraform
  • Automated VM configuration with Ansible
  • Nginx reverse proxy 100% automatic deployment
  • Ansible dynamic inventory

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published