Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F8395952
apt_config.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
apt_config.pp
View Options
# Base class for Software Heritage-specific apt configuration
class
profile
::
swh
::
apt_config
{
$debian_mirror
=
lookup
(
'swh::apt_config::debian_mirror'
)
$debian_security_mirror
=
lookup
(
'swh::apt_config::debian_security_mirror'
)
$debian_enable_non_free
=
lookup
(
'swh::apt_config::enable_non_free'
)
class
{
'::apt'
:
purge
=>
{
'sources.list'
=>
true
,
'sources.list.d'
=>
false
,
'preferences'
=>
true
,
'preferences.d'
=>
true
,
},
}
package
{
'apt-transport-https'
:
ensure
=>
'present'
,
}
if
lookup
(
'swh::apt_config::unattended_upgrades'
)
{
include
profile
::
swh
::
apt_config
::
unattended_upgrades
}
$repos
=
$debian_enable_non_free
?
{
true
=>
'main contrib non-free'
,
default
=>
'main'
,
}
include
profile
::
swh
::
apt_config
::
backports
::
apt
::
source
{
'debian'
:
location
=>
$debian_mirror,
release
=>
$::lsbdistcodename,
repos
=>
$repos,
}
if
$::lsbdistcodename
!=
'sid'
{
::
apt
::
source
{
'debian-updates'
:
location
=>
$debian_mirror,
release
=>
"${::lsbdistcodename}-updates"
,
repos
=>
$repos,
}
::
apt
::
source
{
'debian-security'
:
location
=>
$debian_security_mirror,
release
=>
"${::lsbdistcodename}/updates"
,
repos
=>
$repos,
}
}
else
{
::
apt
::
source
{[
'debian-updates'
,
'debian-security'
]:
ensure
=>
absent
,
}
}
$swh_repository
=
lookup
(
'swh::apt_config::swh_repository'
)
$swh_release
=
$::lsbdistcodename
?
{
'bullseye'
=>
'sid'
,
default
=>
"${::lsbdistcodename}-swh"
,
}
::
apt
::
source
{
'softwareheritage'
:
comment
=>
'Software Heritage specific package repository'
,
location
=>
$swh_repository,
release
=>
$swh_release,
repos
=>
'main'
,
allow_unsigned
=>
true
,
}
Package
[
'apt-transport-https'
]
->
Class
[
'apt'
]
Package
[
'apt-transport-https'
]
->
Class
[
'apt::update'
]
->
Package
<|
title
!=
'apt-transport-https'
|>
}
File Metadata
Details
Attached
Mime Type
text/x-c++
Expires
Jun 4 2025, 7:47 PM (12 w, 2 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3294801
Attached To
rSPSITE puppet-swh-site
Event Timeline
Log In to Comment