summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Dittberner <jandd@cacert.org>2019-08-02 19:12:35 +0200
committerJan Dittberner <jandd@cacert.org>2019-08-02 19:12:35 +0200
commit009fadffe2adb22c4f57755a69fae65368cfb8f8 (patch)
treee95cd491bc02d1eb49c3ea1e4894909db54636ca
parent1ec3676ddc1146924eab66906ec054e274f52277 (diff)
downloadcacert-puppet-009fadffe2adb22c4f57755a69fae65368cfb8f8.tar.gz
cacert-puppet-009fadffe2adb22c4f57755a69fae65368cfb8f8.tar.xz
cacert-puppet-009fadffe2adb22c4f57755a69fae65368cfb8f8.zip
Remove old boardvoting attempt from motion
-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,
}
}