elastic: option for stack main version
This commit is contained in:
parent
2ac7b60a39
commit
cf47d40b79
|
@ -1,4 +1,6 @@
|
|||
---
|
||||
elastic_stack_version: "5.x"
|
||||
|
||||
elasticsearch_cluster_name: Null
|
||||
elasticsearch_node_name: "${HOSTNAME}"
|
||||
elasticsearch_network_host: "[_site_, _local_]"
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
---
|
||||
elastic_stack_version: "5.x"
|
||||
|
||||
filebeat_kibana_dashboards: False
|
||||
filebeat_logstash_plugin: False
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
---
|
||||
elastic_stack_version: "5.x"
|
||||
|
||||
kibana_server_host: "127.0.0.1"
|
||||
kibana_server_basepath: ""
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
---
|
||||
elastic_stack_version: "5.x"
|
||||
|
||||
logstash_jvm_xms: 256m
|
||||
logstash_jvm_xmx: 1g
|
||||
logstash_log_rotate_days: 365
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue