blob: 04a7dc4413bb3076d6bfd610d84aae0714b89c75 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
# Add additional sources and configure unattended updates for it
define custom::apt::additional_sources (
$ensure = 'present',
# this is from stretch on:
# $signed_by = '[signed-by=/usr/share/keyrings/leap-archive.gpg]',
$signed_by = '[signed-by=1E453B2CE87BEE2F7DFE99661E34A1828E207901]',
$repodomain = 'deb.leap.se',
$project = 'platform',
$dist = $::lsbdistcodename,
$component = 'master'
){
apt::sources_list { "${name}.list":
ensure => $ensure,
content => "deb ${signed_by} http://${repodomain}/${project} ${dist} ${component}",
}
apt::apt_conf { "52unattended-upgrades-${name}":
content => "Unattended-Upgrade::Origins-Pattern {
\"site=${repodomain},component=${component}\";
}",
require => Package['unattended-upgrades'],
refresh_apt => false,
}
}
|