Puppet Class: artifactory::repo

Defined in:
manifests/repo.pp

Overview

Parameters:

  • edition (Any) (defaults to: $artifactory::edition)


2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# File 'manifests/repo.pp', line 2

class artifactory::repo (
  $edition = $artifactory::edition,
) {
  $baseurl = $edition ? {
    'pro'   => 'https://releases.jfrog.io/artifactory/artifactory-pro-rpms/',
    default => 'https://releases.jfrog.io/artifactory/artifactory-rpms/',
  }

  yumrepo { 'Artifactory':
    enabled       => true,
    baseurl       => $baseurl,
    descr         => 'Artifactory',
    repo_gpgcheck => true,
    gpgcheck      => false,
    gpgkey        => "${baseurl}/repodata/repomd.xml.key",
  }
}