maile2108 / terraform-nomad-consul-traefik

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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


Languages

Language:HCL 71.9%Language:Shell 25.0%Language:Python 3.1%