2013-08-27 22:43:47 +02:00
# PRIVATE CLASS : do not use directly
class postgresql: : repo (
2013-09-18 23:25:51 +02:00
$e nsure = $ postgresql: : params: : ensure,
2013-08-27 22:43:47 +02:00
$ version = undef
) inherits postgresql: : params {
2013-09-17 23:19:01 +02:00
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" )
2013-08-27 22:43:47 +02:00
}
2013-09-17 23:19:01 +02:00
class { 'postgresql::repo::yum_postgresql_org': }
}
2013-08-27 22:43:47 +02:00
2013-09-17 23:19:01 +02:00
'Debian' : {
class { 'postgresql::repo::apt_postgresql_org': }
}
2013-08-27 22:43:47 +02:00
2013-09-17 23:19:01 +02:00
default : {
fail( "Unsupported managed repository for osfamily: ${::osfamily}, operatingsystem: ${::operatingsystem}, module ${module_name} currently only supports managing repos for osfamily RedHat and Debian" )
2013-08-27 22:43:47 +02:00
}
}
}