Consul

Overview

This is a flavour containing the consul service discovery platform.

Together with the nomad-server and the traefik pot flavours on this site, you can easily set up a virtual datacenter.

Installation

  • Create your local jail from the image or the flavour files.
  • Export the ports after creating the jail: pot export-ports -p <jailname> -e 8500:8500 Note: If you want to use the consul DNS service, you either need to expose the DNS UDP port like for the Jitsi Meet Nomad potluck image or you need to clone the jail and assign a host IP address (like for the Nomad Server image).
  • Adjust to your environment:
    sudo pot set-env -p <jailname> \
    -E DATACENTER=<datacentername> \
    -E NODENAME=<consul-nodename> \
    -E IP=<IP address of this consul node> \
    -E BOOTSTRAP=<1|3|5> \
    -E GOSSIPKEY="<32 byte Base64 consul keygen key>" \
    [-E CONSULSERVERS="<comma-separated IP addresses of all servers in cluster>" ] \
    [-E DISABLEUI=<any value disables> ] \
    [-E REMOTELOG="<ip address remote syslog server>" ]
    

The NODENAME parameter defines the name of the node.

The DATACENTER parameter is the datacenter name to use.

The BOOTSTRAP parameter defines the expected number of cluster nodes. You must pass in 1,3 or 5.

For 3 and 5 node clusters all cluster member IP addresses must be passed in using the CONSULSERVERS variable (comma-deliminated, no spaces) or the cluster will only show the current image IP:

-E CONSULSERVERS="10.0.0.1,10.0.0.2,10.0.0.3,10.0.0.4,10.0.0.5"

The GOSSIPKEY parameter is to enable custom gossip encryption and defaults to a standard key. Do not use the default key for production encryption, instead provide your own after running consul keygen with consul client.

The REMOTELOG parameter is the IP address of a remote syslog server to send logs to.

The optional DISABLEUI parameter will disable the web UI if set to any value. Otherwise the UI will be available by default.

Usage

You can connect to the dashboard on port 8500 of your jail IP address.

Getting Started

How To Use The Ready-Made Image

FreeBSD 14.1:
pot import -p consul-amd64-14_1 -t 2.20.1 -U https://potluck.honeyguide.net/consul

With Signify Verification:
fetch https://potluck.honeyguide.net/potluck.pub; pot import -p consul-amd64-14_1 -t 2.20.1 -C potluck.pub -U https://potluck.honeyguide.net/consul

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 consul-amd64-14_1 -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/consul 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

2.20

  • Version bump for new base image 14.1
  • Extra steps to trim image size

2.19

  • Version bump for new base image

2.18

  • Version bump for new base image

2.17

  • Version bump for new base image

2.16

  • Version bump for new base image

2.15

  • Version bump for new base image

2.14

  • Version bump for new base image
  • Fix node_exporter zfs error

2.13

  • Version bump for base image
  • FBSD14 base image

2.12

  • Version bump for new base image

2.11

  • Version bump for new base image

2.10

  • Version bump for new base image

2.9

  • Version bump for new base image

2.8

  • Version bump for new base image

2.7

  • Version bump for new base image
  • Fix syslog-ng problems for 4.2 version, remove stats_freq option
  • Add local unbound for consul DNS resolution
  • Add services to consul setup
  • Fix addition of services
  • Add consul DNS info to README
  • fix local_unbound dns resolution with missing parameters for access control
  • Disable consul DNS option with local_unbound as is only practical in VNET jails with a localhost

2.6

  • Version bump for new base image
  • Add optional DISABLEUI parameter to disable web ui

2.5

  • Version bump for new base image
  • Signified
  • Fix nologin shell for nodeexport user

2.4

  • Version bump for functionality change
  • Pass in cluster members in comma-deliminated format
  • Rename PEERS parameter to CONSULSERVERS for consistency with other pot images

2.3

  • Version bump for new base image
  • Update syslog-ng.conf stats_freq(0); -> stats(freq(0));

2.2

  • Version bump for new base image

2.1

  • Version bump for new base image
  • New version changelog file

