Puppet Class: jenkins::repo

Defined in:
manifests/repo.pp

Summary

Pull in the platform specific repo classes

Overview

Parameters:

  • base_url (Stdlib::Httpurl) (defaults to: 'https://pkg.jenkins.io')
  • gpg_key_filename (String) (defaults to: 'jenkins.io-2023.key')
  • enabled (Boolean) (defaults to: true)


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
# File 'manifests/repo.pp', line 3

class jenkins::repo (
  Stdlib::Httpurl $base_url = 'https://pkg.jenkins.io',
  String $gpg_key_filename = 'jenkins.io-2023.key',
  Boolean $enabled = true,
) {
  assert_private()

  if $jenkins::repo {
    case $facts['os']['family'] {
      'RedHat', 'Linux': {
        contain jenkins::repo::el
      }

      'Debian': {
        contain jenkins::repo::debian
      }

      'Suse' : {
        contain jenkins::repo::suse
      }

      default: {
        fail( "Unsupported OS family: ${facts['os']['family']}" )
      }
    }
  }
}