mirror of
https://github.com/cliffe/SecGen.git
synced 2026-02-21 11:18:06 +00:00
Elastic stack updates
This commit is contained in:
@@ -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'
|
||||
|
||||
@@ -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 ? {
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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',
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user