Documentation

hashivault_write_from_file - Hashicorp Vault write file module

New in version 3.8.3.

Synopsis

  • Writes a file encoded in base64 to Hashicorp Vault. Implementation in /plugins/action/hashivault_write_from_file.py.

Parameters

Parameter Choices/Defaults Comments
authtype Default:
token
authentication type to use: token, userpass, github, ldap, approle
dest
fully qualified path name of file to read from remote host.
key
secret key/name of file to write to vault.
password
password to login to vault.
secret
vault secret to write.
token Default:
to environment variable VAULT_TOKEN
token for vault
update Default:
yes
Update secret rather than overwrite.
url Default:
to environment variable VAULT_ADDR
url for vault
username
username to login to vault.
verify Default:
to environment variable VAULT_SKIP_VERIFY
verify TLS certificate

Examples

---
- hosts: localhost
  tasks:
    - hashivault_write_from_file:
        secret: giant
        key: foo.dat
        path: /tmp/foo.dat

Status

Author

  • Developed for AT&T by Nicholas Gibson, August 2017

Hint

If you notice any issues in this documentation you can edit this document to improve it.