sixth / hashicorp-tools-demo

Testing hashicorp tools to create a HA nginx/haproxy cluster

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Motivation

Show what a continuous delivery pipeline would look like with hashicorp tools including Consul, Terraform and Packer.

Requirements

Tools used

Tool Purpose
consul template dynamic haproxy config and nginx index file
alpine linux mostly for disk space. 100-300MB~ on avg

Potentional todos

Run commands

$ packer build -var 'app=consul' packer.json
$ packer build -var 'app=haproxy' packer.json
$ packer build -var 'app=nginx' packer.json
$ terraform plan
$ terraform apply

Test URLs

Service URL
consul http://127.0.0.1:8500
haproxy http://127.0.0.1:8001
nginx http://127.0.0.1:80

About

Testing hashicorp tools to create a HA nginx/haproxy cluster


Languages

Language:Shell 52.9%Language:HCL 47.1%