summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Dittberner <jandd@cacert.org>2018-03-28 15:19:50 +0200
committerJan Dittberner <jandd@cacert.org>2018-03-28 15:19:50 +0200
commit8f9b0290b1a8b181e6a243e0fa2e40076ebfa427 (patch)
treeb472842be5a5a9900d376dc32992073147e90972
parent723c90dbbc1fcae1491dbb9002d79cb2bd8d85a9 (diff)
downloadcacert-puppet-8f9b0290b1a8b181e6a243e0fa2e40076ebfa427.tar.gz
cacert-puppet-8f9b0290b1a8b181e6a243e0fa2e40076ebfa427.tar.xz
cacert-puppet-8f9b0290b1a8b181e6a243e0fa2e40076ebfa427.zip
Add profile cacert_boardvoting
-rw-r--r--sitemodules/profiles/manifests/cacert_boardvoting.pp49
-rw-r--r--sitemodules/roles/manifests/motion.pp1
2 files changed, 50 insertions, 0 deletions
diff --git a/sitemodules/profiles/manifests/cacert_boardvoting.pp b/sitemodules/profiles/manifests/cacert_boardvoting.pp
new file mode 100644
index 0000000..8ffaaf0
--- /dev/null
+++ b/sitemodules/profiles/manifests/cacert_boardvoting.pp
@@ -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'],
+ }
+}
diff --git a/sitemodules/roles/manifests/motion.pp b/sitemodules/roles/manifests/motion.pp
index f8a53a7..6a28f52 100644
--- a/sitemodules/roles/manifests/motion.pp
+++ b/sitemodules/roles/manifests/motion.pp
@@ -23,4 +23,5 @@ class roles::motion {
include profiles::base
include profiles::rsyslog
include profiles::nrpe_agent
+ include profiles::cacert_boardvoting
}