Added modules
This commit is contained in:
parent
c53c931217
commit
59ec520742
646 changed files with 35182 additions and 0 deletions
22
modules/postgresql/manifests/repo.pp
Normal file
22
modules/postgresql/manifests/repo.pp
Normal file
|
@ -0,0 +1,22 @@
|
|||
# PRIVATE CLASS: do not use directly
|
||||
class postgresql::repo (
|
||||
$ensure = $postgresql::params::ensure,
|
||||
$version = undef
|
||||
) inherits postgresql::params {
|
||||
case $::osfamily {
|
||||
'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: ${::osfamily}, operatingsystem: ${::operatingsystem}, module ${module_name} currently only supports managing repos for osfamily RedHat and Debian")
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue