Skip to content

Commit

Permalink
- Added a limitation to install verion 1.8.0 of java. See known issue:
Browse files Browse the repository at this point in the history
'with java10 I get these error :Unrecognized VM option 'UseParNewGC' #9316'
elastic/logstash#9316

- Added a workaround to problem in which the logstash systemd unit does not get
installed automatically.  See known issue:
'Missing systemd scripts in 6.2.4 #9403'
elastic/logstash#9403
  • Loading branch information
bhirsch70 committed Oct 31, 2018
1 parent 849a9fa commit eaad0c5
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
2 changes: 1 addition & 1 deletion install/group_vars/all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# Default Ansible user
# change this if you use a non-root user for running Ansible playbooks
ansible_system_user: root
ansible_system_user: ec2-user

# EPEL Repository for extra packages
epel_repo: https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
Expand Down
5 changes: 3 additions & 2 deletions 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 Expand Up @@ -80,7 +81,7 @@
register: elasticsearch_updated

- name: Apply workaround for java listening port
raw: setcap 'cap_net_bind_service=+ep' /usr/lib/jvm/java-1.8.*openjdk-*/jre/bin/java
raw: setcap 'cap_net_bind_service=+ep' /usr/lib/jvm/jre/bin/java
become: true

# https://www.centos.org/forums/viewtopic.php?t=16398
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

0 comments on commit eaad0c5

Please sign in to comment.