Last active
May 18, 2023 07:12
-
-
Save msimerson/102d5c1fc4c520799535 to your computer and use it in GitHub Desktop.
Mail Toaster 6 - sample output - provision-redis
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
[~/mt6]# provision redis | |
172.16.15.16 | |
*** skipping fetch, running from git *** | |
v: 20230507 | |
loading mail-toaster.conf | |
mysql enabled | |
toaster host: freebsd.vmware.imac27.simerson.net | |
email domain: imac27.simerson.net | |
IPv6 jail network: fd7a:e5cd:1fc1:186f:dead:beef:cafe | |
shell: /usr/local/bin/bash | |
safe name: stage | |
zroot/jails/base-13.2-RELEASE@p0 snapshot exists | |
*** stage cleanup *** | |
service jail stop stage | |
jail -r stage | |
*** stage jail filesystem setup *** | |
zfs clone zroot/jails/base-13.2-RELEASE@p0 zroot/jails/stage | |
sysrc -R /jails/stage hostname=redis | |
hostname: base -> redis | |
zroot/data/redis | |
*** zroot/data filesystem exists *** | |
*** zfs create -o mountpoint=/data/redis zroot/data/redis *** | |
done | |
*** zroot/data/redis filesystem exists *** | |
mkdir -p /jails/stage/data | |
mount_nullfs /data/redis /jails/stage/data | |
mount /jails/stage/usr/ports | |
mount /jails/stage/var/cache/pkg | |
*** stage jail redis 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: redis. | |
Clearing /tmp (X related). | |
Updating /var/run/os-release done. | |
Starting syslogd. | |
Starting cron. | |
Thu May 18 00:10:11 PDT 2023 | |
*** enabling bsd_cache *** | |
nameserver 172.16.15.3 | |
nameserver fd7a:e5cd:1fc1:186f:dead:beef:cafe:0003 | |
*** updating /jails/stage/usr/local/etc/pkg/repos/FreeBSD.conf *** | |
FreeBSD: { | |
enabled: no | |
} | |
*** updating /jails/stage/usr/local/etc/pkg/repos/MT6.conf *** | |
MT6: { | |
url: "http://pkg/${ABI}/latest", | |
enabled: yes | |
} | |
*** updating pkg database *** | |
Updating MT6 repository catalogue... | |
[redis] Fetching meta.conf: 100% 163 B 0.2kB/s 00:01 | |
[redis] Fetching packagesite.pkg: 100% 7 MiB 6.9MB/s 00:01 | |
Processing entries: 100% | |
MT6 repository update completed. 33157 packages processed. | |
All repositories are up to date. | |
*** installing redis *** | |
pkg -j stage install -y redis | |
Updating MT6 repository catalogue... | |
MT6 repository is up to date. | |
All repositories are up to date. | |
The following 1 package(s) will be affected (of 0 checked): | |
New packages to be INSTALLED: | |
redis: 7.0.11 | |
Number of packages to be installed: 1 | |
The process will require 8 MiB more space. | |
850 KiB to be downloaded. | |
[redis] [1/1] Fetching redis-7.0.11.pkg: 100% 850 KiB 870.5kB/s 00:01 | |
Checking integrity... done (0 conflicting) | |
[redis] [1/1] Installing redis-7.0.11... | |
===> Creating groups. | |
Creating group 'redis' with gid '535'. | |
===> Creating users | |
Creating user 'redis' with uid '535'. | |
[redis] [1/1] Extracting redis-7.0.11: 100% | |
===== | |
Message from redis-7.0.11: | |
-- | |
To setup "redis" you need to edit the configuration file: | |
/usr/local/etc/redis.conf | |
To run redis from startup, add redis_enable="YES" | |
in your /etc/rc.conf. | |
*** configuring redis *** | |
jexec stage chown redis:redis /data/db /data/log /data/etc | |
*** starting redis *** | |
sysrc -R /jails/stage redis_enable=YES | |
redis_enable: -> YES | |
jexec stage service redis start | |
Starting redis. | |
testing redis | |
checking for port 6379 listener in staged jail | |
checking port 6379 | |
Success! Port 6379 is listening in staging jail | |
*** promoting jail redis *** | |
service jail stop stage | |
Stopping jails: stage. | |
jail -r stage | |
*** configuring DNS for local recursor *** | |
unmount /jails/stage/usr/ports | |
unmount /jails/stage/var/cache/pkg | |
*** zroot/data/redis filesystem exists *** | |
clearing pkg cache | |
clearing freebsd-update cache | |
zfs rename zroot/jails/stage zroot/jails/redis.ready | |
service jail stop redis | |
jail -r redis | |
*** zroot/data/redis filesystem exists *** | |
zfs rename zroot/jails/redis.ready zroot/jails/redis | |
*** creating /etc/jail.conf.d/redis.conf *** | |
exec.start = "/bin/sh /etc/rc"; | |
exec.stop = "/bin/sh /etc/rc.shutdown"; | |
exec.clean; | |
mount.devfs; | |
devfs_ruleset=5; | |
path = "/jails/$name"; | |
interface = lo1; | |
host.hostname = $name; | |
redis { | |
ip4.addr = lo1|172.16.15.16; | |
ip6.addr = lo1|fd7a:e5cd:1fc1:186f:dead:beef:cafe:0010; | |
mount += "/data/redis $path/data nullfs rw 0 0"; | |
} | |
*** service jail start redis *** | |
Starting jails: redis. | |
*** enabling jail redis at startup *** | |
jail_list: dns bsd_cache mysql -> dns bsd_cache mysql redis | |
security_status_pkgaudit_jails: dns bsd_cache mysql -> dns bsd_cache mysql redis | |
Success! A new 'redis' jail is provisioned |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment