summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaphaël Pinson <raphael.pinson@camptocamp.com>2014-02-05 16:36:41 +0100
committerRaphaël Pinson <raphael.pinson@camptocamp.com>2014-02-05 16:37:18 +0100
commitac32dffef3d0d9bc7cba8e1d325181773fc1605d (patch)
tree57ffbd9447261d17aa697c4b80e6c84d5f7598fc
parent6a81a5deb00e4b9b69348fd56fb4477d4a284a98 (diff)
Add gentoo back
-rw-r--r--files/rsyslog_default_gentoo16
-rw-r--r--manifests/params.pp38
2 files changed, 48 insertions, 6 deletions
diff --git a/files/rsyslog_default_gentoo b/files/rsyslog_default_gentoo
new file mode 100644
index 0000000..f5de7b5
--- /dev/null
+++ b/files/rsyslog_default_gentoo
@@ -0,0 +1,16 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-admin/rsyslog/files/7-stable/rsyslog.confd,v 1.1 2012/11/20 13:03:36 ultrabug Exp $
+
+# Configuration file
+CONFIGFILE="/etc/rsyslog.conf"
+
+# PID file
+PIDFILE="/var/run/rsyslogd.pid"
+
+# Options to rsyslogd
+# See rsyslogd(8) for more details
+# Notes:
+# * Do not specify another PIDFILE but use the variable above to change the location
+# * Do not specify another CONFIGFILE but use the variable above to change the location
+RSYSLOG_OPTS=""
diff --git a/manifests/params.pp b/manifests/params.pp
index f5d48cd..194d7ca 100644
--- a/manifests/params.pp
+++ b/manifests/params.pp
@@ -103,13 +103,39 @@ class rsyslog::params {
'#$ModLoad immark # provides --MARK-- message capability',
]
}
+
+ gentoo: {
+ $rsyslog_package_name = 'app-admin/rsyslog'
+ $relp_package_name = false
+ $mysql_package_name = 'rsyslog-mysql'
+ $pgsql_package_name = 'rsyslog-pgsql'
+ $gnutls_package_name = false
+ $package_status = 'latest'
+ $rsyslog_d = '/etc/rsyslog.d/'
+ $purge_rsyslog_d = false
+ $rsyslog_conf = '/etc/rsyslog.conf'
+ $rsyslog_default = '/etc/conf.d/rsyslog'
+ $default_config_file = 'rsyslog_default_gentoo'
+ $run_user = 'root'
+ $run_group = 'root'
+ $log_user = 'root'
+ $log_group = 'adm'
+ $log_style = 'debian'
+ $perm_file = '0640'
+ $perm_dir = '0755'
+ $spool_dir = '/var/spool/rsyslog'
+ $service_name = 'rsyslog'
+ $client_conf = "${rsyslog_d}client.conf"
+ $server_conf = "${rsyslog_d}server.conf"
+ $ssl = false
+ $modules = [
+ '$ModLoad imuxsock # provides support for local system logging',
+ '$ModLoad imklog # provides kernel logging support (previously done by rklogd)',
+ '#$ModLoad immark # provides --MARK-- message capability',
+ ]
+ }
default: {
- case $::operatingsystem {
- default: {
- fail("Unsupported platform: ${::operatingsystem}")
- }
- }
+ fail("The ${module_name} module is not supported on ${::osfamily}/${::operatingsystem}.")
}
}
-
}