-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support managing localFile sources with Salt Pillars
- Loading branch information
Liberty Young
committed
Aug 27, 2015
1 parent
6479880
commit 45b7f18
Showing
3 changed files
with
33 additions
and
5 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
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 |
---|---|---|
@@ -1,8 +1,24 @@ | ||
{% set sumo_tz = salt['pillar.get']('sumologic:timezone', "America/Los_Angeles") %} | ||
{% set sources = salt['pillar.get']('sumologic:file_sources', {}) %} | ||
{ | ||
"api.version": "v1", | ||
"installer": { | ||
"name": "None", | ||
"order": 1000, | ||
"description": "Do not install sources" | ||
"sources": [ | ||
{% for source in sources %} | ||
{ | ||
"sourceType" : "LocalFile", | ||
"name": "{{ source["name"]}}", | ||
"pathExpression": "{{ source["path"]}}", | ||
"category": "{{source["category"]}}", | ||
"hostName": "{{salt['grains.get']('id')}}", | ||
"useAutolineMatching": false, | ||
"multilineProcessingEnabled": false, | ||
"automaticDateParsing": true, | ||
"timeZone": "{{ sumo_tz }}", | ||
"forceTimeZone": false, | ||
"defaultDateFormat": "dd/MMM/yyyy HH:mm:ss", | ||
"filters": [], | ||
"blacklist": [] | ||
}{% if not loop.last %},{% endif %} | ||
{% endfor %} | ||
] | ||
} | ||
} |
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