The first value must be '10s', still, for consistency with collectd
Signed-off-by: Zack Cerza <zack@redhat.com>
storage_dir:
yum: /var/lib/carbon
apt: /var/lib/graphite
+whisper:
+ retention:
+ - ['10s', '7d']
+ - ['1m', '30d']
+ - ['15m', '5y']
# The firewalld zone that carbon and grafana will use
firewalld_zone: public
# RHEL repos that need to be enabled with subscription-manager
notify:
- Restart carbon-cache
+- name: Fail when the the first whisper retention value is not 10s
+ fail:
+ msg: "The first whisper retention value must be '10s', not '{{ whisper.retention[0][0] }}'"
+ failed_when: whisper.retention[0][0] != '10s'
+ any_errors_fatal: true
+
- name: Set whisper_retention
set_fact:
- # Changing collectd_interval is not supported at this time
- whisper_retention: "{{ collectd_interval|default('10') }}s:7d,1m:30d,15m:5y"
+ whisper_retention: "{{ whisper.retention|map('join', ':')|join(',') }}"
- name: Configure retention for collectd stats
template: