params.pp 655 B

1234567891011121314151617181920212223
  1. class apt::params {
  2. $root = '/etc/apt'
  3. $provider = '/usr/bin/apt-get'
  4. $sources_list_d = "${root}/sources.list.d"
  5. $apt_conf_d = "${root}/apt.conf.d"
  6. $preferences_d = "${root}/preferences.d"
  7. case $::lsbdistid {
  8. 'debian': {
  9. $backports_location = 'http://backports.debian.org/debian-backports'
  10. }
  11. 'ubuntu': {
  12. case $::lsbdistcodename {
  13. 'hardy','lucid','maverick','natty','oneiric','precise': {
  14. $backports_location = 'http://us.archive.ubuntu.com/ubuntu'
  15. }
  16. default: {
  17. $backports_location = 'http://old-releases.ubuntu.com/ubuntu'
  18. }
  19. }
  20. }
  21. }
  22. }