Skip to content

ozmodiar192/InfraTerraformAnsible

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Infrastructure Setup and provisioning using Terraform and Ansible

In this project, we are creating 3 instances with webserver, jenkins and prometheus setup on each of them.

Getting Started

First needs to run terraform with aws access key and secury key. Please provide domain name for route53Module which will setup all needed domains.

Terraform commands:

./terraform init

./terraform plan

./terraform apply

./terraform destroy

Then run ansible to provision all servers. Provisioning is done using dynamic inventory and ip addresses are identified using tags. group_vars needs to be provided with right configurations.

Ansible command: ansible-playbook -i ec2.py playbook.yml -vvv

Ansible code is tested on amazon linux 2 operating system.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 81.5%
  • HCL 18.4%
  • HTML 0.1%