summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sitemodules/profiles/manifests/debarchive.pp43
1 files changed, 43 insertions, 0 deletions
diff --git a/sitemodules/profiles/manifests/debarchive.pp b/sitemodules/profiles/manifests/debarchive.pp
index 914864f..5d77d0f 100644
--- a/sitemodules/profiles/manifests/debarchive.pp
+++ b/sitemodules/profiles/manifests/debarchive.pp
@@ -191,4 +191,47 @@ class profiles::debarchive (
mode => '0600',
source => 'puppet:///modules/profiles/debarchive/cacert-keyring.gpg',
}
+
+ # setup reprepro
+ file { $package_dir:
+ ensure => directory,
+ owner => 'debarchive',
+ group => 'nogroup',
+ mode => '0755',
+ }
+ file { "${package_dir}/conf":
+ ensure => directory,
+ owner => 'debarchive',
+ group => 'nogroup',
+ mode => '0700',
+ }
+
+ concat { "${package_dir}/conf/distributions":
+ ensure => 'file',
+ owner => 'debarchive',
+ group => 'nogroup',
+ mode => '0600',
+ }
+
+ concat::fragment { 'stretch-distribution':
+ target => "${package_dir}/conf/distributions":
+ content => join([
+ 'Origin: CAcert Infrastructure Team',
+ 'Codename: stretch/cacert',
+ 'Architectures: amd64 source',
+ 'Components: main',
+ '',
+ ''], "\n"),
+ }
+
+ content::fragment { 'buster-distribution':
+ target => "${package_dir}/conf/distributions":
+ content => join([
+ 'Origin: CAcert Infrastructure Team',
+ 'Codename: buster/cacert',
+ 'Architectures: amd64 source',
+ 'Components: main',
+ '',
+ ''], "\n"),
+ }
}