02e56b8258
This patch automates collectd_container var to set to true if running on OpenStack version Stein or later and set to false for below OpenStack version which was manually done earlier. Change-Id: Idd61f060a088caa1eae9d2a80e3c7ceb5debc424
12 lines
383 B
YAML
12 lines
383 B
YAML
---
|
|
- name: set fact collectd_container
|
|
import_playbook: pre-collectd.yml
|
|
|
|
- name: Run containerized collectd (Stein and greater recommended)
|
|
import_playbook: collectd-container.yml
|
|
when: hostvars['undercloud']['collectd_container']
|
|
|
|
- name: Run collectd installed through RPMs
|
|
import_playbook: collectd-baremetal.yml
|
|
when: not hostvars['undercloud']['collectd_container']
|