Skip to content
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

Merged

Conversation

offlinehacker
Copy link
Contributor

Adds a new resource, vault_audit, which manages vault audit backends. This also solves following issue #53

"description": {
Type: schema.TypeString,
Optional: true,
Required: false,
Copy link
Contributor

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 Show resolved Hide resolved
log.Printf("[DEBUG] Enabling audit backend %s in Vault", path)

if err := client.Sys().EnableAudit(
d.Get("path").(string),
Copy link
Contributor

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

@kmcquade
Copy link

@offlinehacker any plans to make these changes?

@paddie
Copy link

paddie commented Aug 16, 2018

@offlinehacker I would like to lend a hand if I could get commit access to your branch?

@ghost ghost added the size/L label Sep 6, 2018
@offlinehacker
Copy link
Contributor Author

I created requested changes, also improved test to use stdout, should work now outside docker.

@paddie
Copy link

paddie commented Sep 6, 2018

@paultyng @kmcquade any chance you guys could do a final pass on it?

Copy link
Contributor

@tyrannosaurus-becks tyrannosaurus-becks left a 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!

@tyrannosaurus-becks tyrannosaurus-becks merged commit ba3e4e3 into hashicorp:master Sep 13, 2018
dandandy pushed a commit to dandandy/terraform-provider-vault that referenced this pull request Jun 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants