Skip to content

Learning create infra with Packer, Terraform, Nomad, Consul and Traefik

Notifications You must be signed in to change notification settings

ratelbee/terraform-nomad-consul-traefik

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

stability-wip

Packer - Terraform - Nomad - Consul - Traefik

The project was created to learn more about Nomad, Consul and Trafik using Packer and Terraform tools. All the infrastructure are performing in Amazon Web Services. Feel free to contribute.

Requeriments

Running the example

Packer

Check that a template is valid

$ packer validate images/frigobar.centos/ami.json

Build image(s) from template

$ packer build -var 'profile={your_profile}' images/frigobar.centos/ami.json

Terraform

Download and install modules for the configuration

$ cd management/_structure_init
$ terraform get

Generate and show an execution plan

$ terraform plan -var-file="init_data.tfvars"

Builds or changes infrastructure

$ terraform apply -var-file="init_data.tfvars"

Read an output from a state file

$ terraform output

Nomad

$ export NOMAD_ADDR=http://18.216.245.253:4646
$ nomad status

Consul

export CONSUL_HTTP_ADDR=18.216.245.253:8500

Docs

TODO

  • Finish image frigobar.amz
  • Finish image frigobar.coreos
  • Create infrastructure Traefik

About

Learning create infra with Packer, Terraform, Nomad, Consul and Traefik

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HCL 71.9%
  • Shell 25.0%
  • Python 3.1%