summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2022-03-06 23:39:00 +0100
committerHugo Hörnquist <hugo@lysator.liu.se>2022-03-06 23:39:00 +0100
commitbf0394007e6df56be322ac9e95bc61d00c21ddd2 (patch)
tree1e054d2969840c5fa87356f1caaaf69f88e7f92b
parentcommon auto pull os family common. (diff)
downloadprofiles-bf0394007e6df56be322ac9e95bc61d00c21ddd2.tar.gz
profiles-bf0394007e6df56be322ac9e95bc61d00c21ddd2.tar.xz
Debian common auto fix puppets apt.list.
-rw-r--r--manifests/common/debian.pp9
1 files changed, 9 insertions, 0 deletions
diff --git a/manifests/common/debian.pp b/manifests/common/debian.pp
new file mode 100644
index 0000000..0f00454
--- /dev/null
+++ b/manifests/common/debian.pp
@@ -0,0 +1,9 @@
+class profiles::common::debian {
+ $name = $facts['os']['distro']['codename']
+ file { '/etc/apt/sources.list.d/puppet7.list':
+ content => @("EOF")
+ # Puppet 7 ${name} Repository
+ deb http://apt.puppetlabs.com ${name} puppet7
+ | EOF
+ }
+}