summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sitemodules/profiles/manifests/cacert_boardvoting.pp25
1 files changed, 9 insertions, 16 deletions
diff --git a/sitemodules/profiles/manifests/cacert_boardvoting.pp b/sitemodules/profiles/manifests/cacert_boardvoting.pp
index 1db6362..3aaf3d0 100644
--- a/sitemodules/profiles/manifests/cacert_boardvoting.pp
+++ b/sitemodules/profiles/manifests/cacert_boardvoting.pp
@@ -28,22 +28,15 @@
# 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",
}
}