netapp.storagegrid.na_sg_grid_self_signed_certificate module – Generate self signed certificate on StorageGRID.
Note
This module is part of the netapp.storagegrid collection (version 21.17.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 netapp.storagegrid.
To use it in a playbook, specify: netapp.storagegrid.na_sg_grid_self_signed_certificate.
New in netapp.storagegrid 21.17.0
Synopsis
Generate self signed certificate on NetApp StorageGRID.
Parameters
Parameter |
Comments |
|---|---|
The url to the StorageGRID Admin Node REST API. |
|
The authorization token for the API request |
|
The type of self-signed certificate to be generated. Choices:
|
|
Domain name identities in addition to or in place of the identity in the subject field. If the subject common name is not set, the first domain name in the list is used as the common name. It is optional when |
|
IP identities in addition to or in place of the identity in the subject field. If subject common name and domains are not set, the first IP in the list is used as the common name. It is optional when |
|
Whether or not the generated certificate includes key usage extensions. This should be set to true unless you are experiencing connection problems with older clients. Choices:
|
|
The self signed certificate should be present. Choices:
|
|
The distinguished name of this certificate’s entity. If the subject does not contain a CN value, the CN is set to /CN=[first domain or IP] if a domain or IP is present. Otherwise, it is set to /CN=StorageGRID or /CN StorageGRID client, based on the extendedKeyUsage for the generated certificate. |
|
The number of days the certificate is valid. Default: |
|
Should https certificates be validated? Choices:
|
Notes
Note
Module is not idempotent.
The modules prefixed with
na_sgare built to manage NetApp StorageGRID.
Examples
- name: generate self signed certificate
netapp.storagegrid.na_sg_grid_self_signed_certificate:
api_url: "https://<storagegrid-endpoint-url>"
auth_token: "storagegrid-auth-token"
validate_certs: false
subject: "/CN=StorageGRID"
valid_days: 365
domains:
- storagegrid.example.com
ips:
- "1.2.3.4"
certificate_type: "serverAuth"
key_usage_extension: true
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
|---|---|
Returns information about the StorageGRID self signed certificate. Returned: If state is ‘present’. Sample: |