main.yml 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. ---
  2. openshift_logging_use_ops: "{{ openshift_hosted_logging_enable_ops_cluster | default('false') | bool }}"
  3. openshift_logging_master_url: "https://kubernetes.default.svc.{{ openshift.common.dns_domain }}"
  4. openshift_logging_master_public_url: "{{ openshift_hosted_logging_master_public_url | default('https://' + openshift.common.public_hostname + ':' ~ (openshift_master_api_port | default('8443', true))) }}"
  5. openshift_logging_namespace: logging
  6. openshift_logging_install_logging: True
  7. openshift_logging_image_pull_secret: "{{ openshift_hosted_logging_image_pull_secret | default('') }}"
  8. openshift_logging_curator_default_days: 30
  9. openshift_logging_curator_run_hour: 0
  10. openshift_logging_curator_run_minute: 0
  11. openshift_logging_curator_run_timezone: UTC
  12. openshift_logging_curator_script_log_level: INFO
  13. openshift_logging_curator_log_level: ERROR
  14. openshift_logging_curator_cpu_limit: 100m
  15. openshift_logging_curator_memory_limit: null
  16. openshift_logging_curator_nodeselector: "{{ openshift_hosted_logging_curator_nodeselector | default('') | map_from_pairs }}"
  17. openshift_logging_curator_ops_cpu_limit: 100m
  18. openshift_logging_curator_ops_memory_limit: null
  19. openshift_logging_curator_ops_nodeselector: "{{ openshift_hosted_logging_curator_ops_nodeselector | default('') | map_from_pairs }}"
  20. openshift_logging_kibana_hostname: "{{ openshift_hosted_logging_hostname | default('kibana.' ~ (openshift_master_default_subdomain | default('router.default.svc.cluster.local', true))) }}"
  21. openshift_logging_kibana_cpu_limit: null
  22. openshift_logging_kibana_memory_limit: null
  23. openshift_logging_kibana_proxy_debug: false
  24. openshift_logging_kibana_proxy_cpu_limit: null
  25. openshift_logging_kibana_proxy_memory_limit: null
  26. openshift_logging_kibana_replica_count: 1
  27. openshift_logging_kibana_edge_term_policy: Redirect
  28. openshift_logging_kibana_nodeselector: "{{ openshift_hosted_logging_kibana_nodeselector | default('') | map_from_pairs }}"
  29. openshift_logging_kibana_ops_nodeselector: "{{ openshift_hosted_logging_kibana_ops_nodeselector | default('') | map_from_pairs }}"
  30. #The absolute path on the control node to the cert file to use
  31. #for the public facing kibana certs
  32. openshift_logging_kibana_cert: ""
  33. #The absolute path on the control node to the key file to use
  34. #for the public facing kibana certs
  35. openshift_logging_kibana_key: ""
  36. #The absolute path on the control node to the CA file to use
  37. #for the public facing kibana certs
  38. openshift_logging_kibana_ca: ""
  39. openshift_logging_kibana_ops_hostname: "{{ openshift_hosted_logging_ops_hostname | default('kibana-ops.' ~ (openshift_master_default_subdomain | default('router.default.svc.cluster.local', true))) }}"
  40. openshift_logging_kibana_ops_cpu_limit: null
  41. openshift_logging_kibana_ops_memory_limit: null
  42. openshift_logging_kibana_ops_proxy_debug: false
  43. openshift_logging_kibana_ops_proxy_cpu_limit: null
  44. openshift_logging_kibana_ops_proxy_memory_limit: null
  45. openshift_logging_kibana_ops_replica_count: 1
  46. #The absolute path on the control node to the cert file to use
  47. #for the public facing ops kibana certs
  48. openshift_logging_kibana_ops_cert: ""
  49. #The absolute path on the control node to the key file to use
  50. #for the public facing ops kibana certs
  51. openshift_logging_kibana_ops_key: ""
  52. #The absolute path on the control node to the CA file to use
  53. #for the public facing ops kibana certs
  54. openshift_logging_kibana_ops_ca: ""
  55. openshift_logging_fluentd_nodeselector: "{{ openshift_hosted_logging_fluentd_nodeselector_label | default('logging-infra-fluentd=true') | map_from_pairs }}"
  56. openshift_logging_fluentd_cpu_limit: 100m
  57. openshift_logging_fluentd_memory_limit: 512Mi
  58. openshift_logging_fluentd_es_copy: false
  59. openshift_logging_fluentd_use_journal: "{{ openshift_hosted_logging_use_journal | default('') }}"
  60. openshift_logging_fluentd_journal_source: "{{ openshift_hosted_logging_journal_source | default('') }}"
  61. openshift_logging_fluentd_journal_read_from_head: "{{ openshift_hosted_logging_journal_read_from_head | default('') }}"
  62. openshift_logging_fluentd_hosts: ['--all']
  63. openshift_logging_es_host: logging-es
  64. openshift_logging_es_port: 9200
  65. openshift_logging_es_ca: /etc/fluent/keys/ca
  66. openshift_logging_es_client_cert: /etc/fluent/keys/cert
  67. openshift_logging_es_client_key: /etc/fluent/keys/key
  68. openshift_logging_es_cluster_size: "{{ openshift_hosted_logging_elasticsearch_cluster_size | default(1) }}"
  69. openshift_logging_es_cpu_limit: null
  70. # the logging appenders for the root loggers to write ES logs. Valid values: 'file', 'console'
  71. openshift_logging_es_log_appenders: ['file']
  72. openshift_logging_es_memory_limit: "{{ openshift_hosted_logging_elasticsearch_instance_ram | default('8Gi') }}"
  73. openshift_logging_es_pv_selector: null
  74. openshift_logging_es_pvc_dynamic: "{{ openshift_hosted_logging_elasticsearch_pvc_dynamic | default(False) }}"
  75. openshift_logging_es_pvc_size: "{{ openshift_hosted_logging_elasticsearch_pvc_size | default('') }}"
  76. openshift_logging_es_pvc_prefix: "{{ openshift_hosted_logging_elasticsearch_pvc_prefix | default('logging-es') }}"
  77. openshift_logging_es_recover_after_time: 5m
  78. openshift_logging_es_storage_group: "{{ openshift_hosted_logging_elasticsearch_storage_group | default('65534') }}"
  79. openshift_logging_es_nodeselector: "{{ openshift_hosted_logging_elasticsearch_nodeselector | default('') | map_from_pairs }}"
  80. # openshift_logging_es_config is a hash to be merged into the defaults for the elasticsearch.yaml
  81. openshift_logging_es_config: {}
  82. openshift_logging_es_number_of_shards: 1
  83. openshift_logging_es_number_of_replicas: 0
  84. # allow cluster-admin or cluster-reader to view operations index
  85. openshift_logging_es_ops_allow_cluster_reader: False
  86. openshift_logging_es_ops_host: logging-es-ops
  87. openshift_logging_es_ops_port: 9200
  88. openshift_logging_es_ops_ca: /etc/fluent/keys/ca
  89. openshift_logging_es_ops_client_cert: /etc/fluent/keys/cert
  90. openshift_logging_es_ops_client_key: /etc/fluent/keys/key
  91. openshift_logging_es_ops_cluster_size: "{{ openshift_hosted_logging_elasticsearch_ops_cluster_size | default(1) }}"
  92. openshift_logging_es_ops_cpu_limit: null
  93. openshift_logging_es_ops_memory_limit: "{{ openshift_hosted_logging_elasticsearch_ops_instance_ram | default('8Gi') }}"
  94. openshift_logging_es_ops_pv_selector: None
  95. openshift_logging_es_ops_pvc_dynamic: "{{ openshift_hosted_logging_elasticsearch_ops_pvc_dynamic | default(False) }}"
  96. openshift_logging_es_ops_pvc_size: "{{ openshift_hosted_logging_elasticsearch_ops_pvc_size | default('') }}"
  97. openshift_logging_es_ops_pvc_prefix: "{{ openshift_hosted_logging_elasticsearch_ops_pvc_prefix | default('logging-es-ops') }}"
  98. openshift_logging_es_ops_recover_after_time: 5m
  99. openshift_logging_es_ops_storage_group: "{{ openshift_hosted_logging_elasticsearch_storage_group | default('65534') }}"
  100. openshift_logging_es_ops_nodeselector: "{{ openshift_hosted_logging_elasticsearch_ops_nodeselector | default('') | map_from_pairs }}"
  101. openshift_logging_es_ops_number_of_shards: 1
  102. openshift_logging_es_ops_number_of_replicas: 0
  103. # storage related defaults
  104. openshift_logging_storage_access_modes: "{{ openshift_hosted_logging_storage_access_modes | default(['ReadWriteOnce']) }}"
  105. # mux - secure_forward listener service
  106. openshift_logging_mux_allow_external: False
  107. openshift_logging_use_mux: "{{ openshift_logging_mux_allow_external | default(False) }}"
  108. # this tells the fluentd node agent to use mux instead of sending directly to Elasticsearch
  109. openshift_logging_use_mux_client: False
  110. openshift_logging_mux_hostname: "{{ 'mux.' ~ (openshift_master_default_subdomain | default('router.default.svc.cluster.local', true)) }}"
  111. openshift_logging_mux_port: 24284
  112. openshift_logging_mux_cpu_limit: 100m
  113. openshift_logging_mux_memory_limit: 512Mi
  114. # following can be uncommented to provide values for configmaps -- take care when providing file contents as it may cause your cluster to not operate correctly
  115. #es_logging_contents:
  116. #es_config_contents:
  117. #curator_config_contents:
  118. #fluentd_config_contents:
  119. #fluentd_throttle_contents:
  120. #fluentd_secureforward_contents:
  121. #fluentd_mux_config_contents:
  122. #fluentd_mux_secureforward_contents: