From 91b52176d8497620b87b26e0b102567763937003 Mon Sep 17 00:00:00 2001 From: Armon Dadgar Date: Tue, 20 May 2014 17:00:04 -0700 Subject: [PATCH] agent: Provide log info about encryption. Fixes #151. --- command/agent/command.go | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/command/agent/command.go b/command/agent/command.go index 70a0387b3c..7f0c2f687d 100644 --- a/command/agent/command.go +++ b/command/agent/command.go @@ -319,13 +319,15 @@ func (c *Command) Run(args []string) int { c.agent.StartSync() c.Ui.Output("Consul agent running!") - c.Ui.Info(fmt.Sprintf(" Node name: '%s'", config.NodeName)) - c.Ui.Info(fmt.Sprintf(" Datacenter: '%s'", config.Datacenter)) - c.Ui.Info(fmt.Sprintf(" Server: %v (bootstrap: %v)", config.Server, config.Bootstrap)) - c.Ui.Info(fmt.Sprintf(" Client Addr: %v (HTTP: %d, DNS: %d, RPC: %d)", config.ClientAddr, + c.Ui.Info(fmt.Sprintf(" Node name: '%s'", config.NodeName)) + c.Ui.Info(fmt.Sprintf(" Datacenter: '%s'", config.Datacenter)) + c.Ui.Info(fmt.Sprintf(" Server: %v (bootstrap: %v)", config.Server, config.Bootstrap)) + c.Ui.Info(fmt.Sprintf(" Client Addr: %v (HTTP: %d, DNS: %d, RPC: %d)", config.ClientAddr, config.Ports.HTTP, config.Ports.DNS, config.Ports.RPC)) - c.Ui.Info(fmt.Sprintf("Cluster Addr: %v (LAN: %d, WAN: %d)", config.AdvertiseAddr, + c.Ui.Info(fmt.Sprintf(" Cluster Addr: %v (LAN: %d, WAN: %d)", config.AdvertiseAddr, config.Ports.SerfLan, config.Ports.SerfWan)) + c.Ui.Info(fmt.Sprintf("Gossip encrypt: %v, RPC-TLS: %v, TLS-Incoming: %v", + config.EncryptKey != "", config.VerifyOutgoing, config.VerifyIncoming)) // Enable log streaming c.Ui.Info("")