mirror of
https://github.com/falcosecurity/falco.git
synced 2025-10-22 03:49:36 +00:00
! Make sure we add the Sysdig repo and call an update before trying to install Falco ! Remove the require in the service class to fix a dependencies loop * Bump the version to 0.4.0 falco-CLA-1.0-contributing-entity: Coveo Solutions Inc. falco-CLA-1.0-signed-off-by: Jean-Philippe Lachance <jplachance@coveo.com>
42 lines
1.1 KiB
Puppet
42 lines
1.1 KiB
Puppet
# == Class: falco::repo
|
|
class falco::repo inherits falco {
|
|
case $::osfamily {
|
|
'Debian': {
|
|
include apt::update
|
|
|
|
Apt::Source [ 'sysdig' ]
|
|
-> Class [ 'apt::update' ]
|
|
|
|
apt::source { 'sysdig':
|
|
location => 'http://download.draios.com/stable/deb',
|
|
release => 'stable-$(ARCH)/',
|
|
repos => '',
|
|
key => {
|
|
source => 'https://s3.amazonaws.com/download.draios.com/DRAIOS-GPG-KEY.public',
|
|
id => 'D27A72F32D867DF9300A241574490FD6EC51E8C4'
|
|
},
|
|
}
|
|
|
|
ensure_packages(["linux-headers-${::kernelrelease}"])
|
|
}
|
|
'RedHat': {
|
|
include 'epel'
|
|
|
|
Yumrepo [ 'sysdig' ]
|
|
-> Class [ 'epel' ]
|
|
|
|
yumrepo { 'sysdig':
|
|
baseurl => 'http://download.draios.com/stable/rpm/$basearch',
|
|
descr => 'Sysdig repository by Draios',
|
|
enabled => 1,
|
|
gpgcheck => 0,
|
|
}
|
|
|
|
ensure_packages(["kernel-devel-${::kernelrelease}"])
|
|
}
|
|
default: {
|
|
fail("\"${module_name}\" provides no repository information for OSfamily \"${::osfamily}\"")
|
|
}
|
|
}
|
|
}
|