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
- Host: GitHub
- URL: https://github.com/seanedwards/chef-cfer-consul-cluster
- Owner: seanedwards
- License: other
- Created: 2016-02-19T19:35:31.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-02-28T20:48:24.000Z (over 10 years ago)
- Last Synced: 2025-01-10T02:37:10.390Z (over 1 year ago)
- Language: Ruby
- Homepage:
- Size: 8.79 KB
- Stars: 3
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
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.