Use this role to set up Canopy connector monitoring.
Some of the more important variables are briefly described below. You can see all variables by looking at the defaults/main.yml file.
This is the URL for the NiFi instance that you wish to monitor.
canopy_connector_nifi_url: https://nifi-stage.ona.io
This is the NiFi basic auth username. This is optional and should be left out if not needed.
canopy_connector_nifi_username: admin
This is the NiFi basic auth password. This is optional and should be left out if not needed.
canopy_connector_nifi_password: hunter2
Determines whether or not the monitoring command should be set up to run periodically using cron. This defaults to true
.
canopy_connector_monitoring_setup_cron: true
This specifies how often the monitoring command should run.
canopy_connector_monitoring_cron_minute: "*/5" # cron format
At this time, this role has no dependencies.
- hosts: servers
roles:
- role: ansible-canopy-connector-monitoring
vars:
- canopy_connector_nifi_username: admin
- canopy_connector_nifi_password: hunter2
- canopy_connector_monitoring_cron_minute: "*/5"
This project uses molecule for testing.
Start by creating a virtual environment and installing python packages
pip install -r requirements/dev.in
Then to run the full test sequence:
tox
Apache 2