Puppet Class: crowdsec::sources
- Defined in:
- manifests/sources.pp
Summary
configure crowdsec repositoriesOverview
setup apt sources lists and necessary keys.
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
# File 'manifests/sources.pp', line 7
class crowdsec::sources (
String $keyring_source = 'puppet:///modules/crowdsec/crowdsec-archive-keyring.gpg',
Boolean $include_sources = false,
){
# deb https://packagecloud.io/crowdsec/crowdsec/ubuntu trusty main
# deb-src https://packagecloud.io/crowdsec/crowdsec/ubuntu trusty maina
$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,
},
}
}
|