feat(*): bootstrap initial commit

Setup the flags, and checkin the docs. Lets do this!
This commit is contained in:
Brandon Philips
2014-01-27 14:20:05 -08:00
parent 9e43e726a9
commit 0e50d9787a
4 changed files with 86 additions and 0 deletions

View File

@@ -48,6 +48,7 @@ type Config struct {
Addr string `toml:"addr" env:"ETCD_ADDR"`
BindAddr string `toml:"bind_addr" env:"ETCD_BIND_ADDR"`
BootstrapURL string `toml:"bootstrap_url" env:"ETCD_BOOTSTRAP_URL"`
CAFile string `toml:"ca_file" env:"ETCD_CA_FILE"`
CertFile string `toml:"cert_file" env:"ETCD_CERT_FILE"`
CPUProfileFile string
@@ -225,6 +226,7 @@ func (c *Config) LoadFlags(arguments []string) error {
f.StringVar(&c.Name, "name", c.Name, "")
f.StringVar(&c.Addr, "addr", c.Addr, "")
f.StringVar(&c.BootstrapURL, "bootstrap-url", c.BootstrapURL, "")
f.StringVar(&c.BindAddr, "bind-addr", c.BindAddr, "")
f.StringVar(&c.Peer.Addr, "peer-addr", c.Peer.Addr, "")
f.StringVar(&c.Peer.BindAddr, "peer-bind-addr", c.Peer.BindAddr, "")

View File

@@ -26,6 +26,7 @@ Options:
-vv Enabled very verbose logging.
Cluster Configuration Options:
-bootstrap-url=<url> URL to use for bootstrapping the peer list.
-peers-file=<path> Path to a file containing the peer list.
-peers=<host:port>,<host:port> Comma-separated list of peers. The members
should match the peer's '-peer-addr' flag.