Skip to content

Instantly share code, notes, and snippets.

@eddiez9
Last active November 28, 2023 07:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eddiez9/94c3b9f042d3a1a3f06488e7ac7099ee to your computer and use it in GitHub Desktop.
Save eddiez9/94c3b9f042d3a1a3f06488e7ac7099ee to your computer and use it in GitHub Desktop.
# Set timezone
class { 'timezone':
timezone => 'UTC',
}
# Set NTP servers
class { 'ntp':
servers => [ '0.au.pool.ntp.org', '1.au.pool.ntp.org', '2.au.pool.ntp.org', '3.au.pool.ntp.org'],
}
# Opensearch kernel config
sysctl {
'vm.max_map_count': value => '262144'
}
# Opensearch setup and configuration
class { 'opensearch':
version => '2.11.0',
settings => {
'cluster.name' => 'graylog',
'network.host' => '127.0.0.1',
'discovery.type' => 'single-node',
'cluster.initial_cluster_manager_nodes' => '',
'action.auto_create_index' => false,
'plugins.security.ssl.http.enabled' => false
},
use_default_security_internal_users => false,
security_internal_users => {
_meta => {
type => 'internalusers',
config_version => 2
},
graylog_os_user => {
hash => '$2y$12$YXDnTz2S.phXzopgnNQsOuL.KSyHoAwMuiQjkcDc7N0INQTM4vYOq', #bcrypt hash for password
reserved => true,
backend_roles => [
'admin',
],
description => 'Graylog admin user',
}
},
heap_size => '4g'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment