module-puppetlabs-apt/tests/source.pp

30 lines
896 B
ObjectPascal
Raw Normal View History

# Declare the apt class to manage /etc/apt/sources.list and /etc/sources.list.d
2011-05-30 19:23:18 +02:00
class { 'apt': }
# Install the puppetlabs apt source
# Release is automatically obtained from lsbdistcodename fact if available.
apt::source { 'puppetlabs':
location => 'http://apt.puppetlabs.com',
repos => 'main',
key => '4BD6EC30',
key_server => 'pgp.mit.edu',
2011-05-30 19:23:18 +02:00
}
2012-02-24 00:44:26 +01:00
# test two sources with the same key
apt::source { 'debian_testing':
location => 'http://debian.mirror.iweb.ca/debian/',
release => 'testing',
repos => 'main contrib non-free',
key => '46925553',
key_server => 'subkeys.pgp.net',
pin => '-10',
2012-02-24 00:44:26 +01:00
}
apt::source { 'debian_unstable':
location => 'http://debian.mirror.iweb.ca/debian/',
release => 'unstable',
repos => 'main contrib non-free',
key => '46925553',
key_server => 'subkeys.pgp.net',
pin => '-10',
2012-02-24 00:44:26 +01:00
}