Commit 58bbbcc6 authored by taggart's avatar taggart
Browse files

parameterize main and debian classes

parent 9228a1c8
class sympa::debian {
class sympa::debian (
$upstream = false
) {
if $sympa_upstream {
if $upstream {
# if the above is set, we depend on all the packages ourselves, otherwise
# we just depend on the sympa package which pulls everything in
......
class sympa {
class sympa (
$cgitype = 'fcgid',
$nagios = true,
$munin = true,
$samilter = true,
$upstream = false
) {
case $operatingsystem {
debian: { include sympa::debian }
debian: { class { 'sympa::debian': upstream => $upstream }
mageia: { include sympa::mageia }
default: { err("This operating system not supported") }
}
#FIXME: globals suck, use the right method (see the dovecot module)
if $use_munin { include sympa::munin }
if $use_nagios { include sympa::nagios }
if $sympa_fastcgi { include sympa::fastcgi }
if $sympa_fcgid { include sympa::fcgid }
if $sympa_samilter { include sympa::samilter }
if $munin { include sympa::munin }
if $nagios { include sympa::nagios }
if $samilter { include sympa::samilter }
case $cgitype {
fcgid: { include sympa::fcgid }
fastcgi: { include sympa::fastcgi }
default: { err("This CGI type not supported") }
}
# FIXME: files will go here
file { '/etc/sympa/sympa.conf':
ensure => present,
# should be cleaner to have it root owned, but puppet do not support acl
......@@ -27,7 +33,6 @@ class sympa {
require => Package[sympa],
}
augeas {
"logrotate_sympa":
context => "/files/etc/logrotate.d/sympa/rule",
......@@ -36,7 +41,6 @@ class sympa {
"set missingok missingok", "set ifempty notifempty",
"set copytruncate copytruncate" ]
}
}
/*
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment