Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9340115
backports.pp
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
backports.pp
View Options
# Configure apt pinning for packages we always want from backports
class
profile
::
swh
::
apt_config
::
backports
{
$backported_packages
=
lookup
({
name
=>
'swh::apt_config::backported_packages'
,
value_type
=>
Hash
,
merge
=>
{
strategy
=>
'deep'
,
knockout_prefix
=>
'-'
,
},
})
$pinned_packages
=
$backported_packages
[
$::lsbdistcodename
]
if
$pinned_packages
{
::
apt
::
pin
{
'swh-backported-packages'
:
explanation
=>
'Pin packages backports'
,
codename
=>
"${::lsbdistcodename}-backports"
,
packages
=>
$pinned_packages,
priority
=>
990
,
}
}
else
{
::
apt
::
pin
{
'swh-backported-packages'
:
ensure
=>
absent
,
}
}
if
$::lsbdistcodename
!=
'sid'
{
class
{
'::apt::backports'
:
pin
=>
100
,
location
=>
$profile::swh::apt_config::debian_mirror,
repos
=>
$profile::swh::apt_config::repos,
}
}
else
{
::
apt
::
source
{[
'backports'
,
'debian-updates'
,
'debian-security'
]:
ensure
=>
absent
,
}
}
}
File Metadata
Details
Attached
Mime Type
text/x-c++
Expires
Jul 4 2025, 10:16 AM (4 w, 6 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3238585
Attached To
rSPSITE puppet-swh-site
Event Timeline
Log In to Comment