---
-containerized_deployment: false
-use_epel: false
-devel_mode: true
-replace_dashboards: true
-graphite:
- service: "{{ 'graphite-web' if ansible_pkg_mgr == 'yum' else 'graphite-api' }}"
- web_port: "{{ graphite_port | default('8080') }}"
- api_port: 8888
- user: admin
- password: admin
- # The unix account running the graphite-web process
- unix_user:
- yum: apache
- apt: _graphite
-grafana:
- datasource: Local
-carbon:
- unix_user:
- yum: carbon
- apt: _graphite
- 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
-rhsm_repos:
- - rhel-7-server-rhscon-2-installer-rpms
- - rhel-7-server-optional-rpms
-devel_packages:
- yum:
- # unzip is needed to extract the Vonage plugin
- - unzip
- - graphite-web
- - python-carbon
- - grafana
- apt:
- # unzip is needed to extract the Vonage plugin
- - unzip
- - graphite-api
- # For graphite-api
- - gunicorn3
- - graphite-carbon
- - grafana
- # for dashUpdater.py
- - python-yaml
- - python-requests
+defaults:
+ containerized_deployment: false
+ use_epel: false
+ devel_mode: true
+ replace_dashboards: true
+ grafana:
+ datasource: Local
+ graphite:
+ service: "{{ 'graphite-web' if ansible_pkg_mgr == 'yum' else 'graphite-api' }}"
+ web_port: "{{ graphite_port | default('8080') }}"
+ api_port: 8888
+ user: admin
+ password: admin
+ # The unix account running the graphite-web process
+ unix_user:
+ yum: apache
+ apt: _graphite
+ carbon:
+ unix_user:
+ yum: carbon
+ apt: _graphite
+ 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
+ rhsm_repos:
+ - rhel-7-server-rhscon-2-installer-rpms
+ - rhel-7-server-optional-rpms
+ devel_packages:
+ yum:
+ # unzip is needed to extract the Vonage plugin
+ - unzip
+ - graphite-web
+ - python-carbon
+ - grafana
+ apt:
+ # unzip is needed to extract the Vonage plugin
+ - unzip
+ - graphite-api
+ # For graphite-api
+ - gunicorn3
+ - graphite-carbon
+ - grafana
+ # for dashUpdater.py
+ - python-yaml
+ - python-requests
--- /dev/null
+---
+- name: Combine default settings and user-defined variables
+ set_fact: {"{{ item }}": "{% if vars[item] is not defined %}{{ defaults[item] }}{% endif %}{% if vars[item] is mapping %}{{ defaults[item]|combine(vars[item]|default({})) }}{% endif %}"}
+ with_items: "{{ defaults.keys() }}"
+ no_log: true