blob: 6770feb2f5c601a7d9fe89ce915b696c359e8874 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
# add upstream repositories of torproject
class tor::repo (
$ensure = present,
$source_name = 'torproject.org',
$include_src = false,
) {
case $::osfamily {
'Debian': {
$key = '886DDD89'
$location = 'https://deb.torproject.org/torproject.org/'
class { 'tor::repo::debian': }
}
'RedHat': {
# no need as EPEL is the relevant reference
}
default: {
fail("Unsupported managed repository for osfamily: ${::osfamily}, operatingsystem: ${::operatingsystem}, module ${module_name} currently only supports managing repos for osfamily Debian and Ubuntu")
}
}
}
|