Added variable for setting ejabberd chatroom log format
This commit is contained in:
parent
7254a59146
commit
23e17e32ae
2 changed files with 12 additions and 0 deletions
|
@ -20,6 +20,9 @@
|
|||
# $ejabberd_muclog_datadir:
|
||||
# Path where to store chatroom logs. Disabled by default.
|
||||
#
|
||||
# $ejabberd_muclog_format:
|
||||
# Chatroom log format. Valid values html or plaintext, defaults to html.
|
||||
#
|
||||
class ejabberd {
|
||||
|
||||
include user::system
|
||||
|
@ -32,6 +35,14 @@ class ejabberd {
|
|||
$ejabberd_admin = []
|
||||
}
|
||||
|
||||
case $ejabberd_muclog_format {
|
||||
"": { $ejabberd_muclog_format = "html" }
|
||||
"html","plaintext": { }
|
||||
default: {
|
||||
fail("Invalid value ${ejabberd_muclog_format} for \$ejabberd_muclog_format.")
|
||||
}
|
||||
}
|
||||
|
||||
package { "ejabberd":
|
||||
ensure => installed,
|
||||
require => [ User["ejabberd"], User["ejabberd"] ],
|
||||
|
|
|
@ -583,6 +583,7 @@ user, host = admin.split("@") -%>
|
|||
{access_log, muc},
|
||||
{outdir, "<%= ejabberd_muclog_datadir %>"},
|
||||
{dirtype, subdirs},
|
||||
{file_format, <%= ejabberd_muclog_format %>},
|
||||
{cssfile, false},
|
||||
{top_link, {"/portal/", "Back to Portal"}}
|
||||
]},
|
||||
|
|
Loading…
Add table
Reference in a new issue