-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{%- from "collectd/map.jinja" import collectd_settings with context %} | ||
# | ||
# DO NOT EDIT | ||
# | ||
# This file is managed by salt via {{ source }} | ||
# Modify the config that generates this file instead | ||
# | ||
|
||
LoadPlugin write_http | ||
|
||
<Plugin write_http> | ||
<Node "{{ collectd_settings.plugins.write_http.name }}" > | ||
URL "{{ collectd_settings.plugins.write_http.url }}" | ||
Format "{{ collectd_settings.plugins.write_http.format }}" | ||
{%- if collectd_settings.plugins.write_http.storerates is defined and collectd_settings.plugins.write_http.storerates %} | ||
StoreRates {{ collectd_settings.plugins.write_http.storerates|lower }} | ||
{%- endif %} | ||
</Node> | ||
</Plugin> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{% from "collectd/map.jinja" import collectd_settings with context %} | ||
include: | ||
- collectd | ||
{{ collectd_settings.plugindirconfig }}/write_http.conf: | ||
file.managed: | ||
- source: salt://collectd/files/write_http.conf | ||
- user: {{ collectd_settings.user }} | ||
- group: {{ collectd_settings.group }} | ||
- mode: 644 | ||
- template: jinja | ||
- watch_in: | ||
- service: collectd-service |