2.0.27

  • Version bump for rebuild

2.0.26

  • Version bump for rebuild to fix missing images on potluck site

2.0.25

  • Version bump for p3 rebuild

2.0.24

  • Version bump for new consul version
  • Checklist added

2.0.23

  • Update consul agent.hcl for new setup tls options

2.0.22

  • Make PEERS optional

2.0.21

  • Consul is using http not https (see consul-tls for https)

2.0.20

  • Version bump for new image and cook script

2.0.19

  • Version bump for FreeBSD-13.1

2.0.18

  • Switching to syslog-ng

2.0.17

  • Changing approach with setting up remote syslog as variable not working

2.0.16

  • Wrong fix, consul enable mixup with legacy sysrc entry

2.0.15

  • Fixed bad character in README

2.0.14

  • Rebuild due to workflow error

2.0.13

  • Typos and formatting fixes

2.0.12

  • Minor updates and rebuild for latest consul version

2.0.11

  • Rebuild for FreeBSD 12_3 and 13 & pot 13

2.0.10

  • Quoting gossip key encrypt section

2.0.9

  • Removing vault components and encryption as covered in consul-tls image

2.0.8

  • Adjusting consul service “node-exporter”

2.0.7

  • Adding prometheus node_exporter and setting up consul to publish as service “node-exporter”

2.0.6

  • Setup consul to use a default gossip encryption key

2.0.5

  • Inclusion of consul-template and vault-agentl.hcl

2.0.4

  • Minor fix (mainly directory creation)

2.0.3

  • Rebuild for FreeBSD 13 & new packages

2.0.2

  • Accepts BOOTSTRAP=1 for single server; and BOOTSTRAP=3 or BOOTSTRAP=5 provided correct PEERS variable set

2.0.1

  • Fixed wrong “BOOTSTRAP”-escaping

2.0

  • Updated to use latest flavour scripts, cluster enable

1.0.1

  • Trigger build of FreeBSD 12.2 image & rebuild FreeBSD 11.4 image to update packages

1.0

  • Initial commit

These images were built on Thu Oct 10 01:42:48 UTC 2024

Manual Image Download Links

consul-amd64-14_1_2.20.1.xz ( )
consul-amd64-14_1_2.20.1.xz.skein ( ) consul-amd64-14_1_2.20.1.xz.skein.sig ( ) consul-amd64-14_1_2.20.1.xz.meta ( )

Jenkins Pot Creation Logs

consul-amd64-14_1_2.20.1:


consul/consul:
copy-in -s /usr/local/etc/pot/flavours/consul.d/local -d /root/.pot_local
consul/consul.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
# 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

step "Touch /etc/rc.conf"
touch /etc/rc.conf

# 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

step "Clean freebsd-update"
rm -rf /var/db/freebsd-update
mkdir -p /var/db/freebsd-update

# we need consul for consul agent
step "Install package consul"
pkg install -y consul

step "Install package node_exporter"
pkg install -y node_exporter

step "Install package syslog-ng"
pkg install -y syslog-ng

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

consul/consul+1:
consul/consul+1.sh:

consul/consul+2:
consul/consul+2.sh:

consul/consul+3:
consul/consul+3.sh:

consul/consul+4:
consul/consul+4.sh:
=====>  Create conf dir (/mnt/srv/pot/jails/consul-amd64-14_1/conf)
=====>  Cloning freebsd-potluck-amd64-14_1_0_0_30 with snap 
=====>  clone zroot/srv/pot/jails/freebsd-potluck-amd64-14_1_0_0_30/m@1728499034 into zroot/srv/pot/jails/consul-amd64-14_1/m
=====>  Flavour: fbsd-update
=====>  Starting consul-amd64-14_1 pot for the initial bootstrap
=====>  mount /mnt/srv/pot/jails/consul-amd64-14_1/m/tmp
defaultrouter: 10.192.0.1 -> 10.192.0.1
===>  Starting the pot consul-amd64-14_1
=====>  Pot consul-amd64-14_1 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=consul-amd64-14_1 host.hostname=consul-amd64-14_1.vsf00002.cpt.za.honeyguide.net osrelease=14.1-RELEASE-p5 path=/mnt/srv/pot/jails/consul-amd64-14_1/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
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:ae:8b:94:85: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.

