Add boardvoting init script
[cacert-puppet.git] / sitemodules / profiles / manifests / cacert_boardvoting.pp
index 8ffaaf0..265d94b 100644 (file)
@@ -42,8 +42,33 @@ class profiles::cacert_boardvoting () {
   }
   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'],
+  }
+  file { '/var/lib/boardvoting':
+    ensure  => directory,
+    owner   => 'boardvoting',
+    group   => 'boardvoting',
+    mode    => '0750',
+    require => User['boardvoting'],
+  }
+  package { 'lsb-base':
+    ensure => latest,
+  }
+  file { '/etc/init.d/boardvoting':
+    ensure => present,
+    owner  => 'root',
+    group  => 'root',
+    mode   => '0755',
+    source => 'puppet:///modules/profiles/cacert_boardvoting/init.sh',
+  }
 }