Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Nomad
Commits
3c41715d
Commit
3c41715d
authored
8 years ago
by
Alex Dadgar
Browse files
Options
Download
Email Patches
Plain Diff
Vault flags
parent
96594c49
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
command/agent/command.go
+29
-0
command/agent/command.go
with
29 additions
and
0 deletions
+29
-0
command/agent/command.go
+
29
-
0
View file @
3c41715d
...
...
@@ -120,6 +120,15 @@ func (c *Command) readConfig() *Config {
}),
"vault-allow-unauthenticated"
,
""
)
flags
.
StringVar
(
&
cmdConfig
.
Vault
.
Token
,
"vault-token"
,
""
,
""
)
flags
.
StringVar
(
&
cmdConfig
.
Vault
.
Addr
,
"vault-address"
,
""
,
""
)
flags
.
StringVar
(
&
cmdConfig
.
Vault
.
TLSCaFile
,
"vault-ca-file"
,
""
,
""
)
flags
.
StringVar
(
&
cmdConfig
.
Vault
.
TLSCaPath
,
"vault-ca-path"
,
""
,
""
)
flags
.
StringVar
(
&
cmdConfig
.
Vault
.
TLSCertFile
,
"vault-cert-file"
,
""
,
""
)
flags
.
StringVar
(
&
cmdConfig
.
Vault
.
TLSKeyFile
,
"vault-key-file"
,
""
,
""
)
flags
.
Var
((
flaghelper
.
FuncBoolVar
)(
func
(
b
bool
)
error
{
cmdConfig
.
Vault
.
TLSSkipVerify
=
&
b
return
nil
}),
"vault-tls-skip-verify"
,
""
)
flags
.
StringVar
(
&
cmdConfig
.
Vault
.
TLSServerName
,
"vault-tls-server-name"
,
""
,
""
)
if
err
:=
flags
.
Parse
(
c
.
args
);
err
!=
nil
{
return
nil
...
...
@@ -915,6 +924,26 @@ Vault Options:
Whether to allow jobs to be sumbitted that request Vault Tokens but do not
authentication. The flag only applies to Servers.
-vault-ca-file=<path>
The path to a PEM-encoded CA cert file to use to verify the Vault server SSL
certificate.
-vault-ca-path=<path>
The path to a directory of PEM-encoded CA cert files to verify the Vault server
certificate.
-vault-cert-file=<token>
The path to the certificate for Vault communication.
-vault-key-file=<addr>
The path to the private key for Vault communication.
-vault-tls-skip-verify=<token>
Enables or disables SSL certificate verification.
-vault-tls-server-name=<token>
Used to set the SNI host when connecting over TLS.
Atlas Options:
-atlas=<infrastructure>
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help