14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
# File 'manifests/apt.pp', line 14
class serverdensity_agent::apt {
$repo_location = $::lsbdistcodename ? {
'artful' => 'xenial',
'bionic' => 'bionic',
'cosmic' => 'bionic',
'eoan' => 'bionic',
'focal' => 'focal',
'precise' => 'all',
'quantal' => 'all',
'raring' => 'all',
'saucy' => 'all',
'trusty' => 'trusty',
'utopic' => 'trusty',
'vivid' => 'trusty',
'wily' => 'trusty',
'yakkety' => 'xenial',
'xenial' => 'xenial',
'zesty' => 'xenial',
'wheezy' => 'wheezy',
'jessie' => 'jessie',
'stretch' => 'stretch',
'buster' => 'buster',
}
$repo_baseurl = "https://archive.serverdensity.com/${downcase($::lsbdistid)}"
$repo_keyurl = 'https://archive.serverdensity.com/sd-packaging-public.key'
apt::source { 'serverdensity_agent':
location => $repo_baseurl,
release => $repo_location,
repos => 'main',
key => {
'id' => '4381EE1BA673897A16AC92D43B2F6FF074371316',
'source' => $repo_keyurl,
},
include => {
'src' => false,
'deb' => true,
},
}
package {
'sd-agent':
ensure => 'present',
require => [ Apt::Source['serverdensity_agent'], Class['apt::update'] ],
}
}
|