Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/jtopjian/terraform-openstack-consul
- Owner: jtopjian
- Created: 2015-07-28T22:09:25.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-07-28T22:16:23.000Z (over 9 years ago)
- Last Synced: 2023-03-23T03:01:42.038Z (over 1 year ago)
- Language: Shell
- Size: 97.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.