Changeset View
Changeset View
Standalone View
Standalone View
site-modules/profile/manifests/elasticsearch.pp
Show All 16 Lines | class profile::elasticsearch { | ||||
} | } | ||||
package { 'openjdk-8-jre-headless': | package { 'openjdk-8-jre-headless': | ||||
ensure => 'present', | ensure => 'present', | ||||
} | } | ||||
# Elasticsearch official package installation instructions: | # Elasticsearch official package installation instructions: | ||||
# https://www.elastic.co/guide/en/elasticsearch/reference/current/deb.html | # https://www.elastic.co/guide/en/elasticsearch/reference/current/deb.html | ||||
$keyid = lookup('elastic::apt_config::keyid') | $keyid = lookup('elastic::apt_config::keyid') | ||||
$key = lookup('elastic::apt_config::key') | $key = lookup('elastic::apt_config::key') | ||||
$version = lookup('elastic::elk_version') | |||||
apt::source { 'elastic-6.x': | apt::source { 'elastic-6.x': | ||||
location => 'https://artifacts.elastic.co/packages/6.x/apt', | location => 'https://artifacts.elastic.co/packages/6.x/apt', | ||||
release => 'stable', | release => 'stable', | ||||
repos => 'main', | repos => 'main', | ||||
key => { | key => { | ||||
id => $keyid, | id => $keyid, | ||||
content => $key, | content => $key, | ||||
}, | }, | ||||
} | } | ||||
package { 'elasticsearch': | package { 'elasticsearch': | ||||
ensure => '6.3.2', | ensure => $version, | ||||
} | } | ||||
apt::pin { 'elasticsearch': | apt::pin { 'elasticsearch': | ||||
packages => 'elasticsearch elasticsearch-oss', | packages => 'elasticsearch elasticsearch-oss', | ||||
version => '6.3.2', | version => $version, | ||||
priority => 1001, | priority => 1001, | ||||
} | } | ||||
# niofs increases I/O performance and node reliability | # niofs increases I/O performance and node reliability | ||||
file_line { 'elasticsearch niofs': | file_line { 'elasticsearch niofs': | ||||
ensure => present, | ensure => present, | ||||
line => 'index.store.type: niofs', | line => 'index.store.type: niofs', | ||||
path => '/etc/elasticsearch/elasticsearch.yml', | path => '/etc/elasticsearch/elasticsearch.yml', | ||||
Show All 13 Lines |