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

https://github.com/seanedwards/chef-cfer-consul-cluster

Self-bootstrapping Consul cluster using Cfer and Amazon CloudFormation
https://github.com/seanedwards/chef-cfer-consul-cluster

Last synced: over 1 year ago
JSON representation

Self-bootstrapping Consul cluster using Cfer and Amazon CloudFormation

Awesome Lists containing this project

README

          

# cfer-consul-cluster-cookbook

Uses [Cfer](https://github.com/seanedwards/cfer) to launch a self-bootstrapping Consul cluster into an AWS AutoScaling group.

To launch the cluster, run `rake converge`. This will prompt you for:

* A VPC ID
* A comma-separated list of Subnet IDs
* An EC2 Keypair name

Review and modify [consul.rb](https://github.com/seanedwards/chef-cfer-consul-cluster/blob/master/consul.rb) before using this in production. I recommend also creating a [wrapper cookbook](https://www.chef.io/blog/2013/12/03/doing-wrapper-cookbooks-right/) to add your own server monitoring, log aggreagation, and other such infrastructure to these servers.

## Features

* New nodes automatically join the cluster.
* Autoscaling policies roll over servers one at a time when changing things like instance type.
* CloudFormation creation and updates will fail and roll back if there's a provisioning issue.