ACL command options

This commit is contained in:
Alex Dadgar
2017-10-12 13:51:39 -07:00
parent 45a16a4794
commit 5d724d619d
2 changed files with 17 additions and 0 deletions

View File

@@ -69,6 +69,7 @@ func (c *Command) readConfig() *Config {
Ports: &Ports{},
Server: &ServerConfig{},
Vault: &config.VaultConfig{},
ACL: &ACLConfig{},
}
flags := flag.NewFlagSet("agent", flag.ContinueOnError)
@@ -166,6 +167,10 @@ func (c *Command) readConfig() *Config {
}), "vault-tls-skip-verify", "")
flags.StringVar(&cmdConfig.Vault.TLSServerName, "vault-tls-server-name", "", "")
// ACL options
flags.BoolVar(&cmdConfig.ACL.Enabled, "acl-enabled", false, "")
flags.StringVar(&cmdConfig.ACL.ReplicationToken, "acl-replication-token", "", "")
if err := flags.Parse(c.args); err != nil {
return nil
}
@@ -984,6 +989,16 @@ Client Options:
The default speed for network interfaces in MBits if the link speed can not
be determined dynamically.
ACL Options:
-acl-enabled
Specifies whether the agent should enable ACLs.
-acl-replication-token
The replication token for servers to use when replicating from the
authoratative region. The token must be a valid management token from the
authoratative region.
Consul Options:
-consul-address=<addr>