blob: 107751360a7e23c02f764ee1bf743296f16dc8f9 [file] [log] [blame]
Filip Pytloun6d4b7a22015-10-06 16:28:31 +02001
2{% set client = salt['grains.filter_by']({
3 'Arch': {
4 'pkgs': ['collectd'],
5 'service': 'collectd',
Olivier Bourdonf9eb2152016-11-30 15:19:16 +01006 'defaults_file': '/etc/default/collectd',
Filip Pytloun6d4b7a22015-10-06 16:28:31 +02007 'config_file': '/etc/collectd.conf',
8 'config_dir': '/etc/collectd.d',
Ales Komarek2675e842016-10-05 00:10:44 +02009 'read_interval': 60,
10 'file_logging': True,
Simon Pasquier5738e702016-11-15 11:26:11 +010011 'syslog_logging': True,
pasquier-s1ee86c62016-10-27 16:34:47 +020012 'use_fqdn': True,
Simon Pasquier81f77512016-11-22 12:00:09 +010013 'automatic_starting': True,
Filip Pytloun6d4b7a22015-10-06 16:28:31 +020014 },
15 'Debian': {
Simon Pasquier87c99f92016-10-27 17:06:50 +020016 'pkgs': ['collectd-core', 'snmp', 'python-yaml', 'libpython2.7', 'python-simplejson'],
Filip Pytloun6d4b7a22015-10-06 16:28:31 +020017 'service': 'collectd',
Olivier Bourdonf9eb2152016-11-30 15:19:16 +010018 'defaults_file': '/etc/default/collectd',
Filip Pytloun6d4b7a22015-10-06 16:28:31 +020019 'config_file': '/etc/collectd/collectd.conf',
20 'config_dir': '/etc/collectd/conf.d',
Ales Komarek2675e842016-10-05 00:10:44 +020021 'read_interval': 60,
22 'file_logging': True,
Simon Pasquier5738e702016-11-15 11:26:11 +010023 'syslog_logging': True,
pasquier-s1ee86c62016-10-27 16:34:47 +020024 'use_fqdn': True,
Simon Pasquier81f77512016-11-22 12:00:09 +010025 'automatic_starting': True,
Filip Pytloun6d4b7a22015-10-06 16:28:31 +020026 },
27 'RedHat': {
Ales Komarek2689e0c2017-03-14 10:35:15 +010028 'pkgs': ['collectd', 'collectd-ping', 'collectd-netlink', 'net-snmp', 'PyYAML'],
Filip Pytloun6d4b7a22015-10-06 16:28:31 +020029 'service': 'collectd',
Olivier Bourdonf9eb2152016-11-30 15:19:16 +010030 'defaults_file': '/etc/sysconfig/collectd',
Filip Pytloun6d4b7a22015-10-06 16:28:31 +020031 'config_file': '/etc/collectd.conf',
32 'config_dir': '/etc/collectd.d',
Ales Komarek2675e842016-10-05 00:10:44 +020033 'read_interval': 60,
34 'file_logging': True,
Simon Pasquier5738e702016-11-15 11:26:11 +010035 'syslog_logging': True,
pasquier-s1ee86c62016-10-27 16:34:47 +020036 'use_fqdn': True,
Simon Pasquier81f77512016-11-22 12:00:09 +010037 'automatic_starting': True,
Filip Pytloun6d4b7a22015-10-06 16:28:31 +020038 },
39}, merge=salt['pillar.get']('collectd:client')) %}
Simon Pasquier5738e702016-11-15 11:26:11 +010040
41{% set remote_client = salt['grains.filter_by']({
42 'default': {
43 'service': 'remote_collectd',
Olivier Bourdonf9eb2152016-11-30 15:19:16 +010044 'defaults_file': '/etc/default/remote_collectd',
Simon Pasquier5738e702016-11-15 11:26:11 +010045 'config_file': '/etc/remote_collectd/collectd.conf',
46 'config_dir': '/etc/remote_collectd/conf.d',
47 'read_interval': 60,
48 'file_logging': True,
49 'syslog_logging': False,
50 'use_fqdn': True,
Simon Pasquier81f77512016-11-22 12:00:09 +010051 'automatic_starting': True,
Simon Pasquier5738e702016-11-15 11:26:11 +010052 }
53}, merge=salt['pillar.get']('collectd:remote_client')) %}