Puppet Class: elasticsearch::repository
- Defined in:
- puppet/modules/elasticsearch/manifests/repository.pp
Overview
Class: Elasticsearch::Repository
Configure an apt repository to fetch elasticsearch packages from.
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'puppet/modules/elasticsearch/manifests/repository.pp', line 4
class elasticsearch::repository (
$es_package,
$es_version,
$es_plugins_version,
) {
apt::repository { 'wikimedia-elastic':
uri => 'http://apt.wikimedia.org/wikimedia',
dist => "${::lsbdistcodename}-wikimedia",
components => "component/${es_package} thirdparty/${es_package}",
}
# WMF repo above doesn't serve arm64-compatible PHP packages;
# this alternative does
$es_major_version = regsubst( $es_version, '^(\d+).+$', '\1' )
apt::repository { 'elastic-elastic':
uri => "https://artifacts.elastic.co/packages/oss-${es_major_version}.x/apt",
dist => 'stable',
components => 'main',
keyfile => 'puppet:///modules/elasticsearch/elasticsearch-pubkey.asc',
}
}
|