Puppet Class: lsys::repo::bintray

Defined in:
manifests/repo/bintray.pp

Summary

Set of Yum repositories on Bintray with custom software

Overview

Set of Yum repositories on Bintray with custom software

Examples:

include lsys::repo::bintray

Parameters:

  • php74_enable (Boolean) (defaults to: false)
  • php81_enable (Boolean) (defaults to: false)


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

class lsys::repo::bintray (
  Boolean $php74_enable = false,
  Boolean $php81_enable  = false,
) {
  include lsys::repo

  if $facts['os']['name'] in ['RedHat', 'CentOS'] and $facts['os']['release']['major'] in ['7'] {
    yumrepo { 'bintray-custom':
      baseurl       => 'https://rpmb.jfrog.io/artifactory/custom/centos/$releasever/',
      descr         => 'PHP dependencies',
      enabled       => '0',
      gpgcheck      => '0',
      repo_gpgcheck => '0',
      sslverify     => '0',
      notify        => Class['lsys::repo'],
    }
    file { '/etc/yum.repos.d/bintray-custom.repo': }

    if $php74_enable {
      yumrepo { 'bintray-php74custom':
        baseurl       => 'https://rpmb.jfrog.io/artifactory/php74custom/centos/$releasever/',
        descr         => 'PHP 7.4 packages and extensions',
        enabled       => '0',
        gpgcheck      => '0',
        repo_gpgcheck => '0',
        sslverify     => '0',
        notify        => Class['lsys::repo'],
      }
      file { '/etc/yum.repos.d/bintray-php74custom.repo': }
    }

    if $php81_enable {
      yumrepo { 'bintray-php81custom':
        baseurl       => 'https://rpmb.jfrog.io/artifactory/php81custom/centos/$releasever/',
        descr         => 'PHP 8.1 packages and extensions',
        enabled       => '0',
        gpgcheck      => '0',
        repo_gpgcheck => '0',
        sslverify     => '0',
        notify        => Class['lsys::repo'],
      }
      file { '/etc/yum.repos.d/bintray-php81custom.repo': }
    }
  }
}