Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Made two changes to get around known logstash issues #72

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion install/roles/elasticsearch/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,13 @@
mode=0644
become: true

# Added java-1.8.0 limitation. Known issue: #with java10 I get these error :Unrecognized VM option 'UseParNewGC' #9316
- name: Install elasticsearch and openjdk
yum: name={{ item }} state=present
become: true
with_items:
- elasticsearch
- java-openjdk-headless
- java-1.8.0-openjdk-headless

- name: Copy templated elasticsearch.yml
template:
Expand Down
11 changes: 11 additions & 0 deletions install/roles/kibana/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,17 @@
when: (logging_backend != 'fluentd')
become: true

# Workaround for known logstash issue 'Missing systemd scripts in 6.2.4 #9403'
- name: Check status of systemd logstash.service
stat:
path: /etc/systemd/system/logstash.service
register: logstash_service_status

- name: Create logstash service if it doesn't already exists
shell: /usr/share/logstash/bin/system-install /etc/logstash/startup.options systemd
become: true
when: logstash_service_status.stat.exists == false

# We are in the kibana playbook but starting logstash here now
# This is needed because perms should be set on certificates before
# logstash references them for filebeat SSL connections.
Expand Down