Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jtopjian/terraform-openstack-consul

Demo of deploying Consul in OpenStack with Terraform
https://github.com/jtopjian/terraform-openstack-consul

Last synced: 4 days ago
JSON representation

Demo of deploying Consul in OpenStack with Terraform

Awesome Lists containing this project

README

        

# Using Terraform to Deploy Consul

This repository will deploy a Consul cluster inside OpenStack. You can specify the size of the cluster.

You also need an Amazon AWS account as this demo utilizes Route 53.

## Instructions

* Generate an SSH key:

```shell
$ ssh-keygen -f key/consul
```

* Source your OpenStack and AWS credentials:

```shell
$ source openrc
$ source awsrc
```

* Deploy:

```shell
$ terraform plan
$ terraform apply
var.count
Default: 3
Enter a value: 50!
```

## Test

Once Terraform finishes, log in and verify Consul is working:

```shell
$ ssh consul.YOUR-DOMAIN-NAME
root@consul-02:~# consul members
...
```

## Limitations

This is just a demo and should not be used for production. The security group is configured to allow all traffic. Consul is also configured to listen on all interfaces, which allows anyone to query the Consul database and service catalog.