repo.pp 697 B

12345678910111213141516171819202122
  1. # PRIVATE CLASS: do not use directly
  2. class postgresql::repo (
  3. $version = undef,
  4. $proxy = undef,
  5. ) {
  6. case $::osfamily {
  7. 'RedHat', 'Linux': {
  8. if $version == undef {
  9. fail("The parameter 'version' for 'postgresql::repo' is undefined. You must always define it when osfamily == Redhat or Linux")
  10. }
  11. class { 'postgresql::repo::yum_postgresql_org': }
  12. }
  13. 'Debian': {
  14. class { 'postgresql::repo::apt_postgresql_org': }
  15. }
  16. default: {
  17. fail("Unsupported managed repository for osfamily: ${::osfamily}, operatingsystem: ${::operatingsystem}, module ${module_name} currently only supports managing repos for osfamily RedHat and Debian")
  18. }
  19. }
  20. }