Vault: Gets the Approle ID from Vault.
Usage
get_role_id(url, role_name, token)
Arguments
- url
URL of the HashiCorp Vault instance.
- role_name
name of the role in your Vault instance.
- token
token from your loging role such as user/pass method or github/auth method.
Value
Return's the user/github/etc... token that allows an individual to query secrets in Vault via an approle.
Details
This function obtains the approle ID from Vault. The user can then utilize the approle ID retrieved to query secrets from Vault via the approle method.
You will need the URL of the HashiCorp Vault you are using and your user/github/etc... token to retrieve the approle id.
Examples
if (FALSE) get_role_id(url='vautl.url',role_name='jenkins',token='12345abcdef')