source.pp 1.0 KB

1234567891011121314151617181920212223242526272829303132333435
  1. # Declare the apt class to manage /etc/apt/sources.list and /etc/sources.list.d
  2. class { 'apt': }
  3. # Install the puppetlabs apt source
  4. # Release is automatically obtained from lsbdistcodename fact if available.
  5. apt::source { 'puppetlabs':
  6. location => 'http://apt.puppetlabs.com',
  7. repos => 'main',
  8. key => {
  9. id => '47B320EB4C7C375AA9DAE1A01054B7A24BD6EC30',
  10. server => 'hkps.pool.sks-keyservers.net',
  11. },
  12. }
  13. # test two sources with the same key
  14. apt::source { 'debian_testing':
  15. location => 'http://debian.mirror.iweb.ca/debian/',
  16. release => 'testing',
  17. repos => 'main contrib non-free',
  18. key => {
  19. id => 'A1BD8E9D78F7FE5C3E65D8AF8B48AD6246925553',
  20. server => 'hkps.pool.sks-keyservers.net',
  21. },
  22. pin => '-10',
  23. }
  24. apt::source { 'debian_unstable':
  25. location => 'http://debian.mirror.iweb.ca/debian/',
  26. release => 'unstable',
  27. repos => 'main contrib non-free',
  28. key => {
  29. id => 'A1BD8E9D78F7FE5C3E65D8AF8B48AD6246925553',
  30. server => 'hkps.pool.sks-keyservers.net',
  31. },
  32. pin => '-10',
  33. }