Elastic stack updates

This commit is contained in:
Z. Cliffe Schreuders
2024-11-26 22:19:39 +00:00
parent 9df78926e8
commit 5f09b506df
4 changed files with 8 additions and 8 deletions

View File

@@ -9,7 +9,7 @@ class elasticsearch::install (
command => 'wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -'
}->
exec { 'es add apt repository':
command => 'echo "deb https://artifacts.elastic.co/packages/7.x/apt stable main" | sudo tee /etc/apt/sources.list.d/elastic-7.x.list'
command => 'echo "deb http://172.33.0.44/artifacts.elastic.co/packages/7.x/apt stable main" | sudo tee /etc/apt/sources.list.d/elastic-7.x.list'
}->
exec { 'es update apt':
command => 'apt-get update'

View File

@@ -4,11 +4,11 @@
# @summary Manages the package repositories on the target nodes to install auditbeat
class auditbeat::repo inherits auditbeat {
$apt_repo_url = $auditbeat::apt_repo_url ? {
undef => "https://artifacts.elastic.co/packages/${auditbeat::major_version}.x/apt",
undef => "http://172.33.0.44/artifacts.elastic.co/packages/${auditbeat::major_version}.x/apt",
default => $auditbeat::apt_repo_url,
}
$yum_repo_url = $auditbeat::yum_repo_url ? {
undef => "https://artifacts.elastic.co/packages/${auditbeat::major_version}.x/yum",
undef => "http://172.33.0.44/artifacts.elastic.co/packages/${auditbeat::major_version}.x/yum",
default => $auditbeat::yum_repo_url,
}
$gpg_key_url = $auditbeat::gpg_key_url ? {

View File

@@ -28,8 +28,8 @@
</requires>
<!-- Note: unless explicitly included in the scenario this won't populate the elasticsearch + logstash IP/port correctly.-->
<requires>
<!-- <requires>
<name>Filebeat</name>
</requires>
</requires> -->
</utility>

View File

@@ -4,8 +4,8 @@
#
# @summary Manages the yum, apt, and zypp repositories for Filebeat
class filebeat::repo {
$debian_repo_url = "https://artifacts.elastic.co/packages/${filebeat::major_version}.x/apt"
$yum_repo_url = "https://artifacts.elastic.co/packages/${filebeat::major_version}.x/yum"
$debian_repo_url = "http://172.33.0.44/artifacts.elastic.co/packages/${filebeat::major_version}.x/apt"
$yum_repo_url = "http://172.33.0.44/artifacts.elastic.co/packages/${filebeat::major_version}.x/yum"
case $::osfamily {
'Debian': {
@@ -63,7 +63,7 @@ class filebeat::repo {
autorefresh => 1,
name => 'beats',
gpgcheck => 1,
gpgkey => 'https://packages.elastic.co/GPG-KEY-elasticsearch',
gpgkey => 'http://packages.elastic.co/GPG-KEY-elasticsearch',
type => 'yum',
}
}