Created
December 13, 2015 23:34
-
-
Save msimerson/7ac977d17d33dad474fb to your computer and use it in GitHub Desktop.
Mail Toaster 6 - sample output - provision-geoip
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# sh provision-geoip.sh | |
mysql enabled | |
toaster host: freebsd-10-2.vmware.imac27.simerson.net | |
toaster domain: imac27.simerson.net | |
shell: /usr/local/bin/bash | |
safe name: stage | |
zroot/jails/base-10.2-RELEASE@p8 snapshot exists | |
zroot/data filesystem exists | |
zroot/data/geoip filesystem exists | |
zroot/data/geoip already exists | |
*** stage jail cleanup *** | |
stopping jail stage (stage) | |
Stopping jails:. | |
zroot/data/geoip filesystem exists | |
*** stage jail filesystem setup *** | |
zfs clone zroot/jails/base-10.2-RELEASE@p8 zroot/jails/stage | |
mounting /usr/ports | |
zroot/data/geoip filesystem exists | |
nullfs mount /data/geoip /jails/stage/usr/local/share/GeoIP | |
sysrc -R /jails/stage hostname=geoip | |
hostname: base -> geoip | |
*** stage jail startup *** | |
Setting hostname: geoip. | |
Creating and/or trimming log files. | |
Starting syslogd. | |
ELF ldconfig path: /lib /usr/lib /usr/lib/compat /usr/local/lib | |
32-bit compatibility ldconfig path: /usr/lib32 | |
Clearing /tmp (X related). | |
Updating motd:. | |
Starting cron. | |
Sun Dec 13 15:24:12 PST 2015 | |
Updating FreeBSD repository catalogue... | |
[geoip] Fetching meta.txz: 100% 940 B 0.9kB/s 00:01 | |
[geoip] Fetching packagesite.txz: 100% 5 MiB 1.8MB/s 00:03 | |
Processing entries: 100% | |
FreeBSD repository update completed. 24609 packages processed. | |
*** install GeoIP updater *** | |
pkg -j stage install -y npm | |
Updating FreeBSD repository catalogue... | |
FreeBSD repository is up-to-date. | |
All repositories are up-to-date. | |
The following 5 package(s) will be affected (of 0 checked): | |
New packages to be INSTALLED: | |
npm: 2.14.4 | |
python27: 2.7.10_1 | |
libffi: 3.2.1 | |
node: 4.1.1 | |
python2: 2_3 | |
The process will require 90 MiB more space. | |
16 MiB to be downloaded. | |
[geoip] Fetching npm-2.14.4.txz: 100% 2 MiB 2.0MB/s 00:01 | |
[geoip] Fetching python27-2.7.10_1.txz: 100% 10 MiB 1.8MB/s 00:06 | |
[geoip] Fetching libffi-3.2.1.txz: 100% 35 KiB 36.2kB/s 00:01 | |
[geoip] Fetching node-4.1.1.txz: 100% 4 MiB 2.0MB/s 00:02 | |
[geoip] Fetching python2-2_3.txz: 100% 1 KiB 1.1kB/s 00:01 | |
Checking integrity... done (0 conflicting) | |
[geoip] [1/5] Installing libffi-3.2.1... | |
[geoip] [1/5] Extracting libffi-3.2.1: 100% | |
[geoip] [2/5] Installing python27-2.7.10_1... | |
[geoip] [2/5] Extracting python27-2.7.10_1: 100% | |
[geoip] [3/5] Installing python2-2_3... | |
[geoip] [3/5] Extracting python2-2_3: 100% | |
[geoip] [4/5] Installing node-4.1.1... | |
[geoip] [4/5] Extracting node-4.1.1: 100% | |
[geoip] [5/5] Installing npm-2.14.4... | |
[geoip] [5/5] Extracting npm-2.14.4: 100% | |
Message from python27-2.7.10_1: | |
=========================================================================== | |
Note that some standard Python modules are provided as separate ports | |
as they require additional dependencies. They are available as: | |
bsddb databases/py-bsddb | |
gdbm databases/py-gdbm | |
sqlite3 databases/py-sqlite3 | |
tkinter x11-toolkits/py-tkinter | |
=========================================================================== | |
Message from node-4.1.1: | |
Note: If you need npm (Node Package Manager), please install www/npm. | |
jexec stage npm install -g maxmind-geolite-mirror | |
/usr/local/bin/maxmind-geolite-mirror -> /usr/local/lib/node_modules/maxmind-geolite-mirror/bin/maxmind-geolite-mirror | |
maxmind-geolite-mirror@1.0.5 /usr/local/lib/node_modules/maxmind-geolite-mirror | |
sysrc -R /jails/stage syslogd_enable=NO | |
syslogd_enable: YES -> NO | |
*** mirroring GeoIP databases *** | |
jexec stage /usr/local/bin/maxmind-geolite-mirror | |
/usr/local/share/GeoIP/GeoIP.dat is up-to-date | |
/usr/local/share/GeoIP/GeoIPCity.dat is up-to-date | |
/usr/local/share/GeoIP/GeoIPCityv6.dat is up-to-date | |
/usr/local/share/GeoIP/GeoIPv6.dat is up-to-date | |
/usr/local/share/GeoIP/GeoIPASNum.dat is up-to-date | |
/usr/local/share/GeoIP/GeoIPASNumv6.dat is up-to-date | |
testing geoip... | |
jexec stage ls /usr/local/share/GeoIP | |
GeoIP.dat GeoIPASNumv6.dat GeoIPCityv6.dat | |
GeoIPASNum.dat GeoIPCity.dat GeoIPv6.dat | |
it worked | |
*** promoting jail geoip *** | |
stopping jail stage (stage) | |
Stopping jails: stage. | |
stage: removed | |
nameserver 172.16.15.3 | |
unmounting /jails/stage/usr/ports | |
zroot/data/geoip filesystem exists | |
umount data fs /jails/stage/usr/local/share/GeoIP | |
unmounting /jails/stage/dev | |
clearing pkg cache | |
zfs rename zroot/jails/stage zroot/jails/geoip.ready | |
cannot unmount '/jails/stage': Device busy | |
waiting for ZFS filesystem to quiet | |
cannot unmount '/jails/stage': Device busy | |
waiting for ZFS filesystem to quiet | |
cannot unmount '/jails/stage': Device busy | |
waiting for ZFS filesystem to quiet | |
cannot unmount '/jails/stage': Device busy | |
waiting for ZFS filesystem to quiet | |
cannot unmount '/jails/stage': Device busy | |
waiting for ZFS filesystem to quiet | |
cannot unmount '/jails/stage': Device busy | |
waiting for ZFS filesystem to quiet | |
cannot unmount '/jails/stage': Device busy | |
waiting for ZFS filesystem to quiet | |
cannot unmount '/jails/stage': Device busy | |
waiting for ZFS filesystem to quiet | |
stopping jail geoip (geoip) | |
Stopping jails:. | |
zroot/data/geoip filesystem exists | |
zroot/jails/geoip filesystem exists | |
zfs rename zroot/jails/geoip zroot/jails/geoip.last | |
zfs rename zroot/jails/geoip.ready zroot/jails/geoip | |
geoip { | |
ip4.addr = 172.16.15.17; | |
mount += "/data/geoip $path/usr/local/share/GeoIP nullfs rw 0 0"; | |
} | |
*** start jail geoip *** | |
Starting jails: geoip. | |
Success! A new 'geoip' jail is provisioned |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment