summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sitemodules/profiles/manifests/cacert_boardvoting.pp51
1 files changed, 13 insertions, 38 deletions
diff --git a/sitemodules/profiles/manifests/cacert_boardvoting.pp b/sitemodules/profiles/manifests/cacert_boardvoting.pp
index 265d94b..1db6362 100644
--- a/sitemodules/profiles/manifests/cacert_boardvoting.pp
+++ b/sitemodules/profiles/manifests/cacert_boardvoting.pp
@@ -25,50 +25,25 @@
# Copyright
# ---------
#
-# Copyright 2018 Jan Dittberner
+# Copyright 2018-2019 Jan Dittberner
#
class profiles::cacert_boardvoting () {
- group { 'boardvoting':
- ensure => present,
- system => true,
- }
- user { 'boardvoting':
- ensure => present,
- comment => 'CAcert board voting system user',
- system => true,
- home => '/var/lib/boardvoting',
- shell => '/bin/false',
- require => Group['boardvoting'],
- }
+ # remove old board voting setup
file { '/etc/boardvoting':
- ensure => directory,
- owner => 'root',
- group => 'boardvoting',
- mode => '0750',
- require => Group['boardvoting'],
- }
- file { '/etc/boardvoting/ssl':
- ensure => directory,
- owner => 'root',
- group => 'boardvoting',
- mode => '0750',
- require => Group['boardvoting'],
+ ensure => absent,
+ force => true,
}
file { '/var/lib/boardvoting':
- ensure => directory,
- owner => 'boardvoting',
- group => 'boardvoting',
- mode => '0750',
- require => User['boardvoting'],
- }
- package { 'lsb-base':
- ensure => latest,
+ ensure => absent,
+ force => true,
}
file { '/etc/init.d/boardvoting':
- ensure => present,
- owner => 'root',
- group => 'root',
- mode => '0755',
- source => 'puppet:///modules/profiles/cacert_boardvoting/init.sh',
+ ensure => absent,
+ }
+ user { 'boardvoting':
+ ensure => absent,
+ }
+ group { 'boardvoting':
+ ensure => absent,
}
}