This is a heat template that can be used to start up a three node CoreOS cluster using etcd autodiscovery to establish the etcd cluster across the nodes. The only parameter required is the discovery URL.
- Launch your cluster:
$ DISCOVERY_URL=$(curl -s https://discovery.etcd.io/new)
$ heat stack-create -f coreos_fleet.template --parameters="discovery_url=$DISCOVERY_URL" coreos_fleet
- Verify etcd is working:
$ ETCD_PEER=$(heat output-show coreos_fleet coreos1_public_ip | sed -e 's/"//g')
$ etcdctl --peers ${ETCD_PEER}:4001 ls /
I lifted the basic template straight from Scott Lowe's gist repo, with minor modifications.