<commit_before>node.default[:graylog2] ||= {}
node.default[:mongodb]  ||= {}

# General
default.graylog2[:server][:version] = '0.20.6-1'
default.graylog2[:web][:version]    = '0.20.6-1'
default.graylog2[:radio][:versioo]  = '0.20.6-1'
default.graylog2[:user]             = 'graylog2'
default.graylog2[:group]            = 'graylog2'
default.graylog2[:root_username]    = 'admin'

# SHAs
default.graylog2[:password_secret]    = nil
default.graylog2[:root_password_sha2] = nil

# Paths
default.graylog2[:node_id_file] = '/etc/graylog2/server/node-id'
default.graylog2[:plugin_dir]   = '/usr/share/graylog2-server/plugin'

# Network
default.graylog2[:http_proxy_uri] = nil

# Rest
default.graylog2[:rest][:listen_uri]    = 'http://127.0.0.1:12900/'
default.graylog2[:rest][:transport_uri] = 'http://127.0.0.1:12900/'
default.graylog2[:rest][:enable_cors]   = nil
default.graylog2[:rest][:enable_gzip]   = nil

# Elasticsearch
default.graylog2[:elasticsearch][:config_file]           = '/etc/graylog2-elasticsearch.yml'
default.graylog2[:elasticsearch][:max_docs_per_index]    = 20000000
default.graylog2[:elasticsearch][:max_number_of_indices] = 20
default.graylog2[:elasticsearch][:shards]                = 4
default.graylog2[:elasticsearch][:replicas]              = 0
default.graylog2[:elasticsearch][:retention_strategy]    = 'delete'
default.graylog2[:elasticsearch][:index_prefix]          = 'graylog2'
default.graylog2[:elasticsearch][:cluster_name]          = 'graylog2'
default.graylog2[:elasticsearch][:node_name]             = 'graylog2-server'
default.graylog2[:elasticsearch][:http_enabled]          = false
default.graylog2[:elasticsearch][:cluster_discovery_timeout]            = 5000
default.graylog2[:elasticsearch][:discovery_zen_ping_multicast_enabled] = false
default.graylog2[:elasticsearch][:discovery_zen_ping_unicast_hosts]     = '127.0.0.1:9300'
default.graylog2[:elasticsearch][:network_host]          = nil
default.graylog2[:elasticsearch][:network_bind_host]     = nil
default.graylog2[:elasticsearch][:network_publish_host]  = nil
default.graylog2[:elasticsearch][:analyzer]              = 'standard'
default.graylog2[:elasticsearch][:output_batch_size]     = 25
default.graylog2[:elasticsearch][:output_flush_interval] = 1
default.graylog2[:elasticsearch][:transport_tcp_port]    = 9350

# MongoDb
default.graylog2[:mongodb][:useauth]         = false
default.graylog2[:mongodb][:user]            = nil<commit_msg>use public ip address as default<commit_after>node.default[:graylog2] ||= {}
node.default[:mongodb]  ||= {}

# General
default.graylog2[:server][:version] = '0.20.6-1'
default.graylog2[:web][:version]    = '0.20.6-1'
default.graylog2[:radio][:versioo]  = '0.20.6-1'
default.graylog2[:user]             = 'graylog2'
default.graylog2[:group]            = 'graylog2'
default.graylog2[:root_username]    = 'admin'

# SHAs
default.graylog2[:password_secret]    = nil
default.graylog2[:root_password_sha2] = nil

# Paths
default.graylog2[:node_id_file] = '/etc/graylog2/server/node-id'
default.graylog2[:plugin_dir]   = '/usr/share/graylog2-server/plugin'

# Network
default.graylog2[:http_proxy_uri] = nil

# Rest
default.graylog2[:rest][:listen_uri]    = "http://#{node['ipaddress']}:12900/"
default.graylog2[:rest][:transport_uri] = "http://#{node['ipaddress']}:12900/"
default.graylog2[:rest][:enable_cors]   = nil
default.graylog2[:rest][:enable_gzip]   = nil

# Elasticsearch
default.graylog2[:elasticsearch][:config_file]           = '/etc/graylog2-elasticsearch.yml'
default.graylog2[:elasticsearch][:max_docs_per_index]    = 20000000
default.graylog2[:elasticsearch][:max_number_of_indices] = 20
default.graylog2[:elasticsearch][:shards]                = 4
default.graylog2[:elasticsearch][:replicas]              = 0
default.graylog2[:elasticsearch][:retention_strategy]    = 'delete'
default.graylog2[:elasticsearch][:index_prefix]          = 'graylog2'
default.graylog2[:elasticsearch][:cluster_name]          = 'graylog2'
default.graylog2[:elasticsearch][:node_name]             = 'graylog2-server'
default.graylog2[:elasticsearch][:http_enabled]          = false
default.graylog2[:elasticsearch][:cluster_discovery_timeout]            = 5000
default.graylog2[:elasticsearch][:discovery_zen_ping_multicast_enabled] = false
default.graylog2[:elasticsearch][:discovery_zen_ping_unicast_hosts]     = '127.0.0.1:9300'
default.graylog2[:elasticsearch][:network_host]          = nil
default.graylog2[:elasticsearch][:network_bind_host]     = nil
default.graylog2[:elasticsearch][:network_publish_host]  = nil
default.graylog2[:elasticsearch][:analyzer]              = 'standard'
default.graylog2[:elasticsearch][:output_batch_size]     = 25
default.graylog2[:elasticsearch][:output_flush_interval] = 1
default.graylog2[:elasticsearch][:transport_tcp_port]    = 9350

# MongoDb
default.graylog2[:mongodb][:useauth]         = false
default.graylog2[:mongodb][:user]            = nil
{'fraction_non_alphanumeric': 0.1552529973582605, 'fraction_numerical': 0.045112781954887216, 'mean_word_length': 5.017114914425428, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 4, 'substrings_counts': 2, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1962137', 'n_tokens_mistral': 1736, 'n_tokens_neox': 1691, 'n_words': 170}