ctera.ctera.ctera_portal_certificate (2.2.17) — module

CTERA Portal SSL certificate management

Authors: Saimon Michelson (@saimonation), Ygal Blum (@ygalblum)

preview | supported by community

Install collection

Install with ansible-galaxy collection install ctera.ctera:==2.2.17


Add to requirements.yml

  collections:
    - name: ctera.ctera
      version: 2.2.17

Description

Import and update the Portal's SSL certificate.

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Import an SSL certificate to CTERA Portal
  ctera.ctera.ctera_portal_certificate:
    private_key: "{{ lookup('file', 'private.key') }}"
    server_certificate: "{{ lookup('file', 'certificate.crt') }}"
    certificate_chain:
      - "{{ lookup('file', 'certificate1.crt') }}"
      - "{{ lookup('file', 'certificate2.crt') }}"
    ctera_host: "{{ ctera_portal_hostname }}"
    ctera_user: "{{ ctera_portal_user }}"
    ctera_password: "{{ ctera_portal_password }}"
    ctera_trust_certificate: True
    tenant: "$admin"

Inputs

    
tenant:
    description:
    - Name of the tenant.
    - For Global Admin operations set to "$admin"
    - Use default if not provided.
    - Do not set for initialization operations
    type: str

private_key:
    description: The private key
    required: true
    type: str

force_update:
    default: false
    description: Force the import of the SSL certificate chain
    type: bool

certificate_chain:
    description: The SSL certificate chain
    elements: str
    required: true
    type: list

server_certificate:
    description: The server SSL certificate
    required: true
    type: str