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_cluster_name: Null
elasticsearch_node_name: "${HOSTNAME}" elasticsearch_node_name: "${HOSTNAME}"
elasticsearch_network_host: "[_site_, _local_]" elasticsearch_network_host: "[_site_, _local_]"

View file

@ -19,7 +19,7 @@
- name: Elastic sources list is available - name: Elastic sources list is available
apt_repository: 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 filename: elastic
state: present state: present
update_cache: yes update_cache: yes

View file

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

View file

@ -19,7 +19,7 @@
- name: Elastic sources list is available - name: Elastic sources list is available
apt_repository: 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 filename: elastic
state: present state: present
update_cache: yes update_cache: yes

View file

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

View file

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

View file

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

View file

@ -19,7 +19,7 @@
- name: Elastic sources list is available - name: Elastic sources list is available
apt_repository: 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 filename: elastic
state: present state: present
update_cache: yes update_cache: yes