summaryrefslogtreecommitdiff
path: root/sitemodules/profiles/manifests/cacert_boardvoting.pp
blob: 1db6362bc464920780eff3420686bbe04ce1494e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# Class: profiles::cacert_boardvoting
# ===================================
#
# This class defines the cacert_boardvoting profile that configures the CAcert
# board voting system.
#
# Parameters
# ----------
#
# This class has no parameters
#
# Examples
# --------
#
# @example
#   class roles::myhost {
#     include profiles::cacert_boardvoting
#   }
#
# Authors
# -------
#
# Jan Dittberner <jandd@cacert.org>
#
# Copyright
# ---------
#
# Copyright 2018-2019 Jan Dittberner
#
class profiles::cacert_boardvoting () {
  # remove old board voting setup
  file { '/etc/boardvoting':
    ensure  => absent,
    force   => true,
  }
  file { '/var/lib/boardvoting':
    ensure  => absent,
    force   => true,
  }
  file { '/etc/init.d/boardvoting':
    ensure => absent,
  }
  user { 'boardvoting':
    ensure  => absent,
  }
  group { 'boardvoting':
    ensure => absent,
  }
}