-
Notifications
You must be signed in to change notification settings - Fork 546
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
new resource: vault_audit #81
new resource: vault_audit #81
Conversation
vault/resource_audit.go
Outdated
"description": { | ||
Type: schema.TypeString, | ||
Optional: true, | ||
Required: false, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You don't need to explicitly set the zero values.
vault/resource_audit.go
Outdated
log.Printf("[DEBUG] Enabling audit backend %s in Vault", path) | ||
|
||
if err := client.Sys().EnableAudit( | ||
d.Get("path").(string), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you already have a path
variable above
@offlinehacker any plans to make these changes? |
@offlinehacker I would like to lend a hand if I could get commit access to your branch? |
525ebef
to
0d0b680
Compare
I created requested changes, also improved test to use stdout, should work now outside docker. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for writing this, much appreciated!
Adds a new resource,
vault_audit
, which manages vault audit backends. This also solves following issue #53