Overview
This flavour currently contains unison
for synchronising two directories, with SSH.
The flavour includes a local consul
agent instance to be available that it can connect to (see configuration below). You can e.g. use the consul pot
flavour on this site to run consul
. You can also connect to this host and service consul restart
manually.
Installation
- Create a ZFS dataset beforehand:
zfs create -o mountpoint=/mnt/jaildata/unison zroot/jaildata/unison
- Create your local jail from the image or the flavour files.
- Mount in the ZFS data set you created as follows:
pot mount-in -p <jailname> -m /mnt -d /mnt/jaildata/unison
- Copy in the
authorized_keys
file for theunison
user to/root/importauthkey
specifically:pot copy-in -p <jailname> -s /path/to/authorized_keys -d /root/importauthkey
- Adjust to your environment:
sudo pot set-env -p <jailname> \ -E DATACENTER=<datacentername> \ -E NODENAME=<nodename> \ -E IP=<IP address of this node> \ -E CONSULSERVERS="<comma-deliminated list of consul servers>" \ -E GOSSIPKEY="<32 byte Base64 key from consul keygen>" \ [ -E SSHPORT=<alternative port for SSH> ] \ [ -E REMOTELOG=<remote syslog IP> ]
- Start the jail
Required Paramaters
The DATACENTER parameter defines a common datacenter.
The NODENAME parameter defines the name of this node.
The IP parameter is the IP address which will be used to access services.
The CONSULSERVERS parameter is a comma-deliminated list of IP addresses for the consul server or cluster. Do not include spaces!
e.g. CONSULSERVERS="10.0.0.2"
or CONSULSERVERS="10.0.0.2,10.0.0.3,10.0.0.4,10.0.0.5,10.0.0.6"
The GOSSIPKEY parameter is the gossip encryption key for consul agent. We’re using a default key if you do not set the parameter, do not use the default key for production encryption, instead provide your own.
Optional Parameters
The REMOTELOG parameter is the IP address of a destination syslog-ng
server, such as with the loki
flavour, or beast-of-argh
flavour.
The SSHPORT parameter is for changing the SSH port from the default 22.
Usage
From client side with unison
installed, over VPN with access to applicable internal pot IP address:
unison -batch dir1 ssh://unison@10.0.0.10/unisondata/dir1
Getting Started
- Image Readme
- How To Use The Ready-Made Image
- Alternatively: Create a Jail With This Flavour Yourself
- Version History
- Manual Image Download Links
- Jenkins Pot Creation Logs
How To Use The Ready-Made Image
FreeBSD 14.2:
pot import -p unison-ssh-amd64-14_2 -t 0.0.3 -U https://potluck.honeyguide.net/unison-ssh
With Signify Verification:
fetch https://potluck.honeyguide.net/potluck.pub; pot import -p unison-ssh-amd64-14_2 -t 0.0.3 -C potluck.pub -U https://potluck.honeyguide.net/unison-ssh
If you don’t want to use the default pot
bridged network configuration but instead need an individual network setup (e.g. assign a host IP address), after importing it you can simply clone the jail like that (em0 is the host network adapter in this example):
pot clone -P unison-ssh-amd64-14_2 -p my-cloned-jail -N alias -i "em0|10.10.10.10"
Note: Some images might require specific network configuration, double check the Overview-chapter at the top.
Alternatively: Create a Jail With This Flavour Yourself
1. Create Flavour Files
Save all files and directories from https://github.com/hny-gd/potluck/tree/master/unison-ssh to /usr/local/etc/pot/flavours/
2. Create Jail From Flavour
Run
pot create -b <FreeBSD Version> -p <jailname> -t single -N public-bridge -f fbsd-update
with your FreeBSD version (e.g. 14.1) and the name your jail should get.
Note: Some images might require specific network configuration, double check the Overview-chapter at the top.
Version History
0.0
- First bash at unison-ssh jail
- Fix consul labels and set IP parameters
- Don’t overwrite /mnt/home/unison/.ssh/authorized_keys if it exists
These images were built on Sun Feb 16 13:24:54 UTC 2025
Manual Image Download Links
unison-ssh-amd64-14_2_0.0.3.xz (
)
unison-ssh-amd64-14_2_0.0.3.xz.skein (
)
unison-ssh-amd64-14_2_0.0.3.xz.skein.sig (
)
unison-ssh-amd64-14_2_0.0.3.xz.meta (
)
Jenkins Pot Creation Logs
unison-ssh-amd64-14_2_0.0.3:
unison-ssh/unison-ssh:
copy-in -s /usr/local/etc/pot/flavours/unison-ssh.d/local -d /root/.pot_local
unison-ssh/unison-ssh.sh:
#!/bin/sh
# Based on POTLUCK TEMPLATE v3.0
# Altered by Michael Gmelin
#
# EDIT THE FOLLOWING FOR NEW FLAVOUR:
# 1. RUNS_IN_NOMAD - true or false
# 2. If RUNS_IN_NOMAD is false, can delete the <flavour>+4 file, else
# make sure pot create command doesn't include it
# 3. Create a matching <flavour> file with this <flavour>.sh file that
# contains the copy-in commands for the config files from <flavour>.d/
# Remember that the package directories don't exist yet, so likely copy
# to /root
# 4. Adjust package installation between BEGIN & END PACKAGE SETUP
# 5. Adjust jail configuration script generation between BEGIN & END COOK
# Configure the config files that have been copied in where necessary
# Set this to true if this jail flavour is to be created as a nomad
# (i.e. blocking) jail.
# You can then query it in the cook script generation below and the script
# is installed appropriately at the end of this script
RUNS_IN_NOMAD=false
# set the cook log path/filename
COOKLOG=/var/log/cook.log
# check if cooklog exists, create it if not
if [ ! -e $COOKLOG ]
then
echo "Creating $COOKLOG" | tee -a $COOKLOG
else
echo "WARNING $COOKLOG already exists" | tee -a $COOKLOG
fi
date >> $COOKLOG
# -------------------- COMMON ---------------
STEPCOUNT=0
step() {
STEPCOUNT=$(("$STEPCOUNT" + 1))
STEP="$*"
echo "Step $STEPCOUNT: $STEP" | tee -a $COOKLOG
}
exit_ok() {
trap - EXIT
exit 0
}
FAILED=" failed"
exit_error() {
STEP="$*"
FAILED=""
exit 1
}
set -e
trap 'echo ERROR: $STEP$FAILED | (>&2 tee -a $COOKLOG)' EXIT
# -------------- BEGIN PACKAGE SETUP -------------
step "Bootstrap package repo"
mkdir -p /usr/local/etc/pkg/repos
#
# switch to latest as stress-ng missing from quarterlies
# shellcheck disable=SC2016
echo 'FreeBSD: { url: "pkg+http://pkg.FreeBSD.org/${ABI}/latest" }' \
>/usr/local/etc/pkg/repos/FreeBSD.conf
# only modify repo if not already done in base image
# shellcheck disable=SC2016
#test -e /usr/local/etc/pkg/repos/FreeBSD.conf || \
# echo 'FreeBSD: { url: "pkg+http://pkg.FreeBSD.org/${ABI}/quarterly" }' \
# >/usr/local/etc/pkg/repos/FreeBSD.conf
ASSUME_ALWAYS_YES=yes pkg bootstrap
# added for images with switch to latest
ASSUME_ALWAYS_YES=yes pkg update
step "Touch /etc/rc.conf"
touch /etc/rc.conf
step "Clean freebsd-update"
rm -rf /var/db/freebsd-update
mkdir -p /var/db/freebsd-update
# this is important, otherwise running /etc/rc from cook will
# overwrite the IP address set in tinirc
step "Remove ifconfig_epair0b from config"
# shellcheck disable=SC2015
sysrc -cq ifconfig_epair0b && sysrc -x ifconfig_epair0b || true
step "Disable sendmail"
service sendmail onedisable
step "Create /usr/local/etc/rc.d"
mkdir -p /usr/local/etc/rc.d
# we need consul for consul agent
step "Install package consul"
pkg install -y consul
step "Install package openssl"
pkg install -y openssl
step "Install package sudo"
pkg install -y sudo
# necessary if installing curl now
step "Install package ca_root_nss"
pkg install -y ca_root_nss
step "Install package curl"
pkg install -y curl
step "Install package jq"
pkg install -y jq
step "Install package jo"
pkg install -y jo
step "Install package nano"
pkg install -y nano
step "Install package bash"
pkg install -y bash
step "Install package rsync"
pkg install -y rsync
step "Install package node_exporter"
pkg install -y node_exporter
step "Install package syslog-ng"
pkg install -y syslog-ng
step "Install package unison-nox11"
pkg install -y unison-nox11
step "Clean package installation"
pkg clean -ay
# -------------- END PACKAGE SETUP -------------
#
# Now generate the run command script "cook"
# It configures the system on the first run by creating the config file(s)
# On subsequent runs, it only starts sleeps (if nomad-jail) or simply exits
#
# this runs when image boots
# ----------------- BEGIN COOK ------------------
step "Clean cook artifacts"
rm -rf /usr/local/bin/cook /usr/local/share/cook
step "Install pot local"
tar -C /root/.pot_local -cf - . | tar -C /usr/local -xf -
rm -rf /root/.pot_local
step "Set file ownership on cook scripts"
chown -R root:wheel /usr/local/bin/cook /usr/local/share/cook
chmod 755 /usr/local/share/cook/bin/*
# ----------------- END COOK ------------------
# ---------- NO NEED TO EDIT BELOW ------------
step "Make cook script executable"
if [ -e /usr/local/bin/cook ]
then
echo "setting executable bit on /usr/local/bin/cook" | tee -a $COOKLOG
chmod u+x /usr/local/bin/cook
else
exit_error "there is no /usr/local/bin/cook to make executable"
fi
#
# There are two ways of running a pot jail: "Normal", non-blocking mode and
# "Nomad", i.e. blocking mode (the pot start command does not return until
# the jail is stopped).
# For the normal mode, we create a /usr/local/etc/rc.d script that starts
# the "cook" script generated above each time, for the "Nomad" mode, the cook
# script is started by pot (configuration through flavour file), therefore
# we do not need to do anything here.
#
# Create rc.d script for "normal" mode:
step "Create rc.d script to start cook"
echo "creating rc.d script to start cook" | tee -a $COOKLOG
# shellcheck disable=SC2016
echo '#!/bin/sh
#
# PROVIDE: cook
# REQUIRE: LOGIN
# KEYWORD: shutdown
#
. /etc/rc.subr
name="cook"
rcvar="cook_enable"
load_rc_config $name
: ${cook_enable:="NO"}
: ${cook_env:=""}
command="/usr/local/bin/cook"
command_args=""
run_rc_command "$1"
' > /usr/local/etc/rc.d/cook
step "Make rc.d script to start cook executable"
if [ -e /usr/local/etc/rc.d/cook ]
then
echo "Setting executable bit on cook rc file" | tee -a $COOKLOG
chmod u+x /usr/local/etc/rc.d/cook
else
exit_error "/usr/local/etc/rc.d/cook does not exist"
fi
if [ "$RUNS_IN_NOMAD" != "true" ]
then
step "Enable cook service"
# This is a non-nomad (non-blocking) jail, so we need to make sure the script
# gets started when the jail is started:
# Otherwise, /usr/local/bin/cook will be set as start script by the pot
# flavour
echo "enabling cook" | tee -a $COOKLOG
service cook enable
fi
# -------------------- DONE ---------------
exit_ok
unison-ssh/unison-ssh+1:
unison-ssh/unison-ssh+1.sh:
unison-ssh/unison-ssh+2:
unison-ssh/unison-ssh+2.sh:
unison-ssh/unison-ssh+3:
unison-ssh/unison-ssh+3.sh:
unison-ssh/unison-ssh+4:
unison-ssh/unison-ssh+4.sh:
=====> Create conf dir (/mnt/srv/pot/jails/unison-ssh-amd64-14_2/conf)
=====> Cloning freebsd-potluck-amd64-14_2_0_0_35 with snap
=====> clone zroot/srv/pot/jails/freebsd-potluck-amd64-14_2_0_0_35/m@1738782968 into zroot/srv/pot/jails/unison-ssh-amd64-14_2/m
=====> Flavour: fbsd-update
=====> Starting unison-ssh-amd64-14_2 pot for the initial bootstrap
=====> mount /mnt/srv/pot/jails/unison-ssh-amd64-14_2/m/tmp
defaultrouter: 10.192.0.1 -> 10.192.0.1
===> Starting the pot unison-ssh-amd64-14_2
=====> Pot unison-ssh-amd64-14_2 jail params are: allow.set_hostname=false allow.raw_sockets allow.socket_af allow.chflags exec.clean mount.devfs enforce_statfs=2 sysvshm=new sysvsem=new sysvmsg=new children.max=0 devfs_ruleset=4 stop.timeout=10 name=unison-ssh-amd64-14_2 host.hostname=unison-ssh-amd64-14_2.vsf00002.cpt.za.honeyguide.net osrelease=14.2-RELEASE-p1 path=/mnt/srv/pot/jails/unison-ssh-amd64-14_2/m persist vnet vnet.interface=epair0b
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
Starting Network: lo0 epair0b.
lo0: flags=1008049<UP,LOOPBACK,RUNNING,MULTICAST,LOWER_UP> metric 0 mtu 16384
options=680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
inet 127.0.0.1 netmask 0xff000000
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x6
groups: lo
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
epair0b: flags=1008843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,LOWER_UP> metric 0 mtu 1500
options=8<VLAN_MTU>
ether 02:bb:19:ac:21:0b
inet 10.192.0.3 netmask 0xffc00000 broadcast 10.255.255.255
groups: epair
media: Ethernet 10Gbase-T (10Gbase-T <full-duplex>)
status: active
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
add host 127.0.0.1: gateway lo0 fib 0: route already in table
add net default: gateway 10.192.0.1
add host ::1: gateway lo0 fib 0: route already in table
add net fe80::: gateway ::1
add net ff02::: gateway ::1
add net ::ffff:0.0.0.0: gateway ::1
add net ::0.0.0.0: gateway ::1
Clearing /tmp (X related).
Updating /var/run/os-release done.
Creating and/or trimming log files.
Updating motd:.
Starting syslogd.
Starting sendmail_submit.
Starting cron.
Sun Feb 16 13:22:41 UTC 2025
/usr/local/etc/pot/flavours/fbsd-update.sh -> /mnt/srv/pot/jails/unison-ssh-amd64-14_2/m/tmp/fbsd-update.sh
=====> Executing fbsd-update script on unison-ssh-amd64-14_2
src component not installed, skipped
Looking up update.FreeBSD.org mirrors... 3 mirrors found.
Fetching public key from update1.freebsd.org... done.
Fetching metadata signature for 14.2-RELEASE from update1.freebsd.org... done.
Fetching metadata index... done.
Fetching 2 metadata files... done.
Inspecting system... done.
Preparing to download files... done.
No updates needed to update system to 14.2-RELEASE-p1.
No updates are available to install.
=====> Stop the pot unison-ssh-amd64-14_2
=====> Remove p467b1e69f1aba epair network interfaces
=====> unmount /mnt/srv/pot/jails/unison-ssh-amd64-14_2/m/tmp
=====> unmount /mnt/srv/pot/jails/unison-ssh-amd64-14_2/m/dev
=====> Flavour: unison-ssh
=====> Executing unison-ssh pot commands on unison-ssh-amd64-14_2
=====> mount /mnt/srv/pot/jails/unison-ssh-amd64-14_2/m/tmp
=====> Source /usr/local/etc/pot/flavours/unison-ssh.d/local copied in the pot unison-ssh-amd64-14_2
=====> unmount /mnt/srv/pot/jails/unison-ssh-amd64-14_2/m/tmp
=====> /mnt/srv/pot/jails/unison-ssh-amd64-14_2/m/dev is already unmounted
=====> Starting unison-ssh-amd64-14_2 pot for the initial bootstrap
=====> mount /mnt/srv/pot/jails/unison-ssh-amd64-14_2/m/tmp
defaultrouter: 10.192.0.1 -> 10.192.0.1
===> Starting the pot unison-ssh-amd64-14_2
=====> Pot unison-ssh-amd64-14_2 jail params are: allow.set_hostname=false allow.raw_sockets allow.socket_af allow.chflags exec.clean mount.devfs enforce_statfs=2 sysvshm=new sysvsem=new sysvmsg=new children.max=0 devfs_ruleset=4 stop.timeout=10 name=unison-ssh-amd64-14_2 host.hostname=unison-ssh-amd64-14_2.vsf00002.cpt.za.honeyguide.net osrelease=14.2-RELEASE-p1 path=/mnt/srv/pot/jails/unison-ssh-amd64-14_2/m persist vnet vnet.interface=epair0b
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
Starting Network: lo0 epair0b.
lo0: flags=1008049<UP,LOOPBACK,RUNNING,MULTICAST,LOWER_UP> metric 0 mtu 16384
options=680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
inet 127.0.0.1 netmask 0xff000000
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x6
groups: lo
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
epair0b: flags=1008843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,LOWER_UP> metric 0 mtu 1500
options=8<VLAN_MTU>
ether 02:99:ef:d1:dc:0b
inet 10.192.0.3 netmask 0xffc00000 broadcast 10.255.255.255
groups: epair
media: Ethernet 10Gbase-T (10Gbase-T <full-duplex>)
status: active
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
add host 127.0.0.1: gateway lo0 fib 0: route already in table
add net default: gateway 10.192.0.1
add host ::1: gateway lo0 fib 0: route already in table
add net fe80::: gateway ::1
add net ff02::: gateway ::1
add net ::ffff:0.0.0.0: gateway ::1
add net ::0.0.0.0: gateway ::1
Clearing /tmp (X related).
Updating /var/run/os-release done.
Creating and/or trimming log files.
Updating motd:.
Starting syslogd.
Starting sendmail_submit.
Starting cron.
Sun Feb 16 13:22:47 UTC 2025
/usr/local/etc/pot/flavours/unison-ssh.sh -> /mnt/srv/pot/jails/unison-ssh-amd64-14_2/m/tmp/unison-ssh.sh
=====> Executing unison-ssh script on unison-ssh-amd64-14_2
WARNING /var/log/cook.log already exists
Step 1: Bootstrap package repo
pkg already bootstrapped at /usr/local/sbin/pkg
Updating FreeBSD repository catalogue...
pkg: Repository FreeBSD has a wrong packagesite, need to re-create database
[unison-ssh-amd64-14_2.vsf00002.cpt.za.honeyguide.net] Fetching meta.conf: . done
[unison-ssh-amd64-14_2.vsf00002.cpt.za.honeyguide.net] Fetching data.pkg: .......... done
Processing entries: .......... done
FreeBSD repository update completed. 35946 packages processed.
All repositories are up to date.
Step 2: Touch /etc/rc.conf
Step 3: Clean freebsd-update
Step 4: Remove ifconfig_epair0b from config
Step 5: Disable sendmail
sendmail disabled in /etc/rc.conf
sendmail_submit disabled in /etc/rc.conf
sendmail_msp_queue disabled in /etc/rc.conf
Step 6: Create /usr/local/etc/rc.d
Step 7: Install package consul
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
New version of pkg detected; it needs to be installed first.
The following 1 package(s) will be affected (of 0 checked):
Installed packages to be UPGRADED:
pkg: 1.21.3 -> 2.0.6
Number of packages to be upgraded: 1
12 MiB to be downloaded.
[unison-ssh-amd64-14_2.vsf00002.cpt.za.honeyguide.net] [1/1] Fetching pkg-2.0.6.pkg: .......... done
Checking integrity... done (0 conflicting)
[unison-ssh-amd64-14_2.vsf00002.cpt.za.honeyguide.net] [1/1] Upgrading pkg from 1.21.3 to 2.0.6...
[unison-ssh-amd64-14_2.vsf00002.cpt.za.honeyguide.net] [1/1] Extracting pkg-2.0.6: .......... done
Updating FreeBSD repository catalogue...
FreeBSD 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:
consul: 1.20.2_1
Number of packages to be installed: 1
The process will require 120 MiB more space.
24 MiB to be downloaded.
[unison-ssh-amd64-14_2.vsf00002.cpt.za.honeyguide.net] [1/1] Fetching consul-1.20.2_1.pkg: .......... done
Checking integrity... done (0 conflicting)
[unison-ssh-amd64-14_2.vsf00002.cpt.za.honeyguide.net] [1/1] Installing consul-1.20.2_1...
===> Creating groups
Creating group 'consul' with gid '469'
===> Creating users
Creating user 'consul' with uid '469'
===> Creating homedir(s)
[unison-ssh-amd64-14_2.vsf00002.cpt.za.honeyguide.net] [1/1] Extracting consul-1.20.2_1: ..... done
Step 8: Install package openssl
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
The following 1 package(s) will be affected (of 0 checked):
Installed packages to be UPGRADED:
openssl: 3.0.15_1,1 -> 3.0.16,1
Number of packages to be upgraded: 1
7 MiB to be downloaded.
[unison-ssh-amd64-14_2.vsf00002.cpt.za.honeyguide.net] [1/1] Fetching openssl-3.0.16,1.pkg: .......... done
Checking integrity... done (0 conflicting)
[unison-ssh-amd64-14_2.vsf00002.cpt.za.honeyguide.net] [1/1] Upgrading openssl from 3.0.15_1,1 to 3.0.16,1...
[unison-ssh-amd64-14_2.vsf00002.cpt.za.honeyguide.net] [1/1] Extracting openssl-3.0.16,1: .......... done
Step 9: Install package sudo
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
The following 1 package(s) will be affected (of 0 checked):
Installed packages to be UPGRADED:
sudo: 1.9.16p2 -> 1.9.16p2_1
Number of packages to be upgraded: 1
2 MiB to be downloaded.
[unison-ssh-amd64-14_2.vsf00002.cpt.za.honeyguide.net] [1/1] Fetching sudo-1.9.16p2_1.pkg: .......... done
Checking integrity... done (0 conflicting)
[unison-ssh-amd64-14_2.vsf00002.cpt.za.honeyguide.net] [1/1] Upgrading sudo from 1.9.16p2 to 1.9.16p2_1...
[unison-ssh-amd64-14_2.vsf00002.cpt.za.honeyguide.net] [1/1] Extracting sudo-1.9.16p2_1: .......... done
Step 10: Install package ca_root_nss
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
Checking integrity... done (0 conflicting)
The most recent versions of packages are already installed
Step 11: Install package curl
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
The following 1 package(s) will be affected (of 0 checked):
Installed packages to be UPGRADED:
curl: 8.11.1_1 -> 8.12.0
Number of packages to be upgraded: 1
2 MiB to be downloaded.
[unison-ssh-amd64-14_2.vsf00002.cpt.za.honeyguide.net] [1/1] Fetching curl-8.12.0.pkg: .......... done
Checking integrity... done (0 conflicting)
[unison-ssh-amd64-14_2.vsf00002.cpt.za.honeyguide.net] [1/1] Upgrading curl from 8.11.1_1 to 8.12.0...
[unison-ssh-amd64-14_2.vsf00002.cpt.za.honeyguide.net] [1/1] Extracting curl-8.12.0: .......... done
Step 12: Install package jq
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
Checking integrity... done (0 conflicting)
The most recent versions of packages are already installed
Step 13: Install package jo
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
Checking integrity... done (0 conflicting)
The most recent versions of packages are already installed
Step 14: Install package nano
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
Checking integrity... done (0 conflicting)
The most recent versions of packages are already installed
Step 15: Install package bash
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
Checking integrity... done (0 conflicting)
The most recent versions of packages are already installed
Step 16: Install package rsync
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
The following 1 package(s) will be affected (of 0 checked):
Installed packages to be UPGRADED:
rsync: 3.4.1 -> 3.4.1_2
Number of packages to be upgraded: 1
401 KiB to be downloaded.
[unison-ssh-amd64-14_2.vsf00002.cpt.za.honeyguide.net] [1/1] Fetching rsync-3.4.1_2.pkg: .......... done
Checking integrity... done (0 conflicting)
[unison-ssh-amd64-14_2.vsf00002.cpt.za.honeyguide.net] [1/1] Upgrading rsync from 3.4.1 to 3.4.1_2...
[unison-ssh-amd64-14_2.vsf00002.cpt.za.honeyguide.net] [1/1] Extracting rsync-3.4.1_2: .......... done
Step 17: Install package node_exporter
Updating FreeBSD repository catalogue...
FreeBSD 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:
node_exporter: 1.8.2
Number of packages to be installed: 1
The process will require 11 MiB more space.
4 MiB to be downloaded.
[unison-ssh-amd64-14_2.vsf00002.cpt.za.honeyguide.net] [1/1] Fetching node_exporter-1.8.2.pkg: .......... done
Checking integrity... done (0 conflicting)
[unison-ssh-amd64-14_2.vsf00002.cpt.za.honeyguide.net] [1/1] Installing node_exporter-1.8.2...
[unison-ssh-amd64-14_2.vsf00002.cpt.za.honeyguide.net] [1/1] Extracting node_exporter-1.8.2: .......... done
=====
Message from node_exporter-1.8.2:
--
If upgrading from a version of node_exporter <0.15.0 you'll need to update any
custom command line flags that you may have set as it now requires a
double-dash (--flag) instead of a single dash (-flag).
The collector flags in 0.15.0 have now been replaced with individual boolean
flags and the -collector.procfs` and -collector.sysfs` flags have been renamed
to --path.procfs and --path.sysfs respectively.
Step 18: Install package syslog-ng
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
The following 10 package(s) will be affected (of 0 checked):
New packages to be INSTALLED:
e2fsprogs-libuuid: 1.47.2
glib: 2.80.5_1,2
ivykis: 0.43.2
json-c: 0.18
libffi: 3.4.6
mpdecimal: 4.0.0
pcre2: 10.45
py311-packaging: 24.2
python311: 3.11.11
syslog-ng: 4.8.1_5
Number of packages to be installed: 10
The process will require 242 MiB more space.
34 MiB to be downloaded.
[unison-ssh-amd64-14_2.vsf00002.cpt.za.honeyguide.net] [1/10] Fetching ivykis-0.43.2.pkg: .......... done
[unison-ssh-amd64-14_2.vsf00002.cpt.za.honeyguide.net] [2/10] Fetching mpdecimal-4.0.0.pkg: .......... done
[unison-ssh-amd64-14_2.vsf00002.cpt.za.honeyguide.net] [3/10] Fetching py311-packaging-24.2.pkg: .......... done
[unison-ssh-amd64-14_2.vsf00002.cpt.za.honeyguide.net] [4/10] Fetching glib-2.80.5_1,2.pkg: .......... done
[unison-ssh-amd64-14_2.vsf00002.cpt.za.honeyguide.net] [5/10] Fetching syslog-ng-4.8.1_5.pkg: .......... done
[unison-ssh-amd64-14_2.vsf00002.cpt.za.honeyguide.net] [6/10] Fetching pcre2-10.45.pkg: .......... done
[unison-ssh-amd64-14_2.vsf00002.cpt.za.honeyguide.net] [7/10] Fetching libffi-3.4.6.pkg: ........ done
[unison-ssh-amd64-14_2.vsf00002.cpt.za.honeyguide.net] [8/10] Fetching json-c-0.18.pkg: .......... done
[unison-ssh-amd64-14_2.vsf00002.cpt.za.honeyguide.net] [9/10] Fetching e2fsprogs-libuuid-1.47.2.pkg: ....... done
[unison-ssh-amd64-14_2.vsf00002.cpt.za.honeyguide.net] [10/10] Fetching python311-3.11.11.pkg: .......... done
Checking integrity... done (0 conflicting)
[unison-ssh-amd64-14_2.vsf00002.cpt.za.honeyguide.net] [1/10] Installing e2fsprogs-libuuid-1.47.2...
[unison-ssh-amd64-14_2.vsf00002.cpt.za.honeyguide.net] [1/10] Extracting e2fsprogs-libuuid-1.47.2: .......... done
[unison-ssh-amd64-14_2.vsf00002.cpt.za.honeyguide.net] [2/10] Installing ivykis-0.43.2...
[unison-ssh-amd64-14_2.vsf00002.cpt.za.honeyguide.net] [2/10] Extracting ivykis-0.43.2: .......... done
[unison-ssh-amd64-14_2.vsf00002.cpt.za.honeyguide.net] [3/10] Installing json-c-0.18...
[unison-ssh-amd64-14_2.vsf00002.cpt.za.honeyguide.net] [3/10] Extracting json-c-0.18: .......... done
[unison-ssh-amd64-14_2.vsf00002.cpt.za.honeyguide.net] [4/10] Installing libffi-3.4.6...
[unison-ssh-amd64-14_2.vsf00002.cpt.za.honeyguide.net] [4/10] Extracting libffi-3.4.6: .......... done
[unison-ssh-amd64-14_2.vsf00002.cpt.za.honeyguide.net] [5/10] Installing mpdecimal-4.0.0...
[unison-ssh-amd64-14_2.vsf00002.cpt.za.honeyguide.net] [5/10] Extracting mpdecimal-4.0.0: .......... done
[unison-ssh-amd64-14_2.vsf00002.cpt.za.honeyguide.net] [6/10] Installing pcre2-10.45...
[unison-ssh-amd64-14_2.vsf00002.cpt.za.honeyguide.net] [6/10] Extracting pcre2-10.45: .......... done
[unison-ssh-amd64-14_2.vsf00002.cpt.za.honeyguide.net] [7/10] Installing python311-3.11.11...
[unison-ssh-amd64-14_2.vsf00002.cpt.za.honeyguide.net] [7/10] Extracting python311-3.11.11: .......... done
[unison-ssh-amd64-14_2.vsf00002.cpt.za.honeyguide.net] [8/10] Installing py311-packaging-24.2...
[unison-ssh-amd64-14_2.vsf00002.cpt.za.honeyguide.net] [8/10] Extracting py311-packaging-24.2: .......... done
[unison-ssh-amd64-14_2.vsf00002.cpt.za.honeyguide.net] [9/10] Installing glib-2.80.5_1,2...
[unison-ssh-amd64-14_2.vsf00002.cpt.za.honeyguide.net] [9/10] Extracting glib-2.80.5_1,2: .......... done
[unison-ssh-amd64-14_2.vsf00002.cpt.za.honeyguide.net] [10/10] Installing syslog-ng-4.8.1_5...
[unison-ssh-amd64-14_2.vsf00002.cpt.za.honeyguide.net] [10/10] Extracting syslog-ng-4.8.1_5: .......... done
==> Running trigger: glib-schemas.ucl
Compiling glib schemas
No schema files found: doing nothing.
==> Running trigger: gio-modules.ucl
Generating GIO modules cache
=====
Message from python311-3.11.11:
--
Note that some standard Python modules are provided as separate ports
as they require additional dependencies. They are available as:
py311-gdbm databases/py-gdbm@py311
py311-sqlite3 databases/py-sqlite3@py311
py311-tkinter x11-toolkits/py-tkinter@py311
=====
Message from syslog-ng-4.8.1_5:
--
syslog-ng is now installed! To replace FreeBSD's standard syslogd
(/usr/sbin/syslogd), complete these steps:
1. Create a configuration file named /usr/local/etc/syslog-ng.conf
(a sample named syslog-ng.conf.sample has been included in
/usr/local/etc). Note that this is a change in 2.0.2
version, previous ones put the config file in
/usr/local/etc/syslog-ng/syslog-ng.conf, so if this is an update
move that file in the right place
2. Configure syslog-ng to start automatically by adding the following
to /etc/rc.conf:
syslog_ng_enable="YES"
3. Prevent the standard FreeBSD syslogd from starting automatically by
adding a line to the end of your /etc/rc.conf file that reads:
syslogd_enable="NO"
4. Shut down the standard FreeBSD syslogd:
kill `cat /var/run/syslog.pid`
5. Start syslog-ng:
/usr/local/etc/rc.d/syslog-ng start
Step 19: Install package unison-nox11
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
The following 2 package(s) will be affected (of 0 checked):
New packages to be INSTALLED:
libinotify: 20240724
unison-nox11: 2.53.7
Number of packages to be installed: 2
The process will require 5 MiB more space.
2 MiB to be downloaded.
[unison-ssh-amd64-14_2.vsf00002.cpt.za.honeyguide.net] [1/2] Fetching unison-nox11-2.53.7.pkg: .......... done
[unison-ssh-amd64-14_2.vsf00002.cpt.za.honeyguide.net] [2/2] Fetching libinotify-20240724.pkg: ...... done
Checking integrity... done (0 conflicting)
[unison-ssh-amd64-14_2.vsf00002.cpt.za.honeyguide.net] [1/2] Installing libinotify-20240724...
[unison-ssh-amd64-14_2.vsf00002.cpt.za.honeyguide.net] [1/2] Extracting libinotify-20240724: .......... done
[unison-ssh-amd64-14_2.vsf00002.cpt.za.honeyguide.net] [2/2] Installing unison-nox11-2.53.7...
[unison-ssh-amd64-14_2.vsf00002.cpt.za.honeyguide.net] [2/2] Extracting unison-nox11-2.53.7: ......... done
=====
Message from libinotify-20240724:
--
You might want to consider increasing the kern.maxfiles tunable if you plan
to use this library for applications that need to monitor activity of a lot
of files.
=====
Message from unison-nox11-2.53.7:
--
A text-only unison binary is installed.
Step 20: Clean package installation
The following package files will be deleted:
/var/cache/pkg/pkg-2.0.6.pkg
/var/cache/pkg/mpdecimal-4.0.0~3fdb399fde.pkg
/var/cache/pkg/ivykis-0.43.2~7e50ff7e2e.pkg
/var/cache/pkg/e2fsprogs-libuuid-1.47.2.pkg
/var/cache/pkg/pcre2-10.45~e66652a6ef.pkg
/var/cache/pkg/node_exporter-1.8.2~740dfa17a6.pkg
/var/cache/pkg/pcre2-10.45.pkg
/var/cache/pkg/libinotify-20240724.pkg
/var/cache/pkg/syslog-ng-4.8.1_5~d21f545a3c.pkg
/var/cache/pkg/sudo-1.9.16p2_1.pkg
/var/cache/pkg/rsync-3.4.1_2~b0959b0d99.pkg
/var/cache/pkg/curl-8.12.0~6416419c4e.pkg
/var/cache/pkg/glib-2.80.5_1,2.pkg
/var/cache/pkg/node_exporter-1.8.2.pkg
/var/cache/pkg/json-c-0.18.pkg
/var/cache/pkg/py311-packaging-24.2~11ad0839e6.pkg
/var/cache/pkg/curl-8.12.0.pkg
/var/cache/pkg/libffi-3.4.6.pkg
/var/cache/pkg/e2fsprogs-libuuid-1.47.2~f0c19ddfe3.pkg
/var/cache/pkg/python311-3.11.11.pkg
/var/cache/pkg/consul-1.20.2_1.pkg
/var/cache/pkg/json-c-0.18~bc66c061ac.pkg
/var/cache/pkg/libffi-3.4.6~0b6e5245ba.pkg
/var/cache/pkg/consul-1.20.2_1~cf1bec9ac7.pkg
/var/cache/pkg/python311-3.11.11~8cb695cefb.pkg
/var/cache/pkg/openssl-3.0.16,1~d41b4f73e3.pkg
/var/cache/pkg/syslog-ng-4.8.1_5.pkg
/var/cache/pkg/libinotify-20240724~d332b79253.pkg
/var/cache/pkg/glib-2.80.5_1,2~c69559fdb5.pkg
/var/cache/pkg/sudo-1.9.16p2_1~de0f0d2908.pkg
/var/cache/pkg/pkg-2.0.6~ba1ed83319.pkg
/var/cache/pkg/rsync-3.4.1_2.pkg
/var/cache/pkg/ivykis-0.43.2.pkg
/var/cache/pkg/unison-nox11-2.53.7~1342188fca.pkg
/var/cache/pkg/py311-packaging-24.2.pkg
/var/cache/pkg/openssl-3.0.16,1.pkg
/var/cache/pkg/mpdecimal-4.0.0.pkg
/var/cache/pkg/unison-nox11-2.53.7.pkg
The cleanup will free 85 MiB
Deleting files: .......... done
Step 21: Clean cook artifacts
Step 22: Install pot local
Step 23: Set file ownership on cook scripts
Step 24: Make cook script executable
setting executable bit on /usr/local/bin/cook
Step 25: Create rc.d script to start cook
creating rc.d script to start cook
Step 26: Make rc.d script to start cook executable
Setting executable bit on cook rc file
Step 27: Enable cook service
enabling cook
cook enabled in /etc/rc.conf
=====> Stop the pot unison-ssh-amd64-14_2
=====> Remove p467b1e6a61aba epair network interfaces
=====> unmount /mnt/srv/pot/jails/unison-ssh-amd64-14_2/m/tmp
=====> unmount /mnt/srv/pot/jails/unison-ssh-amd64-14_2/m/dev
===> exporting unison-ssh-amd64-14_2 @ 1739712216 to /tmp/unison-ssh-amd64-14_2_0.0.3.xz