-
Notifications
You must be signed in to change notification settings - Fork 0
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
42 additions
and
50 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 |
---|---|---|
@@ -0,0 +1,38 @@ | ||
--- | ||
|
||
elastic_bind_host: 0.0.0.0 | ||
elastic_cluster_name: watchmen | ||
elastic_node_name: nite-owl | ||
elastic_jvm_extra_config: | | ||
-Des.enforce.bootstrap.checks=true | ||
elastic_certificates_password: 'nk}$Q%];a3Gy$E!QvT8E' | ||
elastic_certificates: | ||
ca: "~/pki/ca.crt" | ||
crt: "~/pki/issued/elastic.crt" | ||
key: "~/pki/private/elastic.key" | ||
elastic_certificates_dir: /etc/elasticsearch/certs/ | ||
elastic_builtin_users_set_random_passwords: true | ||
elastic_builtin_users_password_backup_file: ~/elastic-passwords | ||
template_files: | ||
# When using logstash in front of kibana and you use elastic beats to send | ||
# data to logstash (which will then be forwarded to elastic), you will | ||
# need to manually load the index templates that come with the elastic | ||
# beats. The `nkakouros.beats` role allow you to extract the index | ||
# template into a json file. Here, we read the paths on the ansible | ||
# controller where these json files are located in order for the | ||
# `nkakouros.elastic` role to insert them into elasticsearch. | ||
"{{ q('fileglob', '~/elk/beats/*.json') }}" | ||
elastic_index_templates: >- | ||
[ | ||
{%- for file in template_files -%} | ||
{ | ||
'file': '{{ file }}', | ||
'name': '{{ | ||
file | ||
| basename | ||
| regex_replace('^([^.]+\.[0-9]+\.[0-9]+\.[0-9]+)\..*$', '\1') | ||
| replace('.', '-', count=1) | ||
}}' | ||
}, | ||
{%- 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