Puppet Class: postgresql::repo

Overview

Parameters:

  • version (Any) (defaults to: undef)
  • proxy (Any) (defaults to: undef)
  • baseurl (Any) (defaults to: undef)
  • commonurl (Any) (defaults to: undef)


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

class postgresql::repo (
  $version = undef,
  $proxy = undef,
  $baseurl = undef,
  $commonurl = undef,
) {
  case $facts['os']['family'] {
    'RedHat', 'Linux': {
      if $version == undef {
        fail("The parameter 'version' for 'postgresql::repo' is undefined. You must always define it when osfamily == Redhat or Linux")
      }
      class { 'postgresql::repo::yum_postgresql_org': }
    }

    'Debian': {
      class { 'postgresql::repo::apt_postgresql_org': }
    }

    default: {
      fail("Unsupported managed repository for osfamily: ${facts['os']['family']}, operatingsystem: ${facts['os']['name']}, module ${module_name} currently only supports managing repos for osfamily RedHat and Debian")
    }
  }
}