From 49d11e37f7e297761a6c5fe4a1be4000608b4f39 Mon Sep 17 00:00:00 2001 From: Armon Dadgar Date: Wed, 4 Feb 2015 17:23:42 -0800 Subject: [PATCH] agent: Adding Atlas CLI flags --- command/agent/command.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/command/agent/command.go b/command/agent/command.go index e0ebfbfc7..d1f820585 100644 --- a/command/agent/command.go +++ b/command/agent/command.go @@ -76,6 +76,9 @@ func (c *Command) readConfig() *Config { cmdFlags.StringVar(&cmdConfig.BindAddr, "bind", "", "address to bind server listeners to") cmdFlags.StringVar(&cmdConfig.AdvertiseAddr, "advertise", "", "address to advertise instead of bind addr") + cmdFlags.StringVar(&cmdConfig.AtlasCluster, "atlas-cluster", "", "cluster name in Atlas") + cmdFlags.StringVar(&cmdConfig.AtlasToken, "atlas-token", "", "authentication token for Atlas") + cmdFlags.IntVar(&cmdConfig.Protocol, "protocol", -1, "protocol version") cmdFlags.BoolVar(&cmdConfig.EnableSyslog, "syslog", false, @@ -815,6 +818,8 @@ Usage: consul agent [options] Options: -advertise=addr Sets the advertise address to use + -atlas-cluster=org/name Sets the Atlas cluster name, enables SCADA. + -atlas-token=token Provides the Atlas API token -bootstrap Sets server to bootstrap mode -bind=0.0.0.0 Sets the bind address for cluster communication -bootstrap-expect=0 Sets server to expect bootstrap mode.