summaryrefslogtreecommitdiff
path: root/code/environments/production/modules/apt/examples/source.pp
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2018-09-16 22:55:58 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2018-09-16 22:55:58 +0200
commit9513b93a992470e21e387db1451fa4fd21ffc5d6 (patch)
tree24b584e9a66ce00f053748ab938eecc8d91110ab /code/environments/production/modules/apt/examples/source.pp
parentb9c90f087cb54a0b8be222dbdcd88c8a73ef4f57 (diff)
downloadpuppet.DEV-9513b93a992470e21e387db1451fa4fd21ffc5d6.tar.gz
puppet.DEV-9513b93a992470e21e387db1451fa4fd21ffc5d6.tar.bz2
puppet.DEV-9513b93a992470e21e387db1451fa4fd21ffc5d6.zip
modules/apt: Ship puppetlabs-apt module v4.5.1.
Diffstat (limited to 'code/environments/production/modules/apt/examples/source.pp')
-rw-r--r--code/environments/production/modules/apt/examples/source.pp35
1 files changed, 35 insertions, 0 deletions
diff --git a/code/environments/production/modules/apt/examples/source.pp b/code/environments/production/modules/apt/examples/source.pp
new file mode 100644
index 0000000..a3648c3
--- /dev/null
+++ b/code/environments/production/modules/apt/examples/source.pp
@@ -0,0 +1,35 @@
+# Declare the apt class to manage /etc/apt/sources.list and /etc/sources.list.d
+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 => {
+ id => '6F6B15509CF8E59E6E469F327F438280EF8D349F',
+ server => 'hkps.pool.sks-keyservers.net',
+ },
+}
+
+# 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 => {
+ id => 'A1BD8E9D78F7FE5C3E65D8AF8B48AD6246925553',
+ server => 'hkps.pool.sks-keyservers.net',
+ },
+ pin => '-10',
+}
+apt::source { 'debian_unstable':
+ location => 'http://debian.mirror.iweb.ca/debian/',
+ release => 'unstable',
+ repos => 'main contrib non-free',
+ key => {
+ id => 'A1BD8E9D78F7FE5C3E65D8AF8B48AD6246925553',
+ server => 'hkps.pool.sks-keyservers.net',
+ },
+ pin => '-10',
+}