Merge pull request #6 from elemoine/revert
Revert "Stacklight (#5)"
diff --git a/metadata/service/client/init.yml b/metadata/service/client/init.yml
index d71b06e..87ef14f 100644
--- a/metadata/service/client/init.yml
+++ b/metadata/service/client/init.yml
@@ -12,4 +12,3 @@
strata:
- ${_param:ntp_strata_host1}
- ${_param:ntp_strata_host2}
- mode7: false
diff --git a/ntp/files/ntp.conf b/ntp/files/ntp.conf
index 6704d18..744f094 100644
--- a/ntp/files/ntp.conf
+++ b/ntp/files/ntp.conf
@@ -25,10 +25,6 @@
restrict 127.0.0.1
restrict ::1
-{%- if ntp.mode7 %}
-# mode7 is required for collectd monitoring
-enable mode7
-{%- endif %}
# Location of drift file
driftfile /var/lib/ntp/ntp.drift
diff --git a/ntp/map.jinja b/ntp/map.jinja
index 60f7d70..f136b18 100644
--- a/ntp/map.jinja
+++ b/ntp/map.jinja
@@ -2,15 +2,12 @@
{% set client = salt['grains.filter_by']({
'Arch': {
'service': 'ntpd',
- 'mode7': False,
},
'Debian': {
'service': 'ntp',
- 'mode7': False,
},
'RedHat': {
'service': 'ntpd',
- 'mode7': False,
},
}, merge=salt['pillar.get']('ntp:client')) %}
diff --git a/ntp/meta/collectd.yml b/ntp/meta/collectd.yml
index a686ceb..5e34280 100644
--- a/ntp/meta/collectd.yml
+++ b/ntp/meta/collectd.yml
@@ -1,8 +1,5 @@
-{% from "ntp/map.jinja" import client with context %}
-
-{%- if client.get('enabled', False) and client.mode7 %}
-local_plugin:
+plugin:
ntp_server_status:
plugin: ntpd
+ execution: local
template: ntp/files/collectd_ntpd.conf
-{%- endif %}