Installs and configure the Ganglia monitoring system.
There are a few things to configure before using this role.
In order to use the role without having to copy all of the maps and their default values, the hash_behaviour of the ansibl.cfg file's defaults section should be set to merge.
[defaults]
hash_behaviour = merge
For the "Ganglia Collector Daemon node", add to the inventory file /production/inventory
node.domain.com is_ganglia_meta=1
For the "Ganglia Web Daemon node", add to the inventory file /production/inventory
node.domain.com is_ganglia_web=1
The collector is configured through the variable ganglia_config_gmetad which is located in roles/ganglia/defaults/main.yml. Simply copy paste this hash in the relevant group vars and adapt the settings. For example: /production/groups_vars/ParisDC1
ganglia_config_gmetad:
...
/production/groups_vars/BerlinDC2
ganglia_config_gmetad:
...
Also, multiple data sources are supported but facts are not used to discover it automatically. So you will have to specify the name of the nodes for these data sources in the group vars.
The monitor is configured through the variable ganglia_config_gmond which is located in roles/ganglia/defaults/main.yml. Simply copy paste this hash in the relevant group vars and adapt the settings. For example: /production/groups_vars/ParisDC1
ganglia_config_gmond:
...
/production/groups_vars/BerlinDC2
ganglia_config_gmond:
...
Each node installed with Ganglia Monitor also has the python extension package too. Though the ganglia_config_gmond option, you can also configure several data sources. One gmond configuration file and one systemV service will be created per data source.
- Use ganglia_config_gmetad and ganglia_config_gmond to discover the ports to open for the firewall
- Add support for installing extensions
- Add support for installing a version not available in the official Operating System repository
In all nodes
roles:
- { role: 'ganglia' }
This role has been tested on CentOS 6.5 and on an Ubuntu Trusty. However, some options in the Ganglia Monitor template are not yet available on both platforms (like sflow support) and you should only comment it for the gmond config file to be parsed properly.
Licensed under the MIT License. See the LICENSE file for details.
Are welcome!