Puppet Class: crowdsec::sources
- Defined in:
- manifests/sources.pp
Summary
configure crowdsec repositoriesOverview
setup apt sources lists and necessary keys.
Source of the keyring to install into apt
If true, a src apt source will be added
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
# File 'manifests/sources.pp', line 12
class crowdsec::sources (
String $keyring_source = 'puppet:///modules/crowdsec/crowdsec-archive-keyring.gpg',
Boolean $include_sources = false,
) {
$distro = $facts['os']['distro']['id'].downcase()
apt::source { 'crowdsec':
location => "https://packagecloud.io/crowdsec/crowdsec/${distro}",
include => {
'src' => $include_sources,
'deb' => true,
},
repos => 'main',
release => $facts['os']['distro']['codename'],
key => {
name => 'crowdsec-archive-keyring.gpg',
source => $keyring_source,
},
}
}
|