Restrict prometheus node exporter to overcloud hosts running docker

Also add some default global configuration to enable the service.
This commit is contained in:
Mark Goddard 2017-10-27 15:19:30 +00:00
parent 635118027a
commit 7168052381
3 changed files with 17 additions and 1 deletions

View File

@ -0,0 +1,6 @@
---
###############################################################################
# Prometheus node exporter configuration.
# Whether Prometheus node exporter is enabled.
nodeexporter_enabled: False

View File

@ -7,6 +7,6 @@
# action: One of deploy, destroy, pull, reconfigure, upgrade
- name: Ensure Node Exporter is deployed
hosts: all
hosts: overcloud:&docker
roles:
- role: node-exporter

View File

@ -0,0 +1,10 @@
---
###############################################################################
# Prometheus node exporter configuration.
# Whether Prometheus node exporter is enabled.
#nodeexporter_enabled:
###############################################################################
# Dummy variable to allow Ansible to accept this file.
workaround_ansible_issue_8743: yes