rapyutarobotics.rr_io.secrets – Module to interact with rapyuta_io secrets
Note
This plugin is part of the rapyutarobotics.rr_io collection (version 2.0.0).
You might already have this collection installed if you are using the ansible
package.
It is not included in ansible-core
.
To check whether it is installed, run ansible-galaxy collection list
.
To install it, use: ansible-galaxy collection install rapyutarobotics.rr_io
.
To use it in a playbook, specify: rapyutarobotics.rr_io.secrets
.
New in version 1.0.0: of rapyutarobotics.rr_io
Synopsis
This is my longer description explaining my test module.
Parameters
Parameter |
Comments |
---|---|
There are 2 types of authentication types for source secrets in rapyuta.io. If authentication_type=ssh then If authentication_type=ssh=basic then Choices:
|
|
Used if type=source when authentication_type=basic. |
|
Required if type=docker secrets. |
|
Required if type=source when authentication_type=basic. Choices:
|
|
Name of the secret. |
|
Required if type=docker secrets or type=source when authentication_type=basic and executable_type=password. |
|
Whether the secret should be present in rapyuta.io. Choices:
|
|
Required if type=docker secrets. Default: “https://index.docker.io/v1/” |
|
Required if type=docker secrets or type=source when authentication_type=basic and executable_type=source_token. |
|
Required if authentication_type=ssh for type=source secrets. ssh_key can be given to authenticate to a private source control repository. |
|
There are 2 types of secrets in rapyuta.io. If type=docker then If type=source then Source secrets allow the user to pull in code from private Source control repository. Docker secrets allow the user to pull the docker image from private image registry. Choices:
|
|
Required if type=docker secrets or type=source when authentication_type=basic and executable_type=password. |
Examples
- name: Github secret
async: 100
poll: 0
rapyutarobotics.rr_io.secrets:
name: github
present: false
type: source
authentication_type: ssh
ssh_key: |
-----BEGIN RSA PRIVATE KEY-----
XXX
-----END RSA PRIVATE KEY-----
- name: Docker Secret
async: 100
poll: 0
rapyutarobotics.rr_io.secrets:
name: dockerhub
present: false
type: docker
username: YYY
password: XXX
email: XYZ@robotics-company.com
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
---|---|
The output message that the test module generates. Returned: always Sample: “goodbye” |
|
The original name param that was passed in. Returned: always Sample: “hello world” |