Puppet Class: openondemand::repo::apt

Defined in:
manifests/repo/apt.pp

Summary

Manage Open OnDemand APT repos

Overview



3
4
5
6
7
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# File 'manifests/repo/apt.pp', line 3

class openondemand::repo::apt {
  assert_private()

  apt::source { 'ondemand-web':
    ensure   => 'present',
    location => $openondemand::repo_baseurl,
    repos    => 'main',
    release  => $facts['os']['distro']['codename'],
    key      => {
      'id'     => 'FE143EA1CB378B569BBF7C544B72FE2B92D31755',
      'source' => $openondemand::repo_gpgkey,
    },
  }

  apt::source { 'ondemand-web-nightly':
    ensure   => $openondemand::nightly_ensure,
    location => $openondemand::repo_nightly_baseurl,
    repos    => 'main',
    release  => $facts['os']['distro']['codename'],
    key      => {
      'id'     => 'FE143EA1CB378B569BBF7C544B72FE2B92D31755',
      'source' => $openondemand::repo_gpgkey,
    },
  }

  # Debian 12 has NodeJS 18 in OS repos
  if ! (String($openondemand::osmajor) in ['12', '24.04']) and $openondemand::nodejs == '18' {
    apt::source { 'nodesource':
      ensure   => 'present',
      location => 'https://deb.nodesource.com/node_18.x',
      repos    => 'main',
      release  => 'nodistro',
      key      => {
        'id'     => '6F71F525282841EEDAF851B42F59B5F99B1BE0B4',
        'source' => 'https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key',
      },
    }
  }

  if $openondemand::nodejs == '14' {
    apt::source { 'nodesource':
      ensure   => 'present',
      location => 'https://deb.nodesource.com/node_14.x',
      repos    => 'main',
      release  => $facts['os']['distro']['codename'],
      key      => {
        'id'     => '9FD3B784BC1C6FC31A8A0A1C1655A0AB68576280',
        'source' => 'https://deb.nodesource.com/gpgkey/nodesource.gpg.key',
      },
    }
  }
}