---
### General logging settings
openshift_logging_fluentd_image_pull_secret: "{{ openshift_hosted_logging_image_pull_secret | default('') }}"
openshift_logging_fluentd_master_url: "https://kubernetes.default.svc.{{ openshift.common.dns_domain }}"
openshift_logging_fluentd_namespace: logging

### Common settings
# map_from_pairs is a custom filter plugin in role lib_utils
openshift_logging_fluentd_nodeselector: "{{ openshift_hosted_logging_fluentd_nodeselector_label | default('logging-infra-fluentd=true') | map_from_pairs }}"
openshift_logging_fluentd_cpu_limit: null
openshift_logging_fluentd_cpu_request: 100m
openshift_logging_fluentd_memory_limit: 512Mi
openshift_logging_fluentd_hosts: ['--all']

# float time in seconds to wait between node labelling
openshift_logging_fluentd_label_delay: '0.5'

# Fluentd deployment type
openshift_logging_fluentd_deployment_type: "hosted"

### Used by "hosted" and "secure-host" deployments

# Destination for the application based logs
openshift_logging_fluentd_app_host: "logging-es"
openshift_logging_fluentd_app_port: 9200
# Destination for the operations based logs
openshift_logging_fluentd_ops_host: "{{ openshift_logging_fluentd_app_host }}"
openshift_logging_fluentd_ops_port: "{{ openshift_logging_fluentd_app_port }}"

# openshift_logging_fluentd_merge_json_log configures fluentd to parse
# JSON log messages into the top level payload envelope
openshift_logging_fluentd_merge_json_log: "true"

### Used by "hosted" and "secure-aggregator" deployments
openshift_logging_fluentd_journal_source: "{{ openshift_hosted_logging_journal_source | default('') }}"
openshift_logging_fluentd_journal_read_from_head: "{{ openshift_hosted_logging_journal_read_from_head | default('') }}"

openshift_logging_fluentd_app_client_cert: /etc/fluent/keys/cert
openshift_logging_fluentd_app_client_key: /etc/fluent/keys/key
openshift_logging_fluentd_app_ca: /etc/fluent/keys/ca
openshift_logging_fluentd_ops_client_cert: /etc/fluent/keys/ops-cert
openshift_logging_fluentd_ops_client_key: /etc/fluent/keys/ops-key
openshift_logging_fluentd_ops_ca: /etc/fluent/keys/ops-ca


# used by "secure-host" and "secure-aggregator" deployments
openshift_logging_fluentd_shared_key: "{{ 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789' | random_word(128) }}"
openshift_logging_fluentd_aggregating_port: 24284
openshift_logging_fluentd_aggregating_host: "${HOSTNAME}"
openshift_logging_fluentd_aggregating_secure: "no"
openshift_logging_fluentd_aggregating_strict: "no"
openshift_logging_fluentd_aggregating_cert_path: none
openshift_logging_fluentd_aggregating_key_path: none
openshift_logging_fluentd_aggregating_passphrase: none

# set openshift_logging_use_mux=maximal by default.
# if the cluster is not configured with mux, this default value is going to be ignored.
openshift_logging_mux_client_mode: "maximal"

### Deprecating in 3.6
# 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
#fluentd_config_contents:
#fluentd_throttle_contents:
#fluentd_secureforward_contents:

openshift_logging_fluentd_file_buffer_limit: 256Mi

# Configure fluentd to tail audit log file and filter out container engine's logs from there
# These logs are then stored in ES operation index
openshift_logging_fluentd_audit_container_engine: False
