This role will instantiate a Lenovo Flex exporter container on targeted hosts.
Docker must be available and running on the targeted hosts.
The EPEL repository must be available on the targeted hosts.
Default values of variables:
lenovo_flex_exporter_image: 'quay.io/redhat-cop/monitoring-lenovo-flex-exporter'
lenovo_flex_exporter_image_version: 'latest'
lenovo_flex_exporter_port: '9417'
provision_state: "started"
lenovo_flex_exporter_image
- The lenovo flex exporter image to deploy.
lenovo_flex_exporter_image_version
- The image tag to deploy.
lenovo_flex_exporter_port
- The port to expose on the target hosts.
provision_state
- Options: [absent, killed, present, reloaded, restarted, started (default), stopped]
Snippet below configures targets for the Lenovo Flex exporter. Note that monitoring_username
and monitoring_password
must be valid SSH credentials for the Lenovo Flex hosts.
monitoring_username: "Administrator"
monitoring_password: "password123"
lenovo_flex_hosts:
- 10.0.0.1
- 10.0.0.2
- 10.0.0.3
The docker server >= 0.10.0
- name: Setup Lenovo Flex exporters
hosts: prometheus_scraper
become: True
vars:
provision_state: "started"
roles:
- prometheus/generic/setup-lenovo-flex-exporter
Apache License 2.0
Red Hat Community of Practice & staff of the Red Hat Open Innovation Labs.