# 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 # # 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, 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', } }