summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2022-06-13 22:27:14 +0200
committerHugo Hörnquist <hugo@lysator.liu.se>2022-06-13 22:27:14 +0200
commit80ae0ba03c822dc0856eaca0d367c162fe65481c (patch)
treea540cf5388833c8d7ee8ebe55cef6c7216cf9d31
parentUse https for arch repo. (diff)
downloadprofiles-80ae0ba03c822dc0856eaca0d367c162fe65481c.tar.gz
profiles-80ae0ba03c822dc0856eaca0d367c162fe65481c.tar.xz
Extend profiles::repo to debian.
-rw-r--r--manifests/repo.pp13
1 files changed, 13 insertions, 0 deletions
diff --git a/manifests/repo.pp b/manifests/repo.pp
index bb1b23e..209046a 100644
--- a/manifests/repo.pp
+++ b/manifests/repo.pp
@@ -8,5 +8,18 @@ class profiles::repo {
sig_level => 'Optional',
}
}
+ 'Debian': {
+ $cn = $facts['os']['distro']['codename']
+ $content = @("EOF")
+ # File managed by Puppet
+ # Local changes WILL be overwritten
+ deb [trusted=yes] https://repo.adrift.space/debian ${cn} main
+ deb-src [trusted=yes] https://repo.adrift.space/debian ${cn} main
+ | EOF
+ file { '/etc/apt/sources.list.d/adrift-space.list':
+ ensure => 'file',
+ content => $content,
+ }
+ }
}
}