You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
1.2 KiB
YAML

---
# See meta/main.yml for the basic installation and configuration steps
# The hadoop conf directory always exists
- name: Distribute the ganglia hadoop metrics properties
template: src={{ item }}.j2 dest={{ hadoop_conf_dir }}/{{ item }} owner=root group=root mode=444
with_items:
- hadoop-metrics.properties
- hadoop-metrics2.properties
tags: [ 'monitoring', 'ganglia', 'ganglia_conf' ]
- name: Check if the hbase conf directory exists
stat: path={{ hbase_conf_dir }}
register: check_hbase_confdir
tags: [ 'monitoring', 'ganglia', 'ganglia_conf' ]
- name: Distribute the ganglia hbase metrics properties
template: src={{ item }}.properties.j2 dest={{ hbase_conf_dir }}/{{ item }}-hbase.properties owner=root group=root mode=444
with_items:
- hadoop-metrics
- hadoop-metrics2
when: check_hbase_confdir.stat.exists
tags: [ 'monitoring', 'ganglia', 'ganglia_conf' ]
- name: Distribute the ganglia hbase metrics properties, maintain the old file name
file: src={{ hbase_conf_dir }}/{{ item }}-hbase.properties dest={{ hbase_conf_dir }}/{{ item }}.properties state=link force=yes
with_items:
- hadoop-metrics
- hadoop-metrics2
when: check_hbase_confdir.stat.exists
tags: [ 'monitoring', 'ganglia', 'ganglia_conf' ]