Created
September 3, 2014 17:53
-
-
Save brandentimm/a3a179079c749643c986 to your computer and use it in GitHub Desktop.
es_logstash_kibana init.sls
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
{%- set es_logstash_kibana = salt['pillar.get']('es_logstash_kibana', {}) %} | |
include: | |
- java | |
- logstash | |
- elasticsearch | |
- kibana | |
extend: | |
logstash-pkg: | |
require: | |
- package: oracle-java-pkg | |
elasticsearch-pkg: | |
require: | |
- package: oracle-java-pkg | |
{%- if es_logstash_kibana.lumberjack.cert_path is defined %} | |
lumberjack-cert-dir: | |
file.directory: | |
- name: {{ es_logstash_kibana.lumberjack.cert_path }} | |
- user: root | |
- group: logstash | |
- mode: 0750 | |
- makedirs: True | |
- watch_in: | |
- service: logstash-svc | |
{%- endif %} | |
{%- if (es_logstash_kibana.lumberjack.cert_name is defined) and (es_logstash_kibana.lumberjack.cert_contents is defined) %} | |
lumberjack-crt: | |
file.managed: | |
- name {{ es_logstash_kibana.lumberjack.cert_path + '/' + es_logstash_kibana.lumberjack.cert_name }} | |
- source: salt://es_logstash_kibana/files/lumberjack.crt | |
- template: jinja | |
- user: root | |
- group: logstash | |
- mode: 750 | |
- watch_in: | |
- service: logstash-svc | |
{%- endif %} | |
{%- if es_logstash_kibana.lumberjack.key_path is defined %} | |
lumberjack-key-dir: | |
file.directory: | |
- name: {{ es_logstash_kibana.lumberjack.key_path }} | |
- user: root | |
- group: logstash | |
- mode: 750 | |
- makedirs: True | |
- watch_in: | |
- service: logstash-svc | |
{%- endif %} | |
{%- if (es_logstash_kibana.lumberjack.key_name is defined) and (es_logstash_kibana.lumberjack.key_contents is defined ) %} | |
lumberjack-key: | |
file.managed: | |
- name: {{ es_logstash_kibana.lumberjack.key_path + '/' + es_logstash_kibana.lumberjack.key_name }} | |
- source: salt://es_logstash_kibana/files/lumberjack.key | |
- template: jinja | |
- user: root | |
- group: logstash | |
- mode: 750 | |
- watch_in: | |
- service: logstash-svc | |
{%- endif %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment