Remove old boardvoting attempt from motion
authorJan Dittberner <jandd@cacert.org>
Fri, 2 Aug 2019 17:12:35 +0000 (19:12 +0200)
committerJan Dittberner <jandd@cacert.org>
Fri, 2 Aug 2019 17:12:35 +0000 (19:12 +0200)
sitemodules/profiles/manifests/cacert_boardvoting.pp

index 265d94b..1db6362 100644 (file)
 # 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,
   }
 }