2013-08-27 22:43:47 +02:00
# PRIVATE CLASS : do not use directly
class postgresql: : repo (
2015-07-15 13:20:19 +02:00
$ version = undef,
$ proxy = undef,
2015-08-19 18:23:50 +02:00
) {
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
}
}
}