radware.radware_modules.alteon_config_ssl_cert (0.6.12) — module

Manage SSL certificates in Radware Alteon

| "added in version" 2.9 of radware.radware_modules"

Authors: Leon Meguira (@leonmeguira), Nati Fridman (@natifridman)

stableinterface | supported by certified

Install collection

Install with ansible-galaxy collection install radware.radware_modules:==0.6.12


Add to requirements.yml

  collections:
    - name: radware.radware_modules
      version: 0.6.12

Description

Manage SSL certificates in Radware Alteon


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: alteon configuration command
  radware.radware_modules.alteon_config_ssl_cert:
    provider: 
      server: 192.168.1.1
      user: admin
      password: admin
      validate_certs: no
      https_port: 443
      ssh_port: 22
      timeout: 5
    state: present
    parameters:
      index: test_cert
      certificate_type: serverCertificate
      description: test_cert_desc_2
      content: |
         -----BEGIN CERTIFICATE-----
         MIIDcDCCAligAwIBAgIEXZdR1DANBgkqhkiG9w0BAQsFADAUMRIwEAYDVQQDDAl0
         ZXN0X2NlcnQwHhcNMTkxMDA0MTQwNjUxWhcNMjAxMDAzMTQwNjUxWjAUMRIwEAYD
         VQQDDAl0ZXN0X2NlcnQwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDB
         JWy4t/fI1x1uRQN3ExkMsliT91sUUE8kVtmKnifEUwlg9aCD4c2yGze0KOvx77Qk
         +TJmN/WYh5odTC8+0Z+R4gecDGbF3hCup4PqnGoRkYjqYafLq5ZIGWa5UPQCCjkY
         KnDsDrWJuxjGbDlLUVOqJMBV3gf09c/vqMa0z04LEA+w/d5b3onLw02+v5o+Hcfq
         EgyPFkWEQApo///cwGo9KpuiIfMzkiqxydUHA97aH3pJIdEK6zPhAUdTMw+k6kqM
         rxQ3HDnOTi34Q5WPey7p9MNZt2Qr/hbItD2dQxAugwjfvIGoQBtDfM9Y24/Rs1vy
         pf3EN6hJCXZbrPeZO4WVAgMBAAGjgckwgcYwDwYDVR0TAQH/BAUwAwEB/zARBglg
         hkgBhvhCAQEEBAMCAkQwMwYJYIZIAYb4QgENBCYWJEFsdGVvbi9SYWR3YXJlIEdl
         bmVyYXRlZCBDZXJ0aWZpY2F0ZTAdBgNVHQ4EFgQUEKm1R1mLIUN6N3NT1884Vd7N
         4rUwPwYDVR0jBDgwNoAUEKm1R1mLIUN6N3NT1884Vd7N4rWhGKQWMBQxEjAQBgNV
         BAMMCXRlc3RfY2VydIIEXZdR1DALBgNVHQ8EBAMCAuwwDQYJKoZIhvcNAQELBQAD
         ggEBAKl01eJCPprts1MR0ie59w2QDSsQte+No3huCK464mFn5bko/yPB8J8//hrk
         IE1R8pQRskNTPAH98qYevmhu53N8XDzatP63NiJSsXzu6kquEmd2Np/YFbaGa7LP
         qL7GojjADTNYX/O7EPBZfwiQHMEoibvJbOZFT4wWEM2HxoE8spSKzi0beDFKmygp
         On2KHBmdZvlGtygqVnAlkoxIrIgI0bvja9WiG6c/X7McPxi3OB92ap9mbrNlJaj8
         3Rso75dwTVSRtL7ZqiiW7g8pTcBWyy/PZQ7dl+r9m+v6/pe5qjGEmVCBYPM25WC+
         auCiEM/1cKjODR0vsp7nEUwXsdc=
         -----END CERTIFICATE-----

Inputs

    
state:
    choices:
    - present
    - absent
    - read
    - overwrite
    - append
    default: null
    description:
    - When C(present), guarantees that the object exists with the provided attributes.
    - When C(absent), when applicable removes the object.
    - When C(read), when exists read object from configuration to parameter format.
    - When C(overwrite), removes the object if exists then recreate it
    - When C(append), append object configuration with the provided parameters
    required: true

provider:
    description:
    - Radware Alteon connection details.
    required: true
    suboptions:
      https_port:
        default: null
        description:
        - Radware Alteon https port.
        required: true
      password:
        default: null
        description:
        - Radware Alteon password.
        required: true
      server:
        default: null
        description:
        - Radware Alteon IP address.
        required: true
      ssh_port:
        default: null
        description:
        - Radware Alteon ssh port.
        required: true
      timeout:
        default: null
        description:
        - Timeout for connection.
        required: true
      user:
        default: null
        description:
        - Radware Alteon username.
        required: true
      validate_certs:
        default: null
        description:
        - If C(no), SSL certificates will not be validated.
        - This should only set to C(no) used on personally controlled sites using self-signed
          certificates.
        required: true
        type: bool

parameters:
    description:
    - Parameters for SSL certificate configuration.
    suboptions:
      certificate_type:
        choices:
        - serverCertificate
        - trustedCertificate
        - intermediateCertificate
        default: null
        description:
        - Certificate type.
        required: true
      content:
        default: null
        description:
        - The certificate string.
        required: false
        type: str
      description:
        default: null
        description:
        - An optional descriptive name of the server certificate in addition to the certificate
          ID.
        required: false
        type: str
      index:
        default: null
        description:
        - An identifier for a certificate.
        required: true
        type: str
      intermediate_ca_name:
        default: null
        description:
        - The intermediate CA certificate.
        required: false
        type: str
      intermediate_ca_type:
        choices:
        - group
        - cert
        default: null
        description:
        - Specifies whether an Intermediate CA certificate or certificate chain (group)
          must be sent to the client together with the server certificate to construct
          the trust chain to the user's trusted CAs.
        required: false

revert_on_error:
    default: false
    description:
    - If an error occurs, perform revert on alteon.
    required: false
    type: bool

write_on_change:
    default: false
    description:
    - Executes Alteon write calls only when an actual change has been evaluated.
    required: false
    type: bool

Outputs

obj:
  description: parameters object type
  returned: changed, read
  type: dictionary
status:
  description: Message detailing run result
  returned: success
  sample: object deployed successfully
  type: str