Skip to content

Instantly share code, notes, and snippets.

@rickheil
Created June 26, 2015 18:16
Show Gist options
  • Save rickheil/f621311ab8299aeaf11b to your computer and use it in GitHub Desktop.
Save rickheil/f621311ab8299aeaf11b to your computer and use it in GitHub Desktop.
include apt
class {'elasticsearch':
ensure => present,
config => { 'cluster.name' => 'graylog',
'network.host' => '127.0.0.1',
'script.disable_dynamic' => True
}
}
elasticsearch::instance { 'graylog':
config => { 'node.name' => 'graylog-server'}
}
class {'::mongodb::server':
bind_ip => ['127.0.0.1']
}
class {'graylog2::repo':
version => '1.1.3'
} ->
class {'graylog2::server':
password_secret => 'S138l73t13zCT84003j66657686X5a7523G2y9F5l78Ev256D7CdySA47JT2TuVO',
root_password_sha2 => '1662d91cfde2833faaf845cc68a597aab723ef141b7e04da7edd940b57dc866c',
elasticsearch_cluster_name => 'graylog',
elasticsearch_node_name => 'graylog-server',
elasticsearch_network_host => '127.0.0.1',
mongodb_uri => 'mongodb://localhost/graylog',
} ->
class {'graylog2::web':
application_secret => 'S138l73t13zCT84003j66657686X5a7523G2y9F5l78Ev256D7CdySA47JT2TuVO',
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment