saltext.vault.utils.vault.db¶
Vault Database helpers
Added in version 1.1.0.
- saltext.vault.utils.vault.db.get_plugin_meta(name: str) salt.utils.immutabletypes.ImmutableDict[source]¶
Get meta information for a plugin with this name, excluding the -database-plugin suffix.
- saltext.vault.utils.vault.db.get_plugin_name(name: str) str[source]¶
Get the name of a plugin as rendered by this module. This is a utility for the state module primarily.
- saltext.vault.utils.vault.db.create_cache_pattern(name: str | None = None, mount: str | None = None, cache: str | Literal[True] | None = None, static: bool | None = None) str[source]¶
Render a match pattern for operating on cached leases. Unset parameters result in a
*glob.- name
Name of the database role.
- static
Whether the role is static.
- cache
Filter by cache name (refer to get_creds for details).
- mount
Mount path the associated database backend is mounted to.