Thu Oct 10 01:40:43 UTC 2024
/usr/local/etc/pot/flavours/fbsd-update.sh -> /mnt/srv/pot/jails/consul-amd64-14_1/m/tmp/fbsd-update.sh
=====>  Executing fbsd-update script on consul-amd64-14_1
src component not installed, skipped
Looking up update.FreeBSD.org mirrors... 3 mirrors found.
Fetching public key from update2.freebsd.org... done.
Fetching metadata signature for 14.1-RELEASE from update2.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.1-RELEASE-p5.
No updates are available to install.
=====>  Stop the pot consul-amd64-14_1
=====>  Remove p467073099f529 epair network interfaces
=====>  unmount /mnt/srv/pot/jails/consul-amd64-14_1/m/tmp
=====>  unmount /mnt/srv/pot/jails/consul-amd64-14_1/m/dev
=====>  Flavour: consul
=====>  Executing consul pot commands on consul-amd64-14_1
=====>  mount /mnt/srv/pot/jails/consul-amd64-14_1/m/tmp
=====>  Source /usr/local/etc/pot/flavours/consul.d/local copied in the pot consul-amd64-14_1
=====>  unmount /mnt/srv/pot/jails/consul-amd64-14_1/m/tmp
=====>  /mnt/srv/pot/jails/consul-amd64-14_1/m/dev is already unmounted
=====>  Starting consul-amd64-14_1 pot for the initial bootstrap
=====>  mount /mnt/srv/pot/jails/consul-amd64-14_1/m/tmp
defaultrouter: 10.192.0.1 -> 10.192.0.1
===>  Starting the pot consul-amd64-14_1
=====>  Pot consul-amd64-14_1 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=consul-amd64-14_1 host.hostname=consul-amd64-14_1.vsf00002.cpt.za.honeyguide.net osrelease=14.1-RELEASE-p5 path=/mnt/srv/pot/jails/consul-amd64-14_1/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
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:d0:b1:d8:c9: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.

Thu Oct 10 01:41:18 UTC 2024
/usr/local/etc/pot/flavours/consul.sh -> /mnt/srv/pot/jails/consul-amd64-14_1/m/tmp/consul.sh
=====>  Executing consul script on consul-amd64-14_1
WARNING /var/log/cook.log already exists
Step 1: Bootstrap package repo
pkg already bootstrapped at /usr/local/sbin/pkg
Step 2: Touch /etc/rc.conf
Step 3: Remove ifconfig_epair0b from config
Step 4: Disable sendmail
sendmail disabled in /etc/rc.conf
sendmail_submit disabled in /etc/rc.conf
sendmail_msp_queue disabled in /etc/rc.conf
Step 5: Create /usr/local/etc/rc.d
Step 6: Clean freebsd-update
Step 7: Install package consul
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.19.0_2

Number of packages to be installed: 1

The process will require 124 MiB more space.
24 MiB to be downloaded.
[consul-amd64-14_1.vsf00002.cpt.za.honeyguide.net] [1/1] Fetching consul-1.19.0_2.pkg: .......... done
Checking integrity... done (0 conflicting)
[consul-amd64-14_1.vsf00002.cpt.za.honeyguide.net] [1/1] Installing consul-1.19.0_2...
===> Creating groups
Creating group 'consul' with gid '469'
===> Creating users
Creating user 'consul' with uid '469'
===> Creating homedir(s)
[consul-amd64-14_1.vsf00002.cpt.za.honeyguide.net] [1/1] Extracting consul-1.19.0_2: ..... done
Step 8: 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.6.1_7

Number of packages to be installed: 1

