evertrust.horizon.horizon_inventory (1.3.0) — inventory

Horizon inventory plugin

Authors: Evertrust R&D (@EverTrust)

Install collection

Install with ansible-galaxy collection install evertrust.horizon:==1.3.0


Add to requirements.yml

  collections:
    - name: evertrust.horizon
      version: 1.3.0

Description

Generate hosts inventory from Horizon using an HCQL query.

Use a YAML configuration file that ends with C(horizon_inventory.(yml|yaml)).

Inputs

    
query:
    description: HCQL query to filter the results.
    required: false

fields:
    choices:
    - _id
    - certificate
    - discoveredTrusted
    - dn
    - holderId
    - issuer
    - keyType
    - labels
    - metadata
    - module
    - notAfter
    - notBefore
    - owner
    - profile
    - revocationDate
    - revocationReason
    - serial
    - signingAlgorithm
    - subjectAlternateNames
    - thirdPartyData
    description:
    - Fields to be retrieved from Horizon.
    - If omitted, all fields will be returned.
    elements: string
    type: list

endpoint:
    description:
    - Your Horizon instance base endpoint.
    - It must include the protocol (https://) and no trailing slash nor path.
    required: true
    type: str

x_api_id:
    description:
    - Horizon identifier
    - Required if you use credentials authentication
    required: false
    type: str

ca_bundle:
    description:
    - Path of a CA bundle used to validate the Horizon instance SSL certificate.
    required: false
    type: path

hostnames:
    default: []
    description:
    - A list in order of precedence for hostname variables.
    - To use labels as hostnames use the syntax label.<key>.
    elements: str
    required: false
    type: list

x_api_key:
    description:
    - Horizon password
    - Required if you use credentials authentication
    required: false
    type: str

client_key:
    description:
    - Path of a client certificate's key.
    - Required if you use certificate based authentication
    required: false
    type: path

client_cert:
    description:
    - Path of a client certificate.
    - Required if you use certificate based authentication
    required: false
    type: path