Skip to content

Instantly share code, notes, and snippets.

@msimerson
Created November 9, 2021 00:44
Show Gist options
  • Save msimerson/262f360df680c7c545392cb12e02acb9 to your computer and use it in GitHub Desktop.
Save msimerson/262f360df680c7c545392cb12e02acb9 to your computer and use it in GitHub Desktop.
Mail Toaster 6 - sample output - provision-horde
# provision horde
172.16.15.42
provision/horde.sh 14 kB 30 MBps 00s
v: 20201030
loading mail-toaster.conf
mysql enabled
toaster host: vmware.imac27.simerson.net
email domain: imac27.simerson.net
IPv6 jail network: fd7a:e5cd:1fc1:0666:dead:beef:cafe
shell: /usr/local/bin/bash
safe name: stage
include/php.sh 2950 B 19 MBps 00s
include/nginx.sh 3226 B 20 MBps 00s
include/mysql.sh 1157 B 9731 kBps 00s
zroot/jails/base-12.2-RELEASE@p11 snapshot exists
*** stage cleanup ***
service jail stop stage
Stopping jails:.
jail -r stage
stage: removed
*** stage jail filesystem setup ***
zfs clone zroot/jails/base-12.2-RELEASE@p11 zroot/jails/stage
sysrc -R /jails/stage hostname=horde
hostname: base -> horde
zroot/data/horde
*** zroot/data filesystem exists ***
*** zfs create -o mountpoint=/data/horde zroot/data/horde ***
done
*** zroot/data/horde filesystem exists ***
mkdir -p /jails/stage/data
mount_nullfs /data/horde /jails/stage/data
mount /jails/stage/usr/ports
mount /jails/stage/var/cache/pkg
*** stage jail horde startup ***
ELF ldconfig path: /lib /usr/lib /usr/lib/compat /usr/local/lib /usr/local/lib/compat/pkg /usr/local/lib/compat/pkg
32-bit compatibility ldconfig path: /usr/lib32
Setting hostname: horde.
Starting syslogd.
Clearing /tmp (X related).
Updating /var/run/os-release done.
Starting cron.
Mon Nov 8 16:40:14 PST 2021
*** updating pkg database ***
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
*** creating /data/horde/data ***
*** making vpopmail dir ***
jexec stage pkg update -f
Updating FreeBSD repository catalogue...
[horde] Fetching meta.conf: 100% 163 B 0.2kB/s 00:01
[horde] Fetching packagesite.pkg: 100% 6 MiB 2.2MB/s 00:03
Processing entries: 100%
FreeBSD repository update completed. 31345 packages processed.
All repositories are up to date.
*** installing PHP 74 ***
*** including php mysqli & PDO_mysql modules ***
pkg -j stage install -y php74 php74-simplexml php74-ftp php74-gd php74-fileinfo php74-tidy php74-pdo_mysql php74-mysqli
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
The following 23 package(s) will be affected (of 0 checked):
New packages to be INSTALLED:
expat: 2.4.1
fontconfig: 2.13.94_1,1
freetype2: 2.11.0
giflib: 5.2.1
jbigkit: 2.1_1
jpeg-turbo: 2.1.1
libargon2: 20190702
libgd: 2.3.1,1
libxml2: 2.9.12
pcre2: 10.37
php74: 7.4.25
php74-fileinfo: 7.4.25
php74-ftp: 7.4.25
php74-gd: 7.4.25
php74-mysqli: 7.4.25
php74-pdo: 7.4.25
php74-pdo_mysql: 7.4.25
php74-simplexml: 7.4.25
php74-tidy: 7.4.25
png: 1.6.37_1
tidy-lib: 090315.c_3
tiff: 4.3.0
webp: 1.2.1
Number of packages to be installed: 23
The process will require 67 MiB more space.
4 MiB to be downloaded.
[horde] [1/14] Fetching php74-simplexml-7.4.25.pkg: 100% 23 KiB 23.1kB/s 00:01
[horde] [2/14] Fetching php74-ftp-7.4.25.pkg: 100% 24 KiB 24.3kB/s 00:01
[horde] [3/14] Fetching php74-gd-7.4.25.pkg: 100% 30 KiB 31.0kB/s 00:01
[horde] [4/14] Fetching php74-tidy-7.4.25.pkg: 100% 16 KiB 16.1kB/s 00:01
[horde] [5/14] Fetching freetype2-2.11.0.pkg: 100% 1 MiB 1.1MB/s 00:01
[horde] [6/14] Fetching png-1.6.37_1.pkg: 100% 291 KiB 297.5kB/s 00:01
[horde] [7/14] Fetching jpeg-turbo-2.1.1.pkg: 100% 366 KiB 374.6kB/s 00:01
[horde] [8/14] Fetching libgd-2.3.1,1.pkg: 100% 202 KiB 207.2kB/s 00:01
[horde] [9/14] Fetching fontconfig-2.13.94_1,1.pkg: 100% 453 KiB 464.1kB/s 00:01
[horde] [10/14] Fetching webp-1.2.1.pkg: 100% 420 KiB 430.1kB/s 00:01
[horde] [11/14] Fetching tiff-4.3.0.pkg: 100% 845 KiB 864.9kB/s 00:01
[horde] [12/14] Fetching jbigkit-2.1_1.pkg: 100% 73 KiB 74.6kB/s 00:01
[horde] [13/14] Fetching giflib-5.2.1.pkg: 100% 232 KiB 237.5kB/s 00:01
[horde] [14/14] Fetching tidy-lib-090315.c_3.pkg: 100% 267 KiB 273.3kB/s 00:01
Checking integrity... done (0 conflicting)
[horde] [1/23] Installing png-1.6.37_1...
[horde] [1/23] Extracting png-1.6.37_1: 100%
[horde] [2/23] Installing jpeg-turbo-2.1.1...
[horde] [2/23] Extracting jpeg-turbo-2.1.1: 100%
[horde] [3/23] Installing jbigkit-2.1_1...
[horde] [3/23] Extracting jbigkit-2.1_1: 100%
[horde] [4/23] Installing libxml2-2.9.12...
[horde] [4/23] Extracting libxml2-2.9.12: 100%
[horde] [5/23] Installing libargon2-20190702...
[horde] [5/23] Extracting libargon2-20190702: 100%
[horde] [6/23] Installing pcre2-10.37...
[horde] [6/23] Extracting pcre2-10.37: 100%
[horde] [7/23] Installing freetype2-2.11.0...
[horde] [7/23] Extracting freetype2-2.11.0: 100%
[horde] [8/23] Installing expat-2.4.1...
[horde] [8/23] Extracting expat-2.4.1: 100%
[horde] [9/23] Installing tiff-4.3.0...
[horde] [9/23] Extracting tiff-4.3.0: 100%
[horde] [10/23] Installing giflib-5.2.1...
[horde] [10/23] Extracting giflib-5.2.1: 100%
[horde] [11/23] Installing php74-7.4.25...
[horde] [11/23] Extracting php74-7.4.25: 100%
[horde] [12/23] Installing fontconfig-2.13.94_1,1...
[horde] [12/23] Extracting fontconfig-2.13.94_1,1: 100%
Running fc-cache to build fontconfig cache...
Font directories:
/usr/local/share/fonts
/usr/local/lib/X11/fonts
/usr/local/share/fonts: skipping, no such directory
/usr/local/lib/X11/fonts: skipping, no such directory
/var/db/fontconfig: cleaning cache directory
fc-cache: succeeded
[horde] [13/23] Installing webp-1.2.1...
[horde] [13/23] Extracting webp-1.2.1: 100%
[horde] [14/23] Installing libgd-2.3.1,1...
[horde] [14/23] Extracting libgd-2.3.1,1: 100%
[horde] [15/23] Installing tidy-lib-090315.c_3...
[horde] [15/23] Extracting tidy-lib-090315.c_3: 100%
[horde] [16/23] Installing php74-pdo-7.4.25...
[horde] [16/23] Extracting php74-pdo-7.4.25: 100%
[horde] [17/23] Installing php74-simplexml-7.4.25...
[horde] [17/23] Extracting php74-simplexml-7.4.25: 100%
[horde] [18/23] Installing php74-ftp-7.4.25...
[horde] [18/23] Extracting php74-ftp-7.4.25: 100%
[horde] [19/23] Installing php74-gd-7.4.25...
[horde] [19/23] Extracting php74-gd-7.4.25: 100%
[horde] [20/23] Installing php74-fileinfo-7.4.25...
[horde] [20/23] Extracting php74-fileinfo-7.4.25: 100%
[horde] [21/23] Installing php74-tidy-7.4.25...
[horde] [21/23] Extracting php74-tidy-7.4.25: 100%
[horde] [22/23] Installing php74-pdo_mysql-7.4.25...
[horde] [22/23] Extracting php74-pdo_mysql-7.4.25: 100%
[horde] [23/23] Installing php74-mysqli-7.4.25...
[horde] [23/23] Extracting php74-mysqli-7.4.25: 100%
=====
Message from freetype2-2.11.0:
--
The 2.7.x series now uses the new subpixel hinting mode (V40 port's option) as
the default, emulating a modern version of ClearType. This change inevitably
leads to different rendering results, and you might change port's options to
adapt it to your taste (or use the new "FREETYPE_PROPERTIES" environment
variable).
The environment variable "FREETYPE_PROPERTIES" can be used to control the
driver properties. Example:
FREETYPE_PROPERTIES=truetype:interpreter-version=35 \
cff:no-stem-darkening=1 \
autofitter:warping=1
This allows to select, say, the subpixel hinting mode at runtime for a given
application.
If LONG_PCF_NAMES port's option was enabled, the PCF family names may include
the foundry and information whether they contain wide characters. For example,
"Sony Fixed" or "Misc Fixed Wide", instead of "Fixed". This can be disabled at
run time with using pcf:no-long-family-names property, if needed. Example:
FREETYPE_PROPERTIES=pcf:no-long-family-names=1
How to recreate fontconfig cache with using such environment variable,
if needed:
# env FREETYPE_PROPERTIES=pcf:no-long-family-names=1 fc-cache -fsv
The controllable properties are listed in the section "Controlling FreeType
Modules" in the reference's table of contents
(/usr/local/share/doc/freetype2/reference/index.html, if documentation was installed).
=====
Message from php74-pdo-7.4.25:
--
This file has been added to automatically load the installed extension:
/usr/local/etc/php/ext-20-pdo.ini
=====
Message from php74-simplexml-7.4.25:
--
This file has been added to automatically load the installed extension:
/usr/local/etc/php/ext-20-simplexml.ini
=====
Message from php74-ftp-7.4.25:
--
This file has been added to automatically load the installed extension:
/usr/local/etc/php/ext-20-ftp.ini
=====
Message from php74-gd-7.4.25:
--
This file has been added to automatically load the installed extension:
/usr/local/etc/php/ext-20-gd.ini
=====
Message from php74-fileinfo-7.4.25:
--
This file has been added to automatically load the installed extension:
/usr/local/etc/php/ext-20-fileinfo.ini
=====
Message from php74-tidy-7.4.25:
--
This file has been added to automatically load the installed extension:
/usr/local/etc/php/ext-20-tidy.ini
=====
Message from php74-pdo_mysql-7.4.25:
--
This file has been added to automatically load the installed extension:
/usr/local/etc/php/ext-30-pdo_mysql.ini
=====
Message from php74-mysqli-7.4.25:
--
This file has been added to automatically load the installed extension:
/usr/local/etc/php/ext-20-mysqli.ini
*** enabling PHP-FPM log file rotation ***
# rotate the file after it reaches 1M
/var/log/php-fpm.log 600 7 1024 * BCX /var/run/php-fpm.pid 30
*** installing nginx ***
pkg -j stage install -y nginx
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
Checking integrity... done (0 conflicting)
The following 2 package(s) will be affected (of 0 checked):
New packages to be INSTALLED:
nginx: 1.20.1_5,2
pcre: 8.45
Number of packages to be installed: 2
The process will require 8 MiB more space.
[horde] [1/2] Installing pcre-8.45...
[horde] [1/2] Extracting pcre-8.45: 100%
[horde] [2/2] Installing nginx-1.20.1_5,2...
===> Creating groups.
Using existing group 'www'.
===> Creating users
Using existing user 'www'.
[horde] [2/2] Extracting nginx-1.20.1_5,2: 100%
=====
Message from nginx-1.20.1_5,2:
--
Recent version of the NGINX introduces dynamic modules support. In
FreeBSD ports tree this feature was enabled by default with the DSO
knob. Several vendor's and third-party modules have been converted
to dynamic modules. Unset the DSO knob builds an NGINX without
dynamic modules support.
To load a module at runtime, include the new `load_module'
directive in the main context, specifying the path to the shared
object file for the module, enclosed in quotation marks. When you
reload the configuration or restart NGINX, the module is loaded in.
It is possible to specify a path relative to the source directory,
or a full path, please see
https://www.nginx.com/blog/dynamic-modules-nginx-1-9-11/ and
http://nginx.org/en/docs/ngx_core_module.html#load_module for
details.
Default path for the NGINX dynamic modules is
/usr/local/libexec/nginx.
*** enabling nginx log file rotation ***
# rotate nightly (default)
/var/log/nginx/*.log root:wheel 644 7 * @T00 BCGX /var/run/nginx.pid 30
# rotate when file size reaches 20M
#/var/log/nginx/*.log root:wheel 644 7 20480 * BCGX /var/run/nginx.pid 30
*** no jail name, skipping options checks ***
*** installing Horde IMP and Ingo ***
pkg -j stage install -y php74-horde-ingo
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
The following 97 package(s) will be affected (of 0 checked):
New packages to be INSTALLED:
libiconv: 1.16
oniguruma: 6.9.7.1
panda-cclient: 20130621_1
php74-bcmath: 7.4.25
php74-ctype: 7.4.25
php74-dom: 7.4.25
php74-filter: 7.4.25
php74-gettext: 7.4.25
php74-horde: 5.2.23
php74-horde-ingo: 3.2.16
php74-iconv: 7.4.25
<snip 1000+lines>
service jail stop horde
Stopping jails:.
jail -r horde
*** zroot/data/horde filesystem exists ***
zfs rename zroot/jails/horde.ready zroot/jails/horde
*** adding horde to /etc/jail.conf ***
horde {
ip4.addr = lo1|172.16.15.42;
ip6.addr = lo1|fd7a:e5cd:1fc1:0666:dead:beef:cafe:002a;
mount += "/data/horde $path/data nullfs rw 0 0";
mount += "/data/vpopmail $path/usr/local/vpopmail nullfs rw 0 0";
}
*** service jail start horde ***
Starting jails: horde.
*** enabling jail horde at startup ***
jail_list: dns mysql redis clamav dcc rspamd vpopmail dovecot geoip haraka haproxy webmail roundcube rainloop squirrelmail sqwebmail -> dns mysql redis clamav dcc rspamd vpopmail dovecot geoip haraka haproxy webmail roundcube rainloop squirrelmail sqwebmail horde
security_status_pkgaudit_jails: dns mysql redis clamav dcc rspamd vpopmail dovecot geoip haraka haproxy webmail roundcube rainloop squirrelmail sqwebmail -> dns mysql redis clamav dcc rspamd vpopmail dovecot geoip haraka haproxy webmail roundcube rainloop squirrelmail sqwebmail horde
Success! A new 'horde' jail is provisioned
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment