diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2022-06-13 22:27:14 +0200 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2022-06-13 22:27:14 +0200 |
commit | 80ae0ba03c822dc0856eaca0d367c162fe65481c (patch) | |
tree | a540cf5388833c8d7ee8ebe55cef6c7216cf9d31 /manifests/repo.pp | |
parent | Use https for arch repo. (diff) | |
download | profiles-80ae0ba03c822dc0856eaca0d367c162fe65481c.tar.gz profiles-80ae0ba03c822dc0856eaca0d367c162fe65481c.tar.xz |
Extend profiles::repo to debian.
Diffstat (limited to 'manifests/repo.pp')
-rw-r--r-- | manifests/repo.pp | 13 |
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, + } + } } } |