The process will require 11 MiB more space.
4 MiB to be downloaded.
[consul-amd64-14_1.vsf00002.cpt.za.honeyguide.net] [1/1] Fetching node_exporter-1.6.1_7.pkg: .......... done
Checking integrity... done (0 conflicting)
[consul-amd64-14_1.vsf00002.cpt.za.honeyguide.net] [1/1] Installing node_exporter-1.6.1_7...
[consul-amd64-14_1.vsf00002.cpt.za.honeyguide.net] [1/1] Extracting node_exporter-1.6.1_7: .......... done
=====
Message from node_exporter-1.6.1_7:

--
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 9: 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.1
	glib: 2.80.5,2
	ivykis: 0.43.2
	json-c: 0.17
	libffi: 3.4.6
	mpdecimal: 4.0.0
	pcre2: 10.43
	py311-packaging: 24.1
	python311: 3.11.9
	syslog-ng: 4.7.1

Number of packages to be installed: 10

The process will require 241 MiB more space.
34 MiB to be downloaded.
[consul-amd64-14_1.vsf00002.cpt.za.honeyguide.net] [1/10] Fetching ivykis-0.43.2.pkg: .......... done
[consul-amd64-14_1.vsf00002.cpt.za.honeyguide.net] [2/10] Fetching mpdecimal-4.0.0.pkg: .......... done
[consul-amd64-14_1.vsf00002.cpt.za.honeyguide.net] [3/10] Fetching py311-packaging-24.1.pkg: .......... done
[consul-amd64-14_1.vsf00002.cpt.za.honeyguide.net] [4/10] Fetching glib-2.80.5,2.pkg: .......... done
[consul-amd64-14_1.vsf00002.cpt.za.honeyguide.net] [5/10] Fetching syslog-ng-4.7.1.pkg: .......... done
[consul-amd64-14_1.vsf00002.cpt.za.honeyguide.net] [6/10] Fetching pcre2-10.43.pkg: .......... done
[consul-amd64-14_1.vsf00002.cpt.za.honeyguide.net] [7/10] Fetching libffi-3.4.6.pkg: ......... done
[consul-amd64-14_1.vsf00002.cpt.za.honeyguide.net] [8/10] Fetching json-c-0.17.pkg: .......... done
[consul-amd64-14_1.vsf00002.cpt.za.honeyguide.net] [9/10] Fetching e2fsprogs-libuuid-1.47.1.pkg: ....... done
[consul-amd64-14_1.vsf00002.cpt.za.honeyguide.net] [10/10] Fetching python311-3.11.9.pkg: .......... done
Checking integrity... done (0 conflicting)
[consul-amd64-14_1.vsf00002.cpt.za.honeyguide.net] [1/10] Installing mpdecimal-4.0.0...
[consul-amd64-14_1.vsf00002.cpt.za.honeyguide.net] [1/10] Extracting mpdecimal-4.0.0: .......... done
[consul-amd64-14_1.vsf00002.cpt.za.honeyguide.net] [2/10] Installing libffi-3.4.6...
[consul-amd64-14_1.vsf00002.cpt.za.honeyguide.net] [2/10] Extracting libffi-3.4.6: .......... done
[consul-amd64-14_1.vsf00002.cpt.za.honeyguide.net] [3/10] Installing python311-3.11.9...
[consul-amd64-14_1.vsf00002.cpt.za.honeyguide.net] [3/10] Extracting python311-3.11.9: .......... done
[consul-amd64-14_1.vsf00002.cpt.za.honeyguide.net] [4/10] Installing py311-packaging-24.1...
[consul-amd64-14_1.vsf00002.cpt.za.honeyguide.net] [4/10] Extracting py311-packaging-24.1: .......... done
[consul-amd64-14_1.vsf00002.cpt.za.honeyguide.net] [5/10] Installing pcre2-10.43...
[consul-amd64-14_1.vsf00002.cpt.za.honeyguide.net] [5/10] Extracting pcre2-10.43: .......... done
[consul-amd64-14_1.vsf00002.cpt.za.honeyguide.net] [6/10] Installing ivykis-0.43.2...
[consul-amd64-14_1.vsf00002.cpt.za.honeyguide.net] [6/10] Extracting ivykis-0.43.2: .......... done
[consul-amd64-14_1.vsf00002.cpt.za.honeyguide.net] [7/10] Installing glib-2.80.5,2...
[consul-amd64-14_1.vsf00002.cpt.za.honeyguide.net] [7/10] Extracting glib-2.80.5,2: .......... done
[consul-amd64-14_1.vsf00002.cpt.za.honeyguide.net] [8/10] Installing json-c-0.17...
[consul-amd64-14_1.vsf00002.cpt.za.honeyguide.net] [8/10] Extracting json-c-0.17: .......... done
[consul-amd64-14_1.vsf00002.cpt.za.honeyguide.net] [9/10] Installing e2fsprogs-libuuid-1.47.1...
[consul-amd64-14_1.vsf00002.cpt.za.honeyguide.net] [9/10] Extracting e2fsprogs-libuuid-1.47.1: .......... done
[consul-amd64-14_1.vsf00002.cpt.za.honeyguide.net] [10/10] Installing syslog-ng-4.7.1...
[consul-amd64-14_1.vsf00002.cpt.za.honeyguide.net] [10/10] Extracting syslog-ng-4.7.1: .......... 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.9:

