Add profile cacert_boardvoting
authorJan Dittberner <jandd@cacert.org>
Wed, 28 Mar 2018 13:19:50 +0000 (15:19 +0200)
committerJan Dittberner <jandd@cacert.org>
Wed, 28 Mar 2018 13:19:50 +0000 (15:19 +0200)
sitemodules/profiles/manifests/cacert_boardvoting.pp [new file with mode: 0644]
sitemodules/roles/manifests/motion.pp

diff --git a/sitemodules/profiles/manifests/cacert_boardvoting.pp b/sitemodules/profiles/manifests/cacert_boardvoting.pp
new file mode 100644 (file)
index 0000000..8ffaaf0
--- /dev/null
@@ -0,0 +1,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 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'],
+  }
+  file { '/etc/boardvoting':
+    ensure  => directory,
+    group   => 'boardvoting',
+    mode    => '0750',
+    require => Group['boardvoting'],
+  }
+}
index f8a53a7..6a28f52 100644 (file)
@@ -23,4 +23,5 @@ class roles::motion {
   include profiles::base
   include profiles::rsyslog
   include profiles::nrpe_agent
+  include profiles::cacert_boardvoting
 }