Add TLS server name to Vault stanza of Agent configuration (#7519)

This commit is contained in:
Dilan Bellinghoven
2019-10-29 09:11:01 -04:00
committed by Jeff Mitchell
parent 701a8db0d4
commit 281b84184e
5 changed files with 15 additions and 1 deletions

View File

@@ -259,6 +259,12 @@ func (c *AgentCommand) Run(args []string) int {
Default: false,
EnvVar: api.EnvVaultSkipVerify,
})
c.setStringFlag(f, config.Vault.TLSServerName, &StringVar{
Name: flagTLSServerName,
Target: &c.flagTLSServerName,
Default: "",
EnvVar: api.EnvVaultTLSServerName,
})
infoKeys := make([]string, 0, 10)
info := make(map[string]string)