--
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.7.1:

--
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 10: Clean package installation
The following package files will be deleted:
	/var/cache/pkg/consul-1.19.0_2~6be36625f4.pkg
	/var/cache/pkg/pcre2-10.43~3eed9a902f.pkg
	/var/cache/pkg/libffi-3.4.6~fd98d45274.pkg
	/var/cache/pkg/mpdecimal-4.0.0~bea21de105.pkg
	/var/cache/pkg/python311-3.11.9.pkg
	/var/cache/pkg/glib-2.80.5,2~652409c815.pkg
	/var/cache/pkg/ivykis-0.43.2.pkg
	/var/cache/pkg/py311-packaging-24.1.pkg
	/var/cache/pkg/py311-packaging-24.1~8a9ef5f487.pkg
	/var/cache/pkg/libffi-3.4.6.pkg
	/var/cache/pkg/python311-3.11.9~dfa1400010.pkg
	/var/cache/pkg/consul-1.19.0_2.pkg
	/var/cache/pkg/glib-2.80.5,2.pkg
	/var/cache/pkg/pcre2-10.43.pkg
	/var/cache/pkg/syslog-ng-4.7.1~3c782bad2e.pkg
	/var/cache/pkg/node_exporter-1.6.1_7~99fcaf7150.pkg
	/var/cache/pkg/e2fsprogs-libuuid-1.47.1.pkg
	/var/cache/pkg/syslog-ng-4.7.1.pkg
	/var/cache/pkg/e2fsprogs-libuuid-1.47.1~0fb76de6b2.pkg
	/var/cache/pkg/json-c-0.17.pkg
	/var/cache/pkg/ivykis-0.43.2~16184ec884.pkg
	/var/cache/pkg/json-c-0.17~355a137925.pkg
	/var/cache/pkg/mpdecimal-4.0.0.pkg
	/var/cache/pkg/node_exporter-1.6.1_7.pkg
The cleanup will free 62 MiB
Deleting files: .......... done
Step 11: Clean cook artifacts
Step 12: Install pot local
Step 13: Set file ownership on cook scripts
Step 14: Make cook script executable
setting executable bit on /usr/local/bin/cook
Step 15: Create rc.d script to start cook
creating rc.d script to start cook
Step 16: Make rc.d script to start cook executable
Setting executable bit on cook rc file
Step 17: Enable cook service
enabling cook
cook enabled in /etc/rc.conf
=====>  Stop the pot consul-amd64-14_1
=====>  Remove p4670730bdf529 epair network interfaces
=====>  unmount /mnt/srv/pot/jails/consul-amd64-14_1/m/tmp
=====>  unmount /mnt/srv/pot/jails/consul-amd64-14_1/m/dev
===>  exporting consul-amd64-14_1 @ 1728524511 to /tmp/consul-amd64-14_1_2.20.1.xz

This site © Honeyguide Group (Pty) Ltd, all the hosted software their respective license owners 2020 - 2021 - Disclaimer