Horizon feed (discovery) plugin
Note
This module is part of the evertrust.horizon collection (version 1.5.0).
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 evertrust.horizon
.
To use it in a playbook, specify: evertrust.horizon.horizon_feed
.
Synopsis
Present a certificate from a discovery campaign to be used by Horizon.
Note
This module has a corresponding action plugin.
Parameters
Parameter |
Comments |
---|---|
Path of a CA bundle used to validate the Horizon instance SSL certificate. |
|
The name of the discovery campaign to feed into. |
|
The PEM-encoded certificate to feed the discovery campaign with. |
|
The path to a certificate PEM file |
|
Path of a client certificate. Required if you use certificate based authentication |
|
Path of a client certificate’s key. Required if you use certificate based authentication |
|
Your Horizon instance base endpoint. It must include the protocol (https://) and no trailing slash nor path. |
|
The certificate’s host hostnames. |
|
The certificate’s host ip |
|
The certificate’s host operating system. |
|
The path to the certificate on the host machine. |
|
The path of the configuration files that were used to find the certificates. |
|
Horizon identifier Required if you use credentials authentication |
|
Horizon password Required if you use credentials authentication |
Notes
Note
Feeding a certificate requires permissions on the specified discovery campaign.
Examples
- name: Feed a certificate by its content
evertrust.horizon.horizon_feed:
endpoint: "https://<horizon-endpoint>"
x_api_id: "<horizon-id>"
x_api_key: "<horizon-password>"
campaign: exampleCampaign
ip: localhost
certificate_pem: "-----BEGIN CERTIFICATE----- ... -----END CERTIFICATE-----"
- name: Feed a certificate by a file
evertrust.horizon.horizon_feed:
endpoint: "https://<horizon-endpoint>"
x_api_id: "<horizon-id>"
x_api_key: "<horizon-password>"
campaign: exampleCampaign
ip: localhost
certificate_pem:
src: pem/file/path