elastic: option for stack main version

This commit is contained in:
Jérémy Lecour 2017-11-26 12:32:12 +01:00 committed by Jérémy Lecour
parent 2ac7b60a39
commit cf47d40b79
8 changed files with 32 additions and 25 deletions

View file

@ -1,4 +1,6 @@
---
elastic_stack_version: "5.x"
elasticsearch_cluster_name: Null
elasticsearch_node_name: "${HOSTNAME}"
elasticsearch_network_host: "[_site_, _local_]"

View file

@ -19,7 +19,7 @@
- name: Elastic sources list is available
apt_repository:
repo: "deb https://artifacts.elastic.co/packages/5.x/apt stable main"
repo: "deb https://artifacts.elastic.co/packages/{{ elastic_stack_version | mandatory }}/apt stable main"
filename: elastic
state: present
update_cache: yes

View file

@ -1,3 +1,5 @@
---
elastic_stack_version: "5.x"
filebeat_kibana_dashboards: False
filebeat_logstash_plugin: False

View file

@ -19,7 +19,7 @@
- name: Elastic sources list is available
apt_repository:
repo: "deb https://artifacts.elastic.co/packages/5.x/apt stable main"
repo: "deb https://artifacts.elastic.co/packages/{{ elastic_stack_version | mandatory }}/apt stable main"
filename: elastic
state: present
update_cache: yes

View file

@ -1,4 +1,5 @@
---
elastic_stack_version: "5.x"
kibana_server_host: "127.0.0.1"
kibana_server_basepath: ""

View file

@ -19,7 +19,7 @@
- name: Elastic sources list is available
apt_repository:
repo: "deb https://artifacts.elastic.co/packages/5.x/apt stable main"
repo: "deb https://artifacts.elastic.co/packages/{{ elastic_stack_version | mandatory }}/apt stable main"
filename: elastic
state: present
update_cache: yes
@ -64,27 +64,27 @@
owner: root
group: root
- name: Get mount options for /usr partition
shell: "mount | grep 'on /usr type'"
args:
warn: no
register: mount
changed_when: False
failed_when: False
when: not ansible_check_mode
- block:
- include_role:
name: remount-usr
- name: Move kibana optimize directory
shell: "mv /usr/share/kibana/{{ item }} /var/lib/kibana/{{ item }} && ln -s /var/lib/kibana/{{ item }} /usr/share/kibana/{{ item }}"
args:
creates: "/var/lib/kibana/{{ item }}"
notify: restart kibana
with_items:
- optimize
- data
# - name: Get mount options for /usr partition
# shell: "mount | grep 'on /usr type'"
# args:
# warn: no
# register: mount
# changed_when: False
# failed_when: False
# when: not ansible_check_mode
#
# - block:
# - include_role:
# name: remount-usr
#
# - name: Move kibana optimize directory
# shell: "mv /usr/share/kibana/{{ item }} /var/lib/kibana/{{ item }} && ln -s /var/lib/kibana/{{ item }} /usr/share/kibana/{{ item }}"
# args:
# creates: "/var/lib/kibana/{{ item }}"
# notify: restart kibana
# with_items:
# - optimize
# - data
- include: proxy_nginx.yml
when: kibana_proxy_nginx

View file

@ -1,4 +1,6 @@
---
elastic_stack_version: "5.x"
logstash_jvm_xms: 256m
logstash_jvm_xmx: 1g
logstash_log_rotate_days: 365

View file

@ -19,7 +19,7 @@
- name: Elastic sources list is available
apt_repository:
repo: "deb https://artifacts.elastic.co/packages/5.x/apt stable main"
repo: "deb https://artifacts.elastic.co/packages/{{ elastic_stack_version | mandatory }}/apt stable main"
filename: elastic
state: present
update_cache: yes