summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Dittberner <jandd@cacert.org>2019-08-02 19:22:53 +0200
committerJan Dittberner <jandd@cacert.org>2019-08-02 19:22:53 +0200
commit816a5e331d6ba64f03290bfdaed8584dea9c338c (patch)
tree28113e6d4f328b5500009ce470cda7cb365261d9
parent009fadffe2adb22c4f57755a69fae65368cfb8f8 (diff)
downloadcacert-puppet-816a5e331d6ba64f03290bfdaed8584dea9c338c.tar.gz
cacert-puppet-816a5e331d6ba64f03290bfdaed8584dea9c338c.tar.xz
cacert-puppet-816a5e331d6ba64f03290bfdaed8584dea9c338c.zip
Add CAcert APT repository on motion
-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",
}
}