mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 10:25:42 +03:00
ACL command options
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user