Skip to content

ciscogeek/packer-ansible-terraform

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Packer + Ansible + Terraform

This repository uses packer to build an image and configures it with Ansible which host static website, then uses Terraform to spin up two instances on Azure with the image created by packer

It will use the following software:

  • Nginx For web server
  • Packer For building the image
  • Ansible For configuring the image
  • Terraform For provisioning the infrastructure on Azure

Supported platform:

  • Ubuntu16.0.4
  • Ubuntu18.0.4
  • Azure Cloud

Usage

  1. Clone the repository and cd into it
git clone https://github.com/paulmao1/packer-ansible-terraform.git
cd packer-ansible-terraform
  1. Replace your account information in the following files:
  • Packer: tempalate.json
  • Terraform: terraform.tfvars
  1. Create ResourceGroup named "myResourceGroup" to hold image for packer

  2. Run the scripts:

  • Check yml file syntax: make lint
  • Create image: make image
  • Create instance: make instance

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published