source.pp 896 B

1234567891011121314151617181920212223242526272829
  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 => '4BD6EC30',
  9. key_server => 'pgp.mit.edu',
  10. }
  11. # test two sources with the same key
  12. apt::source { 'debian_testing':
  13. location => 'http://debian.mirror.iweb.ca/debian/',
  14. release => 'testing',
  15. repos => 'main contrib non-free',
  16. key => '46925553',
  17. key_server => 'subkeys.pgp.net',
  18. pin => '-10',
  19. }
  20. apt::source { 'debian_unstable':
  21. location => 'http://debian.mirror.iweb.ca/debian/',
  22. release => 'unstable',
  23. repos => 'main contrib non-free',
  24. key => '46925553',
  25. key_server => 'subkeys.pgp.net',
  26. pin => '-10',
  27. }