Puppet Class: rspamd::repo::apt_stable

Defined in:
vendor_modules/rspamd/manifests/repo/apt_stable.pp

Summary

includes the rspamd.com/apt-stable apt repo

Overview

Class: rspamd::repo::apt_stable

Note:

PRIVATE CLASS: do not use directly



8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# File 'vendor_modules/rspamd/manifests/repo/apt_stable.pp', line 8

class rspamd::repo::apt_stable {
  assert_private()
  include rspamd
  include ::apt

  # Here we have tried to replicate the instructions on the rspamd site:
  #
  # https://rspamd.com/downloads.html
  #
  $default_baseurl = 'http://rspamd.com/apt-stable/'

  $_baseurl = pick($rspamd::repo_baseurl, $default_baseurl)

  apt::pin { 'rspamd_stable':
    originator => 'rspamd.com',
    priority   => 500,
  }
  -> apt::source { 'rspamd_stable':
    location => $_baseurl,
    release  => $::lsbdistcodename,
    repos    => 'main',
    key      => {
      id     => '3FA347D5E599BE4595CA2576FFA232EDBF21E25E',
      source => 'https://rspamd.com/apt-stable/gpg.key',
    }
  }

  Apt::Source['rspamd_stable']->Package<|tag == 'rspamd'|>
  Class['Apt::Update'] -> Package<|tag == 'rspamd'|>
}