+++ /dev/null
-% This is a minimalist ejabberd configuration file
-% Most things not needed for opensrf, have been removed.
-{acl, admin, {user, "", "localhost"}}.
-{hosts, ["localhost","public.localhost","private.localhost"]}.
-{loglevel, 4}.
-{listen,
- [
- {5222, ejabberd_c2s, [
- {access, c2s},
- {shaper, c2s_shaper},
- {max_stanza_size, 2000000},
- starttls, {certfile, "/etc/ejabberd/ejabberd.pem"}
- ]},
- {5269, ejabberd_s2s_in, [
- {shaper, s2s_shaper},
- {max_stanza_size, 2000000}
- ]},
- {5280, ejabberd_http, [
- http_bind,
- http_poll,
- web_admin
- ]}
- ]}.
-{max_fsm_queue, 1000}.
-{s2s_use_starttls, true}.
-{s2s_certfile, "/etc/ejabberd/ejabberd.pem"}.
-{auth_method, internal}.
-{shaper, normal, {maxrate, 500000}}.
-{shaper, fast, {maxrate, 500000}}.
-{acl, local, {user_regexp, ""}}.
-{access, max_user_sessions, [{10000, all}]}.
-{access, max_user_offline_messages, [{5000, admin}, {100, all}]}.
-{access, local, [{allow, local}]}.
-{access, c2s, [{deny, blocked},
- {allow, all}]}.
-{access, c2s_shaper, [{none, admin},
- {normal, all}]}.
-{access, s2s_shaper, [{fast, all}]}.
-{access, announce, [{allow, admin}]}.
-{access, configure, [{allow, admin}]}.
-{access, register, [{deny, all}]}.
-{access, pubsub_createnode, [{allow, all}]}.
-{language, "en"}.
-{modules,
- [
- {mod_adhoc, []},
- {mod_announce, [{access, announce}]}, % requires mod_adhoc
- {mod_caps, []},
- {mod_configure,[]}, % requires mod_adhoc
- {mod_admin_extra, []},
- {mod_disco, []},
- {mod_version, []}
- ]}.
-
cp -r $EGVMSCRIPTPATH/working/$EGVMNAME/* $1/home/opensrf/
# Ejabberd Config
-if [ "$EGVMSUITE" = "xenial" ]; then
- cp $EGVMSCRIPTPATH/files/configuration/ejabberd.yml $1/etc/ejabberd/ejabberd.yml
- chroot $1 chown ejabberd:ejabberd /etc/ejabberd/ejabberd.yml
- chmod o-rwx,g-r $1/etc/ejabberd/ejabberd.yml
-else
- cp $EGVMSCRIPTPATH/files/configuration/ejabberd.cfg $1/etc/ejabberd/ejabberd.cfg
- chroot $1 chown root:ejabberd /etc/ejabberd/ejabberd.cfg
- chmod o-rwx,g+r $1/etc/ejabberd/ejabberd.cfg
- sed -i -e 's/#SMP=disable/SMP=auto/' $1/etc/default/ejabberd
-fi
+cp $EGVMSCRIPTPATH/files/configuration/ejabberd.yml $1/etc/ejabberd/ejabberd.yml
+chroot $1 chown ejabberd:ejabberd /etc/ejabberd/ejabberd.yml
+chmod o-rwx,g-r $1/etc/ejabberd/ejabberd.yml
# SSL Certificate
mkdir -p $1/etc/apache2
components=main,universe
# Some of this (wget, make, autoconf, nsis, zip, unzip, ejabberd at least) is generally needed.
# The rest are to make other things easier.
-# WARNING: For trusty (see suite below) you should add linux-image-generic to this list!
-addpkg=acpid, vim, openssh-server, screen, wget, ntp, aptitude, make, autoconf, git, ejabberd, nsis, zip, unzip
+addpkg=acpid, vim, openssh-server, screen, wget, ntp, aptitude, make, autoconf, git, ejabberd, nsis, zip, unzip, linux-image-generic
arch=amd64
libvirt=qemu:///system
[ubuntu]
# Set the suite to the desired test suite
-# WARNING: If setting to trusty add linux-image-generic to the addpkg list (see above)
-suite=precise
+suite=xenial
virtio_net=1