config.yml 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. ---
  2. - name: Logging Install Checkpoint Start
  3. hosts: all
  4. gather_facts: false
  5. tasks:
  6. - name: Set Logging install 'In Progress'
  7. run_once: true
  8. set_stats:
  9. data:
  10. installer_phase_logging:
  11. title: "Logging Install"
  12. playbook: "playbooks/openshift-logging/config.yml"
  13. status: "In Progress"
  14. start: "{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}"
  15. - name: Update vm.max_map_count for ES 5.x
  16. hosts: all
  17. gather_facts: false
  18. tasks:
  19. - name: Checking vm max_map_count value
  20. command:
  21. cat /proc/sys/vm/max_map_count
  22. register: _vm_max_map_count
  23. - stat:
  24. path: /etc/sysctl.d/99-elasticsearch.conf
  25. register: _99_es_conf
  26. - name: Check for current value of vm.max_map_count in 99-elasticsearch.conf
  27. command: >
  28. sed /etc/sysctl.d/99-elasticsearch.conf -e 's/vm.max_map_count=\(.*\)/\1/'
  29. register: _curr_vm_max_map_count
  30. when: _99_es_conf.stat.exists
  31. - name: Updating vm.max_map_count value
  32. sysctl:
  33. name: vm.max_map_count
  34. value: 262144
  35. sysctl_file: "/etc/sysctl.d/99-elasticsearch.conf"
  36. reload: yes
  37. when:
  38. - _vm_max_map_count.stdout | default(0) | int < 262144 | int or _curr_vm_max_map_count.stdout | default(0) | int < 262144
  39. - name: OpenShift Aggregated Logging
  40. hosts: oo_first_master
  41. roles:
  42. - openshift_logging
  43. - name: Logging Install Checkpoint End
  44. hosts: all
  45. gather_facts: false
  46. tasks:
  47. - name: Set Logging install 'Complete'
  48. run_once: true
  49. set_stats:
  50. data:
  51. installer_phase_logging:
  52. status: "Complete"
  53. end: "{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}"