Add CAcert APT repository on motion
authorJan Dittberner <jandd@cacert.org>
Fri, 2 Aug 2019 17:22:53 +0000 (19:22 +0200)
committerJan Dittberner <jandd@cacert.org>
Fri, 2 Aug 2019 17:22:53 +0000 (19:22 +0200)
sitemodules/profiles/manifests/cacert_boardvoting.pp

index 1db6362..3aaf3d0 100644 (file)
 # Copyright 2018-2019 Jan Dittberner
 #
 class profiles::cacert_boardvoting () {
-  # remove old board voting setup
-  file { '/etc/boardvoting':
-    ensure  => absent,
-    force   => true,
+  include apt
+  apt::key { 'cacert':
+    id      => '4C4F8164EFE3DAFEC82F22FC82D61CAA4E904466',
+    server  => 'http://webstatic.infra.cacert.org/cacert-debian-archive-2019.gpg',
+    options => 'http-proxy=http://proxyout:3128',
   }
-  file { '/var/lib/boardvoting':
-    ensure  => absent,
-    force   => true,
-  }
-  file { '/etc/init.d/boardvoting':
-    ensure => absent,
-  }
-  user { 'boardvoting':
-    ensure  => absent,
-  }
-  group { 'boardvoting':
-    ensure => absent,
+  apt::source { 'cacert':
+    location => 'http://webstatic.infra.cacert.org',
+    repos    => 'main',
+    release  => "${::lsbdistcodename}-cacert",
   }
 }