Patroni PostgreSQL

Overview

This is a patroni postgresql jail that can be started with pot.

The jail exposes these parameters that can either be set via the environment or by setting the cookparameters (or by editing the downloaded jails pot.conf file):

It is dependent on a consul server/cluster for the DCS store.

Installation

  • Create a ZFS data set on the parent system beforehand: zfs create -o mountpoint=/mnt/postgresqldata zroot/postgresqldata

  • Create your local jail from the image or the flavour files.

  • Mount in the ZFS data set you created: pot mount-in -p <jailname> -m /mnt -d /mnt/postgresqldata

  • Copy in the SSH private key for the user on the Vault leader: pot copy-in -p <jailname> -s /root/sshkey -d /root/sshkey

  • Optionally export the ports after creating the jail: pot export-ports -p <jailname> -e 5432:5432

  • Adjust to your environment:

    sudo pot set-env -p <jailname> -E DATACENTER=<datacentername> \
      -E NODENAME=<nodename> -E IP=<IP address of this node> \
      -E SERVICETAG=<master/replica/standby-leader> \
      -E CONSULSERVERS=<correctly-quoted-array-consul-IPs> \
      -E REMOTELOG=<IP of loki>
    

The SERVICETAG parameter defines if this is master, replica, or standby-leader node in the cluster.

The CONSULSERVERS parameter defines the consul server instances, and must be set as

  • CONSULSERVERS='"10.0.0.2"' or
  • CONSULSERVERS='"10.0.0.2", "10.0.0.3", "10.0.0.4"' or
  • CONSULSERVERS='"10.0.0.2", "10.0.0.3", "10.0.0.4", "10.0.0.5", "10.0.0.6"'

The REMOTELOG parameter is the IP address of a remote syslog server to send logs to, such as for the loki flavour on this site.

To be documented: Booting the image the first time requires placing various credentials in /mnt/postgrescerts.

Usage

Usage notes

  • The mount-in data set goes to /mnt. This change from /var/db/postgres requires the postgres user’s home directory be updated from the default to this. This is done automatically and will work as long as the mount-in directory is /mnt.
  • You must su to the postgresql user and run psql to interact with PostgreSQL.
  • No default database exists. It will have to be setup or imported.

Verify node or cluster details with

# checks https://localhost:8008/patroni
/root/verifynode.sh
# checks https://localhost:8008/cluster
/root/verifycluster.sh
/usr/local/etc/rc.d/patroni list

Starting over

If you need to reset the cluster, and start from scratch, make sure to remove the kv values in consul. If you don’t the old data will simply be imported to the new cluster.

Getting Started

How To Use The Ready-Made Image

FreeBSD 13.0:
pot import -p postgresql-patroni-amd64-13_0 -t 2.2.8 -U https://potluck.honeyguide.net/postgresql-patroni

FreeBSD 12.3:
pot import -p postgresql-patroni-amd64-12_3 -t 2.2.8 -U https://potluck.honeyguide.net/postgresql-patroni

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 postgresql-patroni-amd64-13_0 -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/postgresql-patroni 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. 12.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.2.8

  • Make consul node_names non-FQDN

2.2.7

  • Major rework of templates, certificate issuing, and token/entity/group/role structure

2.2.6

  • Improve metrics collection and image config

2.2.5

  • Merged PR 26, incrementing version in changelog

2.2.4

  • Dummy entry, missing version increment

2.2.3

  • Dummy entry, missing version increment

2.2.2

  • Dummy entry, missing version increment

2.2.1

  • Incrementing version number after pull request 25

2.2.0

  • Many improvements to service mesh components

2.1.9

  • Rebuild for FreeBSD 12_3 and 13 & pot 13

2.1.8

  • Updating version for merge

2.1.7

  • Fixing missing certs directory

2.1.6

  • Adding syslog-ng back

2.1.5

  • Tweaking certificate filenames

2.1.4

  • Adding metrics pki stuff for node_exporter

2.1.3

  • Fixing missing pipes in cook scripts from TTL changes

2.1.2

  • Fixing errors in cook scripts from nomad files

2.1.1

  • Adding TTL parameter for consul template

2.1.0

  • Big hashcluster update for new setup

2.0.24

  • Need to use 127.0.0.1 instead of localhost in the scripts to check patroni status, else TLS fails

2.0.23

  • TLS everywhere for postgresql requires specific permissions on key.pem

2.0.22

  • Fixed the patroni.yml spacing

2.0.21

  • Fixed the README file

2.0.20

  • Encryption all round. Added scripts to check status.

2.0.19

  • Removing sftppass, unsetting consul sysrc parameters where needed

2.0.18

  • General security fixups and removal bad copy-paste entries

2.0.17

  • Tweaking mandatory variables for optional parameters

2.0.16

  • Bug-fix on gossip key

2.0.15

  • Implementing mandatory variables

2.0.14

  • Adding postgres_exporter for prometheus

2.0.13

  • Setup for tls-client-validation

2.0.12

  • README update, turning off flow-control in syslog-ng, setting 120s time_reopen, and reducing log-fifo parameter

2.0.11

  • Clearing syslog-ng /dev/console entries to remove log spam

2.0.10

  • Fixing typo in copy-in, future-proofing

2.0.9

  • Updating syslog-ng and standardised cert.pem key.pem ca.pem

2.0.8

  • Implementing syslog-ng with tls for remote logging

2.0.7

  • Replication password, other updates to improve initdb process such as 0750 perms on /mnt/postgres

2.0.6

  • Vault certificates intgration, pip install of psycopg2 due to conflicts with postgresql-client

2.0.5

  • Updating for persistent postgresql storage

2.0.4

  • Adjusting parameters for node-exporter service

2.0.3

  • Added node_exporter and setup consul service “node-exporter”

2.0.2

  • Consul pre-generated gossip encryption key added

2.0.1

  • Fixing up minor type with trailing comma in consul agent.json setup

2.0

  • Several updates including new postgresql version, better parameter variables

1.0

  • Initial commit with PostgreSQL Patroni configuration that connects to Consul

These images were built on Mon Feb 28 21:41:20 UTC 2022

Manual Image Download Links

postgresql-patroni-amd64-13_0_2.2.8.xz ( 947.799 MB )
postgresql-patroni-amd64-13_0_2.2.8.xz.skein ( 0.250977 KB ) postgresql-patroni-amd64-13_0_2.2.8.xz.meta ( 0.00195312 KB )

postgresql-patroni-amd64-12_3_2.2.8.xz ( 877.644 MB )
postgresql-patroni-amd64-12_3_2.2.8.xz.skein ( 0.250977 KB ) postgresql-patroni-amd64-12_3_2.2.8.xz.meta ( 0.00195312 KB )

Jenkins Pot Creation Logs

postgresql-patroni-amd64-13_0_2.2.8:


postgresql-patroni/postgresql-patroni:
copy-in -s /usr/local/etc/pot/flavours/postgresql-patroni.d/local -d /root/.pot_local
postgresql-patroni/postgresql-patroni.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 "Disable sshd"
service sshd onedisable || true

step "Create /usr/local/etc/rc.d"
mkdir -p /usr/local/etc/rc.d

step "Update package repository"
pkg update -f

step "Install package sudo"
pkg install -y sudo

step "Install package openssl"
pkg install -y openssl

step "Install package nginx"
pkg install -y nginx

step "Install package vault"
pkg install -y vault

step "Install package consul"
pkg install -y consul

step "Install package consul-template"
pkg install -y consul-template

step "Patching consul-template rc scripts"
sed -i '' 's/^\(start_precmd=consul_template_startprecmd\)$/\1;'\
'extra_commands=reload/'  /usr/local/etc/rc.d/consul-template || true

step "Install package node_exporter"
pkg install -y node_exporter

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

step "Install package postgresql-server"
pkg install -y postgresql13-server

step "Install package postgresql-client"
pkg install -y postgresql13-client

step "Install package python37"
pkg install -y python38

step "Install package python3-pip"
pkg install -y py38-pip

step "Install package python-consul2"
# this version gives error
pkg install -y py38-python-consul2

# using pip to install this package, as pkg removes postgres13 now,
# and installs postgres12 client as dependency
#step "Install package psycopg2"
#pkg install -y py38-psycopg2

step "Install package jq"
pkg install -y jq

step "Install package jo"
pkg install -y jo

step "Install package curl"
pkg install -y curl



#
# pip MUST ONLY be used:
# * With the --user flag, OR
# * To install or manage Python packages in virtual environments
# using -prefix here to force install in /usr/local/bin

step "Install pip package psycopg2-binary"
pip install psycopg2-binary --prefix="/usr/local/"

step "Install pip package patroni"
pip install patroni --prefix="/usr/local"
#
## WARNING: The scripts patroni, patroni_aws, patroni_raft_controller,
## patroni_wale_restore and patronictl are installed in
## '--prefix=/usr/local/bin' which is not in PATH.
## Consider adding this directory to PATH or, if you prefer to suppress
## this warning, use --no-warn-script-location.

step "Fetch and install patroni tls server name patch"
fetch -qo /usr/local/lib/python3.8/site-packages/patroni/dcs/consul.py \
  https://raw.githubusercontent.com/grembo/patroni/\
dac9db548b3/patroni/dcs/consul.py

#### Build postgres_exporter - BEGIN
# change to a temporary directory and clone the github repo for
# postgres_exporter
step "Install package git-lite"
pkg install -y git-lite

step "Install package go"
pkg install -y go

step "Install package gmake"
pkg install -y gmake

cd /tmp

step "Fetch postgres_exporter sources"
/usr/local/bin/git clone --depth 1 -b v0.10.1 \
  https://github.com/prometheus-community/postgres_exporter.git
# make sure we're at the correct commit

step "Build postgres_exporter"
cd /tmp/postgres_exporter
# make sure we're at the expected commit
/usr/local/bin/git checkout 6cff384d7433bcb1104efe3b496cd27c0658eb09
/usr/local/bin/gmake build

step "Install postgres_exporter"
sed -i '' 's|-web.listen-address|--web.listen-address|g' \
  /tmp/postgres_exporter/postgres_exporter.rc
sed -i '' 's|sslmode=disable|sslmode=verify-ca|g' \
  /tmp/postgres_exporter/postgres_exporter.rc
# shellcheck disable=SC2016
sed -i '' 's|-p ${pidfile}|-f -p ${pidfile} -T ${name}|g' \
  /tmp/postgres_exporter/postgres_exporter.rc
cp -f /tmp/postgres_exporter/postgres_exporter.rc \
  /usr/local/etc/rc.d/postgres_exporter
chmod +x /usr/local/etc/rc.d/postgres_exporter
cp -f /tmp/postgres_exporter/postgres_exporter \
  /usr/local/bin/postgres_exporter
chmod +x /usr/local/bin/postgres_exporter

step "Clean postgres_exporter build"
rm -rf /tmp/postgres_exporter
pkg delete -y git-lite gmake go

#### Build postgres_exporter - END

step "Clean package installation"
pkg clean -y

# -------------- END PACKAGE SETUP -------------
#
# Create configurations
#

#
# 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

postgresql-patroni/postgresql-patroni+1:
postgresql-patroni/postgresql-patroni+1.sh:

postgresql-patroni/postgresql-patroni+2:
postgresql-patroni/postgresql-patroni+2.sh:

postgresql-patroni/postgresql-patroni+3:
postgresql-patroni/postgresql-patroni+3.sh:

postgresql-patroni/postgresql-patroni+4:
postgresql-patroni/postgresql-patroni+4.sh:
Password:===>  Creating a new pot
===>  pot name     : postgresql-patroni-amd64-13_0
===>  type         : single
===>  base         : 13.0
===>  pot_base     : 
===>  level        : 0
===>  network-type : public-bridge
===>  network-stack: ipv4
===>  ip           : 10.192.0.5
===>  bridge       : 
===>  dns          : inherit
===>  flavours     : fbsd-update postgresql-patroni postgresql-patroni+1 postgresql-patroni+2 postgresql-patroni+3 postgresql-patroni+4
===>  Fetching FreeBSD 13.0
===>  Extract the tarball
=====>  Flavour: fbsd-update
=====>  Starting postgresql-patroni-amd64-13_0 pot for the initial bootstrap
=====>  mount /mnt/srv/pot/jails/postgresql-patroni-amd64-13_0/m/tmp
defaultrouter: NO -> 10.192.0.1
===>  Starting the pot postgresql-patroni-amd64-13_0
ELF ldconfig path: /lib /usr/lib /usr/lib/compat
32-bit compatibility ldconfig path: /usr/lib32
Starting Network: lo0 epair0b.
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
	options=680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
	inet6 ::1 prefixlen 128
	inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1
	inet 127.0.0.1 netmask 0xff000000
	groups: lo
	nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
epair0b: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
	options=8<VLAN_MTU>
	ether 02:6f:29:5b:6f:0b
	inet 10.192.0.5 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
Updating /var/run/os-release done.
Creating and/or trimming log files.
Clearing /tmp (X related).
Updating motd:.
Starting syslogd.
Starting sendmail_submit.
Starting sendmail_msp_queue.
Starting cron.

Mon Feb 28 21:17:48 UTC 2022
/usr/local/etc/pot/flavours/fbsd-update.sh -> /mnt/srv/pot/jails/postgresql-patroni-amd64-13_0/m/tmp/fbsd-update.sh
=====>  Executing fbsd-update script on postgresql-patroni-amd64-13_0
src component not installed, skipped
Looking up update.FreeBSD.org mirrors... 2 mirrors found.
Fetching public key from update2.freebsd.org... done.
Fetching metadata signature for 13.0-RELEASE from update2.freebsd.org... done.
Fetching metadata index... done.
Fetching 2 metadata files... done.
Inspecting system... done.
Preparing to download files... done.
Fetching 161 patches.....10....20....30....40....50....60....70....80....90....100....110....120....130....140....150....160 done.
Applying patches... done.
Fetching 15 files... ....10.. done.
The following files will be removed as part of updating to
13.0-RELEASE-p7:
/etc/ssl/certs/080911ac.0
/etc/ssl/certs/0b7c536a.0
/etc/ssl/certs/0c4c9b6c.0
/etc/ssl/certs/116bf586.0
/etc/ssl/certs/1320b215.0
/etc/ssl/certs/26312675.0
/etc/ssl/certs/349f2832.0
/etc/ssl/certs/442adcac.0
/etc/ssl/certs/5a4d6896.0
/etc/ssl/certs/9c2e7d30.0
/etc/ssl/certs/a8dee976.0
/etc/ssl/certs/b1b8a7f3.0
/etc/ssl/certs/c01cdfa2.0
/etc/ssl/certs/c47d9980.0
/etc/ssl/certs/cb59f961.0
/etc/ssl/certs/d853d49e.0
/etc/ssl/certs/dc45b0bd.0
/etc/ssl/certs/ee1365c0.0
/etc/ssl/certs/f90208f7.0
/usr/share/certs/trusted/Camerfirma_Chambers_of_Commerce_Root.pem
/usr/share/certs/trusted/Camerfirma_Global_Chambersign_Root.pem
/usr/share/certs/trusted/Certum_Root_CA.pem
/usr/share/certs/trusted/Chambers_of_Commerce_Root_-_2008.pem
/usr/share/certs/trusted/D-TRUST_Root_CA_3_2013.pem
/usr/share/certs/trusted/EC-ACC.pem
/usr/share/certs/trusted/GeoTrust_Primary_Certification_Authority_-_G2.pem
/usr/share/certs/trusted/Global_Chambersign_Root_-_2008.pem
/usr/share/certs/trusted/OISTE_WISeKey_Global_Root_GA_CA.pem
/usr/share/certs/trusted/QuoVadis_Root_CA.pem
/usr/share/certs/trusted/Sonera_Class_2_Root_CA.pem
/usr/share/certs/trusted/Staat_der_Nederlanden_Root_CA_-_G3.pem
/usr/share/certs/trusted/SwissSign_Platinum_CA_-_G2.pem
/usr/share/certs/trusted/Symantec_Class_1_Public_Primary_Certification_Authority_-_G6.pem
/usr/share/certs/trusted/Symantec_Class_2_Public_Primary_Certification_Authority_-_G6.pem
/usr/share/certs/trusted/Trustis_FPS_Root_CA.pem
/usr/share/certs/trusted/VeriSign_Universal_Root_Certification_Authority.pem
/usr/share/certs/trusted/Verisign_Class_1_Public_Primary_Certification_Authority_-_G3.pem
/usr/share/certs/trusted/Verisign_Class_2_Public_Primary_Certification_Authority_-_G3.pem
The following files will be added as part of updating to
13.0-RELEASE-p7:
/etc/ssl/blacklisted/080911ac.0
/etc/ssl/blacklisted/0b7c536a.0
/etc/ssl/blacklisted/0c4c9b6c.0
/etc/ssl/blacklisted/116bf586.0
/etc/ssl/blacklisted/1320b215.0
/etc/ssl/blacklisted/26312675.0
/etc/ssl/blacklisted/349f2832.0
/etc/ssl/blacklisted/442adcac.0
/etc/ssl/blacklisted/5a4d6896.0
/etc/ssl/blacklisted/9c2e7d30.0
/etc/ssl/blacklisted/a8dee976.0
/etc/ssl/blacklisted/b1b8a7f3.0
/etc/ssl/blacklisted/c01cdfa2.0
/etc/ssl/blacklisted/c47d9980.0
/etc/ssl/blacklisted/cb59f961.0
/etc/ssl/blacklisted/d853d49e.0
/etc/ssl/blacklisted/dc45b0bd.0
/etc/ssl/blacklisted/ee1365c0.0
/etc/ssl/blacklisted/f90208f7.0
/etc/ssl/certs/002c0b4f.0
/etc/ssl/certs/9482e63a.0
/etc/ssl/certs/b433981b.0
/etc/ssl/certs/b81b93f0.0
/etc/ssl/certs/e35234b1.0
/etc/ssl/certs/fa5da96b.0
/etc/ssl/certs/feffd413.0
/usr/include/c++/v1/barrier
/usr/include/c++/v1/concepts
/usr/include/c++/v1/execution
/usr/include/c++/v1/latch
/usr/include/c++/v1/numbers
/usr/include/c++/v1/semaphore
/usr/include/c++/v1/tr1/barrier
/usr/include/c++/v1/tr1/concepts
/usr/include/c++/v1/tr1/execution
/usr/include/c++/v1/tr1/latch
/usr/include/c++/v1/tr1/numbers
/usr/include/c++/v1/tr1/semaphore
/usr/share/certs/blacklisted/Camerfirma_Chambers_of_Commerce_Root.pem
/usr/share/certs/blacklisted/Camerfirma_Global_Chambersign_Root.pem
/usr/share/certs/blacklisted/Certum_Root_CA.pem
/usr/share/certs/blacklisted/Chambers_of_Commerce_Root_-_2008.pem
/usr/share/certs/blacklisted/D-TRUST_Root_CA_3_2013.pem
/usr/share/certs/blacklisted/EC-ACC.pem
/usr/share/certs/blacklisted/GeoTrust_Primary_Certification_Authority_-_G2.pem
/usr/share/certs/blacklisted/Global_Chambersign_Root_-_2008.pem
/usr/share/certs/blacklisted/OISTE_WISeKey_Global_Root_GA_CA.pem
/usr/share/certs/blacklisted/QuoVadis_Root_CA.pem
/usr/share/certs/blacklisted/Sonera_Class_2_Root_CA.pem
/usr/share/certs/blacklisted/Staat_der_Nederlanden_Root_CA_-_G3.pem
/usr/share/certs/blacklisted/SwissSign_Platinum_CA_-_G2.pem
/usr/share/certs/blacklisted/Symantec_Class_1_Public_Primary_Certification_Authority_-_G6.pem
/usr/share/certs/blacklisted/Symantec_Class_2_Public_Primary_Certification_Authority_-_G6.pem
/usr/share/certs/blacklisted/Trustis_FPS_Root_CA.pem
/usr/share/certs/blacklisted/VeriSign_Universal_Root_Certification_Authority.pem
/usr/share/certs/blacklisted/Verisign_Class_1_Public_Primary_Certification_Authority_-_G3.pem
/usr/share/certs/blacklisted/Verisign_Class_2_Public_Primary_Certification_Authority_-_G3.pem
/usr/share/certs/trusted/AC_RAIZ_FNMT-RCM_SERVIDORES_SEGUROS.pem
/usr/share/certs/trusted/ANF_Secure_Server_Root_CA.pem
/usr/share/certs/trusted/Certum_EC-384_CA.pem
/usr/share/certs/trusted/Certum_Trusted_Root_CA.pem
/usr/share/certs/trusted/GLOBALTRUST_2020.pem
/usr/share/certs/trusted/GlobalSign_Root_E46.pem
/usr/share/certs/trusted/GlobalSign_Root_R46.pem
The following files will be updated as part of updating to
13.0-RELEASE-p7:
/bin/freebsd-version
/lib/libalias.so.7
/lib/libcasper.so.1
/lib/libcrypto.so.111
/rescue/[
/rescue/bectl
/rescue/bsdlabel
/rescue/bunzip2
/rescue/bzcat
/rescue/bzip2
/rescue/camcontrol
/rescue/cat
/rescue/ccdconfig
/rescue/chflags
/rescue/chgrp
/rescue/chio
/rescue/chmod
/rescue/chown
/rescue/chroot
/rescue/clri
/rescue/cp
/rescue/csh
/rescue/date
/rescue/dd
/rescue/devfs
/rescue/df
/rescue/dhclient
/rescue/disklabel
/rescue/dmesg
/rescue/dump
/rescue/dumpfs
/rescue/dumpon
/rescue/echo
/rescue/ed
/rescue/ex
/rescue/expr
/rescue/fastboot
/rescue/fasthalt
/rescue/fdisk
/rescue/fsck
/rescue/fsck_4.2bsd
/rescue/fsck_ffs
/rescue/fsck_msdosfs
/rescue/fsck_ufs
/rescue/fsdb
/rescue/fsirand
/rescue/gbde
/rescue/geom
/rescue/getfacl
/rescue/glabel
/rescue/gpart
/rescue/groups
/rescue/gunzip
/rescue/gzcat
/rescue/gzip
/rescue/halt
/rescue/head
/rescue/hostname
/rescue/id
/rescue/ifconfig
/rescue/init
/rescue/ipf
/rescue/iscsictl
/rescue/iscsid
/rescue/kenv
/rescue/kill
/rescue/kldconfig
/rescue/kldload
/rescue/kldstat
/rescue/kldunload
/rescue/ldconfig
/rescue/less
/rescue/link
/rescue/ln
/rescue/ls
/rescue/lzcat
/rescue/lzma
/rescue/md5
/rescue/mdconfig
/rescue/mdmfs
/rescue/mkdir
/rescue/mknod
/rescue/more
/rescue/mount
/rescue/mount_cd9660
/rescue/mount_msdosfs
/rescue/mount_nfs
/rescue/mount_nullfs
/rescue/mount_udf
/rescue/mount_unionfs
/rescue/mt
/rescue/mv
/rescue/nc
/rescue/newfs
/rescue/newfs_msdos
/rescue/nos-tun
/rescue/pgrep
/rescue/ping
/rescue/ping6
/rescue/pkill
/rescue/poweroff
/rescue/ps
/rescue/pwd
/rescue/rcorder
/rescue/rdump
/rescue/realpath
/rescue/reboot
/rescue/red
/rescue/rescue
/rescue/restore
/rescue/rm
/rescue/rmdir
/rescue/route
/rescue/routed
/rescue/rrestore
/rescue/rtquery
/rescue/rtsol
/rescue/savecore
/rescue/sed
/rescue/setfacl
/rescue/sh
/rescue/shutdown
/rescue/sleep
/rescue/spppcontrol
/rescue/stty
/rescue/swapon
/rescue/sync
/rescue/sysctl
/rescue/tail
/rescue/tar
/rescue/tcsh
/rescue/tee
/rescue/test
/rescue/tunefs
/rescue/umount
/rescue/unlink
/rescue/unlzma
/rescue/unxz
/rescue/unzstd
/rescue/vi
/rescue/whoami
/rescue/xz
/rescue/xzcat
/rescue/zcat
/rescue/zdb
/rescue/zfs
/rescue/zpool
/rescue/zstd
/rescue/zstdcat
/rescue/zstdmt
/sbin/fsck_4.2bsd
/sbin/fsck_ffs
/sbin/fsck_ufs
/sbin/fsdb
/sbin/ggatec
/usr/bin/bc
/usr/bin/dc
/usr/bin/openssl
/usr/bin/tail
/usr/include/openssl/opensslv.h
/usr/include/private/event1/event.h
/usr/lib/libalias.a
/usr/lib/libalias_p.a
/usr/lib/libcrypto.a
/usr/lib/libcrypto_p.a
/usr/lib/libfetch.a
/usr/lib/libfetch.so.6
/usr/lib/libfetch_p.a
/usr/lib/libprivateevent1.a
/usr/lib/libprivateevent1.so.1
/usr/lib/libprivateevent1_p.a
/usr/lib/libradius.a
/usr/lib/libradius.so.4
/usr/lib/libradius_p.a
/usr/lib/libssl.a
/usr/lib/libssl.so.111
/usr/lib/libssl_p.a
/usr/sbin/bhyve
/usr/sbin/ftp-proxy
/usr/sbin/hostapd
/usr/sbin/ntp-keygen
/usr/sbin/wpa_cli
/usr/sbin/wpa_supplicant
/usr/sbin/ypldap
/usr/share/certs/trusted/ACCVRAIZ1.pem
/usr/share/certs/trusted/AC_RAIZ_FNMT-RCM.pem
/usr/share/certs/trusted/Actalis_Authentication_Root_CA.pem
/usr/share/certs/trusted/AffirmTrust_Commercial.pem
/usr/share/certs/trusted/AffirmTrust_Networking.pem
/usr/share/certs/trusted/AffirmTrust_Premium.pem
/usr/share/certs/trusted/AffirmTrust_Premium_ECC.pem
/usr/share/certs/trusted/Amazon_Root_CA_1.pem
/usr/share/certs/trusted/Amazon_Root_CA_2.pem
/usr/share/certs/trusted/Amazon_Root_CA_3.pem
/usr/share/certs/trusted/Amazon_Root_CA_4.pem
/usr/share/certs/trusted/Atos_TrustedRoot_2011.pem
/usr/share/certs/trusted/Autoridad_de_Certificacion_Firmaprofesional_CIF_A62634068.pem
/usr/share/certs/trusted/Baltimore_CyberTrust_Root.pem
/usr/share/certs/trusted/Buypass_Class_2_Root_CA.pem
/usr/share/certs/trusted/Buypass_Class_3_Root_CA.pem
/usr/share/certs/trusted/CA_Disig_Root_R2.pem
/usr/share/certs/trusted/CFCA_EV_ROOT.pem
/usr/share/certs/trusted/COMODO_Certification_Authority.pem
/usr/share/certs/trusted/COMODO_ECC_Certification_Authority.pem
/usr/share/certs/trusted/COMODO_RSA_Certification_Authority.pem
/usr/share/certs/trusted/Certigna.pem
/usr/share/certs/trusted/Certigna_Root_CA.pem
/usr/share/certs/trusted/Certum_Trusted_Network_CA.pem
/usr/share/certs/trusted/Certum_Trusted_Network_CA_2.pem
/usr/share/certs/trusted/Comodo_AAA_Services_root.pem
/usr/share/certs/trusted/Cybertrust_Global_Root.pem
/usr/share/certs/trusted/D-TRUST_Root_Class_3_CA_2_2009.pem
/usr/share/certs/trusted/D-TRUST_Root_Class_3_CA_2_EV_2009.pem
/usr/share/certs/trusted/DST_Root_CA_X3.pem
/usr/share/certs/trusted/DigiCert_Assured_ID_Root_CA.pem
/usr/share/certs/trusted/DigiCert_Assured_ID_Root_G2.pem
/usr/share/certs/trusted/DigiCert_Assured_ID_Root_G3.pem
/usr/share/certs/trusted/DigiCert_Global_Root_CA.pem
/usr/share/certs/trusted/DigiCert_Global_Root_G2.pem
/usr/share/certs/trusted/DigiCert_Global_Root_G3.pem
/usr/share/certs/trusted/DigiCert_High_Assurance_EV_Root_CA.pem
/usr/share/certs/trusted/DigiCert_Trusted_Root_G4.pem
/usr/share/certs/trusted/E-Tugra_Certification_Authority.pem
/usr/share/certs/trusted/Entrust_Root_Certification_Authority.pem
/usr/share/certs/trusted/Entrust_Root_Certification_Authority_-_EC1.pem
/usr/share/certs/trusted/Entrust_Root_Certification_Authority_-_G2.pem
/usr/share/certs/trusted/Entrust_Root_Certification_Authority_-_G4.pem
/usr/share/certs/trusted/Entrust_net_Premium_2048_Secure_Server_CA.pem
/usr/share/certs/trusted/GDCA_TrustAUTH_R5_ROOT.pem
/usr/share/certs/trusted/GTS_Root_R1.pem
/usr/share/certs/trusted/GTS_Root_R2.pem
/usr/share/certs/trusted/GTS_Root_R3.pem
/usr/share/certs/trusted/GTS_Root_R4.pem
/usr/share/certs/trusted/GlobalSign_ECC_Root_CA_-_R4.pem
/usr/share/certs/trusted/GlobalSign_ECC_Root_CA_-_R5.pem
/usr/share/certs/trusted/GlobalSign_Root_CA.pem
/usr/share/certs/trusted/GlobalSign_Root_CA_-_R2.pem
/usr/share/certs/trusted/GlobalSign_Root_CA_-_R3.pem
/usr/share/certs/trusted/GlobalSign_Root_CA_-_R6.pem
/usr/share/certs/trusted/Go_Daddy_Class_2_CA.pem
/usr/share/certs/trusted/Go_Daddy_Root_Certificate_Authority_-_G2.pem
/usr/share/certs/trusted/Hellenic_Academic_and_Research_Institutions_ECC_RootCA_2015.pem
/usr/share/certs/trusted/Hellenic_Academic_and_Research_Institutions_RootCA_2011.pem
/usr/share/certs/trusted/Hellenic_Academic_and_Research_Institutions_RootCA_2015.pem
/usr/share/certs/trusted/Hongkong_Post_Root_CA_1.pem
/usr/share/certs/trusted/Hongkong_Post_Root_CA_3.pem
/usr/share/certs/trusted/ISRG_Root_X1.pem
/usr/share/certs/trusted/IdenTrust_Commercial_Root_CA_1.pem
/usr/share/certs/trusted/IdenTrust_Public_Sector_Root_CA_1.pem
/usr/share/certs/trusted/Izenpe_com.pem
/usr/share/certs/trusted/Microsec_e-Szigno_Root_CA_2009.pem
/usr/share/certs/trusted/Microsoft_ECC_Root_Certificate_Authority_2017.pem
/usr/share/certs/trusted/Microsoft_RSA_Root_Certificate_Authority_2017.pem
/usr/share/certs/trusted/NAVER_Global_Root_Certification_Authority.pem
/usr/share/certs/trusted/NetLock_Arany__Class_Gold__F__tan__s__tv__ny.pem
/usr/share/certs/trusted/Network_Solutions_Certificate_Authority.pem
/usr/share/certs/trusted/OISTE_WISeKey_Global_Root_GB_CA.pem
/usr/share/certs/trusted/OISTE_WISeKey_Global_Root_GC_CA.pem
/usr/share/certs/trusted/QuoVadis_Root_CA_1_G3.pem
/usr/share/certs/trusted/QuoVadis_Root_CA_2.pem
/usr/share/certs/trusted/QuoVadis_Root_CA_2_G3.pem
/usr/share/certs/trusted/QuoVadis_Root_CA_3.pem
/usr/share/certs/trusted/QuoVadis_Root_CA_3_G3.pem
/usr/share/certs/trusted/SSL_com_EV_Root_Certification_Authority_ECC.pem
/usr/share/certs/trusted/SSL_com_EV_Root_Certification_Authority_RSA_R2.pem
/usr/share/certs/trusted/SSL_com_Root_Certification_Authority_ECC.pem
/usr/share/certs/trusted/SSL_com_Root_Certification_Authority_RSA.pem
/usr/share/certs/trusted/SZAFIR_ROOT_CA2.pem
/usr/share/certs/trusted/SecureSign_RootCA11.pem
/usr/share/certs/trusted/SecureTrust_CA.pem
/usr/share/certs/trusted/Secure_Global_CA.pem
/usr/share/certs/trusted/Security_Communication_RootCA2.pem
/usr/share/certs/trusted/Security_Communication_Root_CA.pem
/usr/share/certs/trusted/Staat_der_Nederlanden_EV_Root_CA.pem
/usr/share/certs/trusted/Starfield_Class_2_CA.pem
/usr/share/certs/trusted/Starfield_Root_Certificate_Authority_-_G2.pem
/usr/share/certs/trusted/Starfield_Services_Root_Certificate_Authority_-_G2.pem
/usr/share/certs/trusted/SwissSign_Gold_CA_-_G2.pem
/usr/share/certs/trusted/SwissSign_Silver_CA_-_G2.pem
/usr/share/certs/trusted/T-TeleSec_GlobalRoot_Class_2.pem
/usr/share/certs/trusted/T-TeleSec_GlobalRoot_Class_3.pem
/usr/share/certs/trusted/TUBITAK_Kamu_SM_SSL_Kok_Sertifikasi_-_Surum_1.pem
/usr/share/certs/trusted/TWCA_Global_Root_CA.pem
/usr/share/certs/trusted/TWCA_Root_Certification_Authority.pem
/usr/share/certs/trusted/TeliaSonera_Root_CA_v1.pem
/usr/share/certs/trusted/TrustCor_ECA-1.pem
/usr/share/certs/trusted/TrustCor_RootCert_CA-1.pem
/usr/share/certs/trusted/TrustCor_RootCert_CA-2.pem
/usr/share/certs/trusted/Trustwave_Global_Certification_Authority.pem
/usr/share/certs/trusted/Trustwave_Global_ECC_P256_Certification_Authority.pem
/usr/share/certs/trusted/Trustwave_Global_ECC_P384_Certification_Authority.pem
/usr/share/certs/trusted/UCA_Extended_Validation_Root.pem
/usr/share/certs/trusted/UCA_Global_G2_Root.pem
/usr/share/certs/trusted/USERTrust_ECC_Certification_Authority.pem
/usr/share/certs/trusted/USERTrust_RSA_Certification_Authority.pem
/usr/share/certs/trusted/XRamp_Global_CA_Root.pem
/usr/share/certs/trusted/certSIGN_ROOT_CA.pem
/usr/share/certs/trusted/certSIGN_Root_CA_G2.pem
/usr/share/certs/trusted/e-Szigno_Root_CA_2017.pem
/usr/share/certs/trusted/ePKI_Root_Certification_Authority.pem
/usr/share/certs/trusted/emSign_ECC_Root_CA_-_C3.pem
/usr/share/certs/trusted/emSign_ECC_Root_CA_-_G3.pem
/usr/share/certs/trusted/emSign_Root_CA_-_C1.pem
/usr/share/certs/trusted/emSign_Root_CA_-_G1.pem
/usr/share/zoneinfo/Asia/Amman
/usr/share/zoneinfo/Asia/Gaza
/usr/share/zoneinfo/Asia/Hebron
/usr/share/zoneinfo/Pacific/Apia
/usr/share/zoneinfo/Pacific/Fiji
Installing updates...Scanning //usr/share/certs/blacklisted for certificates...
Scanning //usr/share/certs/trusted for certificates...
 done.
=====>  Stop the pot postgresql-patroni-amd64-13_0
=====>  Remove epair0[a|b] network interfaces
=====>  unmount /mnt/srv/pot/jails/postgresql-patroni-amd64-13_0/m/tmp
=====>  unmount /mnt/srv/pot/jails/postgresql-patroni-amd64-13_0/m/dev
=====>  Flavour: postgresql-patroni
=====>  Executing postgresql-patroni pot commands on postgresql-patroni-amd64-13_0
=====>  mount /mnt/srv/pot/jails/postgresql-patroni-amd64-13_0/m/tmp
=====>  Source /usr/local/etc/pot/flavours/postgresql-patroni.d/local copied in the pot postgresql-patroni-amd64-13_0
=====>  unmount /mnt/srv/pot/jails/postgresql-patroni-amd64-13_0/m/tmp
=====>  /mnt/srv/pot/jails/postgresql-patroni-amd64-13_0/m/dev is already unmounted
=====>  Starting postgresql-patroni-amd64-13_0 pot for the initial bootstrap
=====>  mount /mnt/srv/pot/jails/postgresql-patroni-amd64-13_0/m/tmp
defaultrouter: 10.192.0.1 -> 10.192.0.1
===>  Starting the pot postgresql-patroni-amd64-13_0
ELF ldconfig path: /lib /usr/lib /usr/lib/compat
32-bit compatibility ldconfig path: /usr/lib32
Starting Network: lo0 epair0b.
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
	options=680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
	inet6 ::1 prefixlen 128
	inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1
	inet 127.0.0.1 netmask 0xff000000
	groups: lo
	nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
epair0b: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
	options=8<VLAN_MTU>
	ether 02:aa:5b:1e:5b:0b
	inet 10.192.0.5 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
Updating /var/run/os-release done.
Creating and/or trimming log files.
Clearing /tmp (X related).
Updating motd:.
Starting syslogd.
Starting sendmail_submit.
Starting sendmail_msp_queue.
Starting cron.

Mon Feb 28 21:18:42 UTC 2022
/usr/local/etc/pot/flavours/postgresql-patroni.sh -> /mnt/srv/pot/jails/postgresql-patroni-amd64-13_0/m/tmp/postgresql-patroni.sh
=====>  Executing postgresql-patroni script on postgresql-patroni-amd64-13_0
Creating /var/log/cook.log
Step 1: Bootstrap package repo
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] Installing pkg-1.17.5...
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] Extracting pkg-1.17.5: .......... done
Bootstrapping pkg from pkg+http://pkg.FreeBSD.org/FreeBSD:13:amd64/quarterly, please wait...
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: Disable sshd
sshd disabled in /etc/rc.conf
Step 6: Create /usr/local/etc/rc.d
Step 7: Update package repository
Updating FreeBSD repository catalogue...
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] Fetching meta.conf: . done
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] Fetching packagesite.pkg: .......... done
Processing entries: .......... done
FreeBSD repository update completed. 31373 packages processed.
All repositories are up to date.
Step 8: Install package sudo
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
Updating database digests format: . done
The following 3 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
	gettext-runtime: 0.21
	indexinfo: 0.3.1
	sudo: 1.9.8p2

Number of packages to be installed: 3

The process will require 7 MiB more space.
2 MiB to be downloaded.
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [1/3] Fetching sudo-1.9.8p2.pkg: .......... done
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [2/3] Fetching gettext-runtime-0.21.pkg: .......... done
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [3/3] Fetching indexinfo-0.3.1.pkg: . done
Checking integrity... done (0 conflicting)
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [1/3] Installing indexinfo-0.3.1...
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [1/3] Extracting indexinfo-0.3.1: .... done
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [2/3] Installing gettext-runtime-0.21...
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [2/3] Extracting gettext-runtime-0.21: .......... done
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [3/3] Installing sudo-1.9.8p2...
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [3/3] Extracting sudo-1.9.8p2: .......... done
Step 9: 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):

New packages to be INSTALLED:
	openssl: 1.1.1m_1,1

Number of packages to be installed: 1

The process will require 14 MiB more space.
4 MiB to be downloaded.
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [1/1] Fetching openssl-1.1.1m_1,1.pkg: .......... done
Checking integrity... done (0 conflicting)
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [1/1] Installing openssl-1.1.1m_1,1...
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [1/1] Extracting openssl-1.1.1m_1,1: .......... done
Step 10: Install package nginx
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:
	nginx: 1.20.2_3,2
	pcre: 8.45

Number of packages to be installed: 2

The process will require 8 MiB more space.
2 MiB to be downloaded.
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [1/2] Fetching nginx-1.20.2_3,2.pkg: .......... done
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [2/2] Fetching pcre-8.45.pkg: .......... done
Checking integrity... done (0 conflicting)
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [1/2] Installing pcre-8.45...
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [1/2] Extracting pcre-8.45: .......... done
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [2/2] Installing nginx-1.20.2_3,2...
===> Creating groups.
Using existing group 'www'.
===> Creating users
Using existing user 'www'.
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [2/2] Extracting nginx-1.20.2_3,2: .......... done
=====
Message from nginx-1.20.2_3,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.
Step 11: Install package vault
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:
	vault: 1.8.2

Number of packages to be installed: 1

The process will require 156 MiB more space.
49 MiB to be downloaded.
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [1/1] Fetching vault-1.8.2.pkg: .......... done
Checking integrity... done (0 conflicting)
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [1/1] Installing vault-1.8.2...
===> Creating groups.
Creating group 'vault' with gid '471'.
===> Creating users
Creating user 'vault' with uid '471'.
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [1/1] Extracting vault-1.8.2: ..... done
=====
Message from vault-1.8.2:

--
The vault user created by the vault package is now a member of the daemon
class, which will allow it to use mlock() when started by the rc script. This
will not be reflected in systems where the user already exists. Please add the
vault user to the daemon class manually by running:

pw usermod -L daemon -n vault

or delete the user and reinstall the package.

You may also need to increase memorylocked for the daemon class in
/etc/rc.conf to more than 1024M (the default) or more:

vault_limits_mlock="2048M"

Or to disable mlock, add:

disable_mlock = 1

to /usr/local/etc/vault.hcl
Step 12: 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.10.3

Number of packages to be installed: 1

The process will require 90 MiB more space.
28 MiB to be downloaded.
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [1/1] Fetching consul-1.10.3.pkg: .......... done
Checking integrity... done (0 conflicting)
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [1/1] Installing consul-1.10.3...
===> Creating groups.
Creating group 'consul' with gid '469'.
===> Creating users
Creating user 'consul' with uid '469'.
===> Creating homedir(s)
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [1/1] Extracting consul-1.10.3: ..... done
Step 13: Install package consul-template
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-template: 0.27.2

Number of packages to be installed: 1

The process will require 10 MiB more space.
3 MiB to be downloaded.
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [1/1] Fetching consul-template-0.27.2.pkg: .......... done
Checking integrity... done (0 conflicting)
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [1/1] Installing consul-template-0.27.2...
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [1/1] Extracting consul-template-0.27.2: ..... done
Step 14: Patching consul-template rc scripts
Step 15: 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.2.2

Number of packages to be installed: 1

The process will require 11 MiB more space.
3 MiB to be downloaded.
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [1/1] Fetching node_exporter-1.2.2.pkg: .......... done
Checking integrity... done (0 conflicting)
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [1/1] Installing node_exporter-1.2.2...
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [1/1] Extracting node_exporter-1.2.2: .......... done
=====
Message from node_exporter-1.2.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 16: Install package syslog-ng
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
The following 14 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
	ca_root_nss: 3.71
	curl: 7.80.0
	e2fsprogs-libuuid: 1.46.5
	glib: 2.70.4,2
	json-c: 0.15_1
	libffi: 3.3_1
	libiconv: 1.16
	libnghttp2: 1.46.0
	libssh2: 1.10.0,3
	libxml2: 2.9.12
	mpdecimal: 2.5.1
	python38: 3.8.12_1
	readline: 8.1.1
	syslog-ng: 3.35.1

Number of packages to be installed: 14

The process will require 160 MiB more space.
25 MiB to be downloaded.
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [1/14] Fetching syslog-ng-3.35.1.pkg: .......... done
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [2/14] Fetching e2fsprogs-libuuid-1.46.5.pkg: ..... done
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [3/14] Fetching curl-7.80.0.pkg: .......... done
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [4/14] Fetching libnghttp2-1.46.0.pkg: .......... done
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [5/14] Fetching libssh2-1.10.0,3.pkg: .......... done
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [6/14] Fetching ca_root_nss-3.71.pkg: .......... done
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [7/14] Fetching json-c-0.15_1.pkg: ........ done
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [8/14] Fetching glib-2.70.4,2.pkg: .......... done
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [9/14] Fetching libxml2-2.9.12.pkg: .......... done
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [10/14] Fetching python38-3.8.12_1.pkg: .......... done
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [11/14] Fetching mpdecimal-2.5.1.pkg: .......... done
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [12/14] Fetching readline-8.1.1.pkg: .......... done
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [13/14] Fetching libffi-3.3_1.pkg: ..... done
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [14/14] Fetching libiconv-1.16.pkg: .......... done
Checking integrity... done (0 conflicting)
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [1/14] Installing mpdecimal-2.5.1...
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [1/14] Extracting mpdecimal-2.5.1: .......... done
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [2/14] Installing readline-8.1.1...
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [2/14] Extracting readline-8.1.1: .......... done
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [3/14] Installing libffi-3.3_1...
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [3/14] Extracting libffi-3.3_1: .......... done
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [4/14] Installing libnghttp2-1.46.0...
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [4/14] Extracting libnghttp2-1.46.0: .......... done
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [5/14] Installing libssh2-1.10.0,3...
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [5/14] Extracting libssh2-1.10.0,3: .......... done
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [6/14] Installing ca_root_nss-3.71...
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [6/14] Extracting ca_root_nss-3.71: ........ done
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [7/14] Installing libxml2-2.9.12...
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [7/14] Extracting libxml2-2.9.12: .......... done
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [8/14] Installing python38-3.8.12_1...
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [8/14] Extracting python38-3.8.12_1: .......... done
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [9/14] Installing libiconv-1.16...
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [9/14] Extracting libiconv-1.16: .......... done
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [10/14] Installing e2fsprogs-libuuid-1.46.5...
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [10/14] Extracting e2fsprogs-libuuid-1.46.5: .......... done
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [11/14] Installing curl-7.80.0...
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [11/14] Extracting curl-7.80.0: .......... done
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [12/14] Installing json-c-0.15_1...
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [12/14] Extracting json-c-0.15_1: .......... done
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [13/14] Installing glib-2.70.4,2...
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [13/14] Extracting glib-2.70.4,2: .......... done
No schema files found: doing nothing.
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [14/14] Installing syslog-ng-3.35.1...
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [14/14] Extracting syslog-ng-3.35.1: .......... done
=====
Message from ca_root_nss-3.71:

--
FreeBSD does not, and can not warrant that the certification authorities
whose certificates are included in this package have in any way been
audited for trustworthiness or RFC 3647 compliance.

Assessment and verification of trust is the complete responsibility of the
system administrator.


This package installs symlinks to support root certificates discovery by
default for software that uses OpenSSL.

This enables SSL Certificate Verification by client software without manual
intervention.

If you prefer to do this manually, replace the following symlinks with
either an empty file or your site-local certificate bundle.

  * /etc/ssl/cert.pem
  * /usr/local/etc/ssl/cert.pem
  * /usr/local/openssl/cert.pem
=====
Message from python38-3.8.12_1:

--
Note that some standard Python modules are provided as separate ports
as they require additional dependencies. They are available as:

py38-gdbm       databases/py-gdbm@py38
py38-sqlite3    databases/py-sqlite3@py38
py38-tkinter    x11-toolkits/py-tkinter@py38
=====
Message from syslog-ng-3.35.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 17: Install package postgresql-server
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
The following 7 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
	icu: 70.1_1,1
	libedit: 3.1.20210216,1
	llvm11: 11.0.1_4
	lua52: 5.2.4
	perl5: 5.32.1_1
	postgresql13-client: 13.5
	postgresql13-server: 13.5

Number of packages to be installed: 7

The process will require 873 MiB more space.
148 MiB to be downloaded.
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [1/7] Fetching postgresql13-server-13.5.pkg: .......... done
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [2/7] Fetching llvm11-11.0.1_4.pkg: .......... done
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [3/7] Fetching perl5-5.32.1_1.pkg: .......... done
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [4/7] Fetching lua52-5.2.4.pkg: .......... done
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [5/7] Fetching libedit-3.1.20210216,1.pkg: .......... done
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [6/7] Fetching icu-70.1_1,1.pkg: .......... done
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [7/7] Fetching postgresql13-client-13.5.pkg: .......... done
Checking integrity... done (0 conflicting)
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [1/7] Installing libedit-3.1.20210216,1...
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [1/7] Extracting libedit-3.1.20210216,1: .......... done
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [2/7] Installing perl5-5.32.1_1...
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [2/7] Extracting perl5-5.32.1_1: .......... done
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [3/7] Installing lua52-5.2.4...
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [3/7] Extracting lua52-5.2.4: ......... done
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [4/7] Installing llvm11-11.0.1_4...
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [4/7] Extracting llvm11-11.0.1_4: .......... done
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [5/7] Installing icu-70.1_1,1...
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [5/7] Extracting icu-70.1_1,1: .......... done
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [6/7] Installing postgresql13-client-13.5...
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [6/7] Extracting postgresql13-client-13.5: .......... done
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [7/7] Installing postgresql13-server-13.5...
===> Creating groups.
Creating group 'postgres' with gid '770'.
===> Creating users
Creating user 'postgres' with uid '770'.
===> Creating homedir(s)

  =========== BACKUP YOUR DATA! =============
  As always, backup your data before
  upgrading. If the upgrade leads to a higher
  major revision (e.g. 9.6 -> 10), a dump
  and restore of all databases is
  required. This is *NOT* done by the port!
  See https://www.postgresql.org/docs/current/upgrading.html
  ===========================================
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [7/7] Extracting postgresql13-server-13.5: .......... done
=====
Message from postgresql13-client-13.5:

--
The PostgreSQL port has a collection of "side orders":

postgresql-docs
  For all of the html documentation

p5-Pg
  A perl5 API for client access to PostgreSQL databases.

postgresql-tcltk 
  If you want tcl/tk client support.

postgresql-jdbc
  For Java JDBC support.

postgresql-odbc
  For client access from unix applications using ODBC as access
  method. Not needed to access unix PostgreSQL servers from Win32
  using ODBC. See below.

ruby-postgres, py-psycopg2
  For client access to PostgreSQL databases using the ruby & python
  languages.

postgresql-plperl, postgresql-pltcl & postgresql-plruby
  For using perl5, tcl & ruby as procedural languages.

postgresql-contrib
  Lots of contributed utilities, postgresql functions and
  datatypes. There you find pg_standby, pgcrypto and many other cool
  things.

etc...
=====
Message from postgresql13-server-13.5:

--
For procedural languages and postgresql functions, please note that
you might have to update them when updating the server.

If you have many tables and many clients running, consider raising
kern.maxfiles using sysctl(8), or reconfigure your kernel
appropriately.

The port is set up to use autovacuum for new databases, but you might
also want to vacuum and perhaps backup your database regularly. There
is a periodic script, /usr/local/etc/periodic/daily/502.pgsql, that
you may find useful. You can use it to backup and perform vacuum on all
databases nightly. Per default, it performs `vacuum analyze'. See the
script for instructions. For autovacuum settings, please review
~postgres/data/postgresql.conf.

If you plan to access your PostgreSQL server using ODBC, please
consider running the SQL script /usr/local/share/postgresql/odbc.sql
to get the functions required for ODBC compliance.

Please note that if you use the rc script,
/usr/local/etc/rc.d/postgresql, to initialize the database, unicode
(UTF-8) will be used to store character data by default.  Set
postgresql_initdb_flags or use login.conf settings described below to
alter this behaviour. See the start rc script for more info.

To set limits, environment stuff like locale and collation and other
things, you can set up a class in /etc/login.conf before initializing
the database. Add something similar to this to /etc/login.conf:
---
postgres:\
	:lang=en_US.UTF-8:\
	:setenv=LC_COLLATE=C:\
	:tc=default:
---
and run `cap_mkdb /etc/login.conf'.
Then add 'postgresql_class="postgres"' to /etc/rc.conf.

======================================================================

To initialize the database, run

  /usr/local/etc/rc.d/postgresql initdb

You can then start PostgreSQL by running:

  /usr/local/etc/rc.d/postgresql start

For postmaster settings, see ~postgres/data/postgresql.conf

NB. FreeBSD's PostgreSQL port logs to syslog by default
    See ~postgres/data/postgresql.conf for more info

NB. If you're not using a checksumming filesystem like ZFS, you might
    wish to enable data checksumming. It can be enabled during
    the initdb phase, by adding the "--data-checksums" flag to
    the postgresql_initdb_flags rcvar. Otherwise you can enable it later by
    pg_checksums.  Check the initdb(1) manpage for more info
    and make sure you understand the performance implications.

======================================================================

To run PostgreSQL at startup, add
'postgresql_enable="YES"' to /etc/rc.conf
Step 18: Install package postgresql-client
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 19: Install package python37
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 20: Install package python3-pip
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:
	py38-pip: 20.3.4
	py38-setuptools: 57.0.0

Number of packages to be installed: 2

The process will require 19 MiB more space.
3 MiB to be downloaded.
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [1/2] Fetching py38-pip-20.3.4.pkg: .......... done
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [2/2] Fetching py38-setuptools-57.0.0.pkg: .......... done
Checking integrity... done (0 conflicting)
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [1/2] Installing py38-setuptools-57.0.0...
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [1/2] Extracting py38-setuptools-57.0.0: .......... done
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [2/2] Installing py38-pip-20.3.4...
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [2/2] Extracting py38-pip-20.3.4: .......... done
=====
Message from py38-pip-20.3.4:

--
pip MUST ONLY be used:

 * With the --user flag, OR
 * To install or manage Python packages in virtual environments

Failure to follow this warning can and will result in an inconsistent
system-wide Python environment (LOCALBASE/lib/pythonX.Y/site-packages) and
cause errors.

Avoid using pip as root unless you know what you're doing.
Step 21: Install package python-consul2
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
The following 12 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
	py38-certifi: 2021.10.8
	py38-cffi: 1.15.0
	py38-chardet: 4.0.0,1
	py38-cryptography: 3.3.2
	py38-idna: 2.10
	py38-openssl: 20.0.1
	py38-pycparser: 2.21
	py38-pysocks: 1.7.1
	py38-python-consul2: 0.1.5
	py38-requests: 2.25.1
	py38-six: 1.16.0
	py38-urllib3: 1.26.7,1

Number of packages to be installed: 12

The process will require 10 MiB more space.
2 MiB to be downloaded.
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [1/12] Fetching py38-python-consul2-0.1.5.pkg: ...... done
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [2/12] Fetching py38-requests-2.25.1.pkg: .......... done
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [3/12] Fetching py38-chardet-4.0.0,1.pkg: .......... done
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [4/12] Fetching py38-certifi-2021.10.8.pkg: .......... done
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [5/12] Fetching py38-urllib3-1.26.7,1.pkg: .......... done
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [6/12] Fetching py38-openssl-20.0.1.pkg: .......... done
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [7/12] Fetching py38-cryptography-3.3.2.pkg: .......... done
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [8/12] Fetching py38-six-1.16.0.pkg: ... done
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [9/12] Fetching py38-cffi-1.15.0.pkg: .......... done
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [10/12] Fetching py38-pycparser-2.21.pkg: .......... done
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [11/12] Fetching py38-pysocks-1.7.1.pkg: ... done
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [12/12] Fetching py38-idna-2.10.pkg: ......... done
Checking integrity... done (0 conflicting)
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [1/12] Installing py38-pycparser-2.21...
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [1/12] Extracting py38-pycparser-2.21: .......... done
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [2/12] Installing py38-six-1.16.0...
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [2/12] Extracting py38-six-1.16.0: .......... done
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [3/12] Installing py38-cffi-1.15.0...
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [3/12] Extracting py38-cffi-1.15.0: .......... done
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [4/12] Installing py38-cryptography-3.3.2...
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [4/12] Extracting py38-cryptography-3.3.2: .......... done
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [5/12] Installing py38-certifi-2021.10.8...
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [5/12] Extracting py38-certifi-2021.10.8: .......... done
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [6/12] Installing py38-openssl-20.0.1...
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [6/12] Extracting py38-openssl-20.0.1: .......... done
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [7/12] Installing py38-pysocks-1.7.1...
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [7/12] Extracting py38-pysocks-1.7.1: .......... done
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [8/12] Installing py38-idna-2.10...
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [8/12] Extracting py38-idna-2.10: .......... done
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [9/12] Installing py38-chardet-4.0.0,1...
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [9/12] Extracting py38-chardet-4.0.0,1: .......... done
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [10/12] Installing py38-urllib3-1.26.7,1...
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [10/12] Extracting py38-urllib3-1.26.7,1: .......... done
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [11/12] Installing py38-requests-2.25.1...
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [11/12] Extracting py38-requests-2.25.1: .......... done
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [12/12] Installing py38-python-consul2-0.1.5...
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [12/12] Extracting py38-python-consul2-0.1.5: .......... done
=====
Message from py38-urllib3-1.26.7,1:

--
Since version 1.25 HTTPS connections are now verified by default which is done
via "cert_reqs = 'CERT_REQUIRED'".  While certificate verification can be
disabled via "cert_reqs = 'CERT_NONE'", it's highly recommended to leave it on.

Various consumers of net/py-urllib3 already have implemented routines that
either explicitly enable or disable HTTPS certificate verification (e.g. via
configuration settings, CLI arguments, etc.).

Yet it may happen that there are still some consumers which don't explicitly
enable/disable certificate verification for HTTPS connections which could then
lead to errors (as is often the case with self-signed certificates).

In case of an error one should try first to temporarily disable certificate
verification of the problematic urllib3 consumer to see if that approach will
remedy the issue.
Step 22: Install package jq
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:
	jq: 1.6
	oniguruma: 6.9.7.1

Number of packages to be installed: 2

The process will require 2 MiB more space.
500 KiB to be downloaded.
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [1/2] Fetching jq-1.6.pkg: .......... done
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [2/2] Fetching oniguruma-6.9.7.1.pkg: .......... done
Checking integrity... done (0 conflicting)
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [1/2] Installing oniguruma-6.9.7.1...
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [1/2] Extracting oniguruma-6.9.7.1: .......... done
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [2/2] Installing jq-1.6...
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [2/2] Extracting jq-1.6: .......... done
Step 23: Install package jo
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:
	jo: 1.4

Number of packages to be installed: 1

19 KiB to be downloaded.
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [1/1] Fetching jo-1.4.pkg: ... done
Checking integrity... done (0 conflicting)
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [1/1] Installing jo-1.4...
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [1/1] Extracting jo-1.4: ...... done
Step 24: Install package curl
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 25: Install pip package psycopg2-binary
Collecting psycopg2-binary
  Downloading psycopg2-binary-2.9.3.tar.gz (380 kB)
Using legacy 'setup.py install' for psycopg2-binary, since package 'wheel' is not installed.
Installing collected packages: psycopg2-binary
    Running setup.py install for psycopg2-binary: started
    Running setup.py install for psycopg2-binary: finished with status 'done'
Successfully installed psycopg2-binary-2.9.3
Step 26: Install pip package patroni
Collecting patroni
  Downloading patroni-2.1.3-py3-none-any.whl (222 kB)
Collecting psutil>=2.0.0
  Downloading psutil-5.9.0.tar.gz (478 kB)
Collecting PyYAML
  Downloading PyYAML-6.0.tar.gz (124 kB)
  Installing build dependencies: started
  Installing build dependencies: finished with status 'done'
  Getting requirements to build wheel: started
  Getting requirements to build wheel: finished with status 'done'
    Preparing wheel metadata: started
    Preparing wheel metadata: finished with status 'done'
Requirement already satisfied: urllib3!=1.21,>=1.19.1 in /usr/local/lib/python3.8/site-packages (from patroni) (1.26.7)
Requirement already satisfied: six>=1.7 in /usr/local/lib/python3.8/site-packages (from patroni) (1.16.0)
Collecting prettytable>=0.7
  Downloading prettytable-3.1.1-py3-none-any.whl (26 kB)
Collecting ydiff>=1.2.0
  Downloading ydiff-1.2.tar.gz (42 kB)
Collecting python-dateutil
  Downloading python_dateutil-2.8.2-py2.py3-none-any.whl (247 kB)
Collecting click>=4.1
  Downloading click-8.0.4-py3-none-any.whl (97 kB)
Collecting wcwidth
  Downloading wcwidth-0.2.5-py2.py3-none-any.whl (30 kB)
Using legacy 'setup.py install' for psutil, since package 'wheel' is not installed.
Using legacy 'setup.py install' for ydiff, since package 'wheel' is not installed.
Building wheels for collected packages: PyYAML
  Building wheel for PyYAML (PEP 517): started
  Building wheel for PyYAML (PEP 517): finished with status 'done'
  Created wheel for PyYAML: filename=PyYAML-6.0-cp38-cp38-freebsd_13_0_release_p7_amd64.whl size=45345 sha256=8dca3bb075400132932167a7a8a514317daa069a76348dd9eee1d4dbc142a9f2
  Stored in directory: /root/.cache/pip/wheels/52/84/66/50912fd7bf1639a31758e40bd4312602e104a8eca1e0da9645
Successfully built PyYAML
Installing collected packages: wcwidth, ydiff, PyYAML, python-dateutil, psutil, prettytable, click, patroni
    Running setup.py install for ydiff: started
    Running setup.py install for ydiff: finished with status 'done'
    Running setup.py install for psutil: started
    Running setup.py install for psutil: finished with status 'done'
Successfully installed PyYAML-6.0 click-8.0.4 patroni-2.1.3 prettytable-3.1.1 psutil-5.9.0 python-dateutil-2.8.2 wcwidth-0.2.5 ydiff-1.2
Step 27: Fetch and install patroni tls server name patch
Step 28: Install package git-lite
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
The following 3 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
	expat: 2.4.4
	git-lite: 2.34.1
	pcre2: 10.39

Number of packages to be installed: 3

The process will require 35 MiB more space.
6 MiB to be downloaded.
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [1/3] Fetching git-lite-2.34.1.pkg: .......... done
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [2/3] Fetching expat-2.4.4.pkg: .......... done
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [3/3] Fetching pcre2-10.39.pkg: .......... done
Checking integrity... done (0 conflicting)
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [1/3] Installing expat-2.4.4...
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [1/3] Extracting expat-2.4.4: .......... done
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [2/3] Installing pcre2-10.39...
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [2/3] Extracting pcre2-10.39: .......... done
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [3/3] Installing git-lite-2.34.1...
===> Creating groups.
Creating group 'git_daemon' with gid '964'.
===> Creating users
Creating user 'git_daemon' with uid '964'.
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [3/3] Extracting git-lite-2.34.1: .......... done
=====
Message from git-lite-2.34.1:

--
If you installed the GITWEB option please follow these instructions:

In the directory /usr/local/share/examples/git/gitweb you can find all files to
make gitweb work as a public repository on the web.

All you have to do to make gitweb work is:
1) Please be sure you're able to execute CGI scripts in
   /usr/local/share/examples/git/gitweb.
2) Set the GITWEB_CONFIG variable in your webserver's config to
   /usr/local/etc/git/gitweb.conf. This variable is passed to gitweb.cgi.
3) Restart server.


If you installed the CONTRIB option please note that the scripts are
installed in /usr/local/share/git-core/contrib. Some of them require
other ports to be installed (perl, python, etc), which you may need to
install manually.
Step 29: Install package go
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:
	go: 1.17.5,1

Number of packages to be installed: 1

The process will require 301 MiB more space.
77 MiB to be downloaded.
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [1/1] Fetching go-1.17.5,1.pkg: .......... done
Checking integrity... done (0 conflicting)
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [1/1] Installing go-1.17.5,1...
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [1/1] Extracting go-1.17.5,1: .......... done
Step 30: Install package gmake
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:
	gmake: 4.3_2

Number of packages to be installed: 1

The process will require 2 MiB more space.
416 KiB to be downloaded.
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [1/1] Fetching gmake-4.3_2.pkg: .......... done
Checking integrity... done (0 conflicting)
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [1/1] Installing gmake-4.3_2...
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [1/1] Extracting gmake-4.3_2: .......... done
Step 31: Fetch postgres_exporter sources
Cloning into 'postgres_exporter'...
Note: switching to '6cff384d7433bcb1104efe3b496cd27c0658eb09'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:

  git switch -c <new-branch-name>

Or undo this operation with:

  git switch -

Turn off this advice by setting config variable advice.detachedHead to false

Step 32: Build postgres_exporter
HEAD is now at 6cff384 Merge pull request #600 from prometheus-community/superq/0.10.1
curl -s -L https://github.com/prometheus/promu/releases/download/v0.13.0/promu-0.13.0.freebsd-amd64.tar.gz | tar -xvzf - -C /tmp/tmp.cb5UFFr9
x promu-0.13.0.freebsd-amd64/
x promu-0.13.0.freebsd-amd64/LICENSE
x promu-0.13.0.freebsd-amd64/NOTICE
x promu-0.13.0.freebsd-amd64/promu
mkdir -p /root/go/bin
cp /tmp/tmp.cb5UFFr9/promu-0.13.0.freebsd-amd64/promu /root/go/bin/promu
rm -r /tmp/tmp.cb5UFFr9
>> building binaries
GO111MODULE=on /root/go/bin/promu build --prefix /tmp/postgres_exporter 
 >   postgres_exporter
go: downloading github.com/blang/semver v3.5.1+incompatible
go: downloading github.com/go-kit/log v0.2.0
go: downloading github.com/lib/pq v1.10.4
go: downloading github.com/prometheus/client_golang v1.11.0
go: downloading github.com/prometheus/common v0.32.1
go: downloading github.com/prometheus/exporter-toolkit v0.7.1
go: downloading gopkg.in/alecthomas/kingpin.v2 v2.2.6
go: downloading gopkg.in/yaml.v2 v2.4.0
go: downloading github.com/go-logfmt/logfmt v0.5.1
go: downloading github.com/prometheus/client_model v0.2.0
go: downloading github.com/beorn7/perks v1.0.1
go: downloading github.com/cespare/xxhash/v2 v2.1.1
go: downloading github.com/golang/protobuf v1.4.3
go: downloading github.com/prometheus/procfs v0.6.0
go: downloading github.com/pkg/errors v0.9.1
go: downloading github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751
go: downloading github.com/alecthomas/units v0.0.0-20190924025748-f65c72e2690d
go: downloading github.com/matttproud/golang_protobuf_extensions v1.0.1
go: downloading google.golang.org/protobuf v1.26.0-rc.1
go: downloading golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1
go: downloading golang.org/x/crypto v0.0.0-20210616213533-5ff15b29337e
go: downloading github.com/mwitkow/go-conntrack v0.0.0-20190716064945-2f068394615f
go: downloading golang.org/x/net v0.0.0-20210525063256-abc453219eb5
go: downloading golang.org/x/oauth2 v0.0.0-20210514164344-f6687ab2804c
go: downloading github.com/jpillora/backoff v1.0.0
go: downloading golang.org/x/text v0.3.6
Step 33: Install postgres_exporter
Step 34: Clean postgres_exporter build
Checking integrity... done (0 conflicting)
Deinstallation has been requested for the following 3 packages (of 0 packages in the universe):

Installed packages to be REMOVED:
	git-lite: 2.34.1
	gmake: 4.3_2
	go: 1.17.5,1

Number of packages to be removed: 3

The operation will free 331 MiB.
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [1/3] Deinstalling git-lite-2.34.1...
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [1/3] Deleting files for git-lite-2.34.1: .......... done
==> You should manually remove the "git_daemon" user. 
==> You should manually remove the "git_daemon" group 
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [2/3] Deinstalling gmake-4.3_2...
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [2/3] Deleting files for gmake-4.3_2: .......... done
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [3/3] Deinstalling go-1.17.5,1...
[postgresql-patroni-amd64-13_0.vsf00001.cpt.za.honeyguide.net] [3/3] Deleting files for go-1.17.5,1: .......... done
Step 35: Clean package installation
Nothing to do.
Step 36: Clean cook artifacts
Step 37: Install pot local
Step 38: Set file ownership on cook scripts
Step 39: Make cook script executable
setting executable bit on /usr/local/bin/cook
Step 40: Create rc.d script to start cook
creating rc.d script to start cook
Step 41: Make rc.d script to start cook executable
Setting executable bit on cook rc file
Step 42: Enable cook service
enabling cook
cook enabled in /etc/rc.conf
=====>  Stop the pot postgresql-patroni-amd64-13_0
=====>  Remove epair0[a|b] network interfaces
=====>  unmount /mnt/srv/pot/jails/postgresql-patroni-amd64-13_0/m/tmp
=====>  unmount /mnt/srv/pot/jails/postgresql-patroni-amd64-13_0/m/dev
=====>  Flavour: postgresql-patroni+1
=====>  Executing postgresql-patroni+1 pot commands on postgresql-patroni-amd64-13_0
=====>  No shell script available for the flavour postgresql-patroni+1
=====>  Flavour: postgresql-patroni+2
=====>  Executing postgresql-patroni+2 pot commands on postgresql-patroni-amd64-13_0
=====>  No shell script available for the flavour postgresql-patroni+2
=====>  Flavour: postgresql-patroni+3
=====>  Executing postgresql-patroni+3 pot commands on postgresql-patroni-amd64-13_0
=====>  No shell script available for the flavour postgresql-patroni+3
=====>  Flavour: postgresql-patroni+4
=====>  Executing postgresql-patroni+4 pot commands on postgresql-patroni-amd64-13_0
=====>  No shell script available for the flavour postgresql-patroni+4

postgresql-patroni-amd64-12_3_2.2.8:


postgresql-patroni/postgresql-patroni:
copy-in -s /usr/local/etc/pot/flavours/postgresql-patroni.d/local -d /root/.pot_local
postgresql-patroni/postgresql-patroni.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 "Disable sshd"
service sshd onedisable || true

step "Create /usr/local/etc/rc.d"
mkdir -p /usr/local/etc/rc.d

step "Update package repository"
pkg update -f

step "Install package sudo"
pkg install -y sudo

step "Install package openssl"
pkg install -y openssl

step "Install package nginx"
pkg install -y nginx

step "Install package vault"
pkg install -y vault

step "Install package consul"
pkg install -y consul

step "Install package consul-template"
pkg install -y consul-template

step "Patching consul-template rc scripts"
sed -i '' 's/^\(start_precmd=consul_template_startprecmd\)$/\1;'\
'extra_commands=reload/'  /usr/local/etc/rc.d/consul-template || true

step "Install package node_exporter"
pkg install -y node_exporter

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

step "Install package postgresql-server"
pkg install -y postgresql13-server

step "Install package postgresql-client"
pkg install -y postgresql13-client

step "Install package python37"
pkg install -y python38

step "Install package python3-pip"
pkg install -y py38-pip

step "Install package python-consul2"
# this version gives error
pkg install -y py38-python-consul2

# using pip to install this package, as pkg removes postgres13 now,
# and installs postgres12 client as dependency
#step "Install package psycopg2"
#pkg install -y py38-psycopg2

step "Install package jq"
pkg install -y jq

step "Install package jo"
pkg install -y jo

step "Install package curl"
pkg install -y curl



#
# pip MUST ONLY be used:
# * With the --user flag, OR
# * To install or manage Python packages in virtual environments
# using -prefix here to force install in /usr/local/bin

step "Install pip package psycopg2-binary"
pip install psycopg2-binary --prefix="/usr/local/"

step "Install pip package patroni"
pip install patroni --prefix="/usr/local"
#
## WARNING: The scripts patroni, patroni_aws, patroni_raft_controller,
## patroni_wale_restore and patronictl are installed in
## '--prefix=/usr/local/bin' which is not in PATH.
## Consider adding this directory to PATH or, if you prefer to suppress
## this warning, use --no-warn-script-location.

step "Fetch and install patroni tls server name patch"
fetch -qo /usr/local/lib/python3.8/site-packages/patroni/dcs/consul.py \
  https://raw.githubusercontent.com/grembo/patroni/\
dac9db548b3/patroni/dcs/consul.py

#### Build postgres_exporter - BEGIN
# change to a temporary directory and clone the github repo for
# postgres_exporter
step "Install package git-lite"
pkg install -y git-lite

step "Install package go"
pkg install -y go

step "Install package gmake"
pkg install -y gmake

cd /tmp

step "Fetch postgres_exporter sources"
/usr/local/bin/git clone --depth 1 -b v0.10.1 \
  https://github.com/prometheus-community/postgres_exporter.git
# make sure we're at the correct commit

step "Build postgres_exporter"
cd /tmp/postgres_exporter
# make sure we're at the expected commit
/usr/local/bin/git checkout 6cff384d7433bcb1104efe3b496cd27c0658eb09
/usr/local/bin/gmake build

step "Install postgres_exporter"
sed -i '' 's|-web.listen-address|--web.listen-address|g' \
  /tmp/postgres_exporter/postgres_exporter.rc
sed -i '' 's|sslmode=disable|sslmode=verify-ca|g' \
  /tmp/postgres_exporter/postgres_exporter.rc
# shellcheck disable=SC2016
sed -i '' 's|-p ${pidfile}|-f -p ${pidfile} -T ${name}|g' \
  /tmp/postgres_exporter/postgres_exporter.rc
cp -f /tmp/postgres_exporter/postgres_exporter.rc \
  /usr/local/etc/rc.d/postgres_exporter
chmod +x /usr/local/etc/rc.d/postgres_exporter
cp -f /tmp/postgres_exporter/postgres_exporter \
  /usr/local/bin/postgres_exporter
chmod +x /usr/local/bin/postgres_exporter

step "Clean postgres_exporter build"
rm -rf /tmp/postgres_exporter
pkg delete -y git-lite gmake go

#### Build postgres_exporter - END

step "Clean package installation"
pkg clean -y

# -------------- END PACKAGE SETUP -------------
#
# Create configurations
#

#
# 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

postgresql-patroni/postgresql-patroni+1:
postgresql-patroni/postgresql-patroni+1.sh:

postgresql-patroni/postgresql-patroni+2:
postgresql-patroni/postgresql-patroni+2.sh:

postgresql-patroni/postgresql-patroni+3:
postgresql-patroni/postgresql-patroni+3.sh:

postgresql-patroni/postgresql-patroni+4:
postgresql-patroni/postgresql-patroni+4.sh:
Password:===>  Creating a new pot
===>  pot name     : postgresql-patroni-amd64-12_3
===>  type         : single
===>  base         : 12.3
===>  pot_base     : 
===>  level        : 0
===>  network-type : public-bridge
===>  network-stack: ipv4
===>  ip           : 10.192.0.6
===>  bridge       : 
===>  dns          : inherit
===>  flavours     : fbsd-update postgresql-patroni postgresql-patroni+1 postgresql-patroni+2 postgresql-patroni+3 postgresql-patroni+4
===>  Fetching FreeBSD 12.3
===>  Extract the tarball
=====>  Flavour: fbsd-update
=====>  Starting postgresql-patroni-amd64-12_3 pot for the initial bootstrap
=====>  mount /mnt/srv/pot/jails/postgresql-patroni-amd64-12_3/m/tmp
defaultrouter: NO -> 10.192.0.1
===>  Starting the pot postgresql-patroni-amd64-12_3
Generating host.conf.
ELF ldconfig path: /lib /usr/lib /usr/lib/compat
32-bit compatibility ldconfig path: /usr/lib32
Starting Network: lo0 epair0b.
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
	options=680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
	inet6 ::1 prefixlen 128
	inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1
	inet 127.0.0.1 netmask 0xff000000
	groups: lo
	nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
epair0b: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
	options=8<VLAN_MTU>
	ether 02:1b:66:5e:7c:0b
	inet 10.192.0.6 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
Creating and/or trimming log files.
Updating motd:.
Updating /var/run/os-release done.
Starting syslogd.
Clearing /tmp (X related).
Starting cron.
Starting sendmail_submit.
Starting sendmail_msp_queue.

Mon Feb 28 21:30:16 UTC 2022
/usr/local/etc/pot/flavours/fbsd-update.sh -> /mnt/srv/pot/jails/postgresql-patroni-amd64-12_3/m/tmp/fbsd-update.sh
=====>  Executing fbsd-update script on postgresql-patroni-amd64-12_3
src component not installed, skipped
Looking up update.FreeBSD.org mirrors... 2 mirrors found.
Fetching public key from update2.freebsd.org... done.
Fetching metadata signature for 12.3-RELEASE from update2.freebsd.org... done.
Fetching metadata index... done.
Fetching 2 metadata files... done.
Inspecting system... done.
Preparing to download files... done.
Fetching 4 patches... done.
Applying patches... done.
The following files will be updated as part of updating to
12.3-RELEASE-p2:
/bin/freebsd-version
/lib/libalias.so.7
/usr/lib/libalias.a
/usr/lib/libalias_p.a
Installing updates...Scanning //usr/share/certs/blacklisted for certificates...
Scanning //usr/share/certs/trusted for certificates...
 done.
=====>  Stop the pot postgresql-patroni-amd64-12_3
=====>  Remove epair0[a|b] network interfaces
=====>  unmount /mnt/srv/pot/jails/postgresql-patroni-amd64-12_3/m/tmp
=====>  unmount /mnt/srv/pot/jails/postgresql-patroni-amd64-12_3/m/dev
=====>  Flavour: postgresql-patroni
=====>  Executing postgresql-patroni pot commands on postgresql-patroni-amd64-12_3
=====>  mount /mnt/srv/pot/jails/postgresql-patroni-amd64-12_3/m/tmp
=====>  Source /usr/local/etc/pot/flavours/postgresql-patroni.d/local copied in the pot postgresql-patroni-amd64-12_3
=====>  unmount /mnt/srv/pot/jails/postgresql-patroni-amd64-12_3/m/tmp
=====>  /mnt/srv/pot/jails/postgresql-patroni-amd64-12_3/m/dev is already unmounted
=====>  Starting postgresql-patroni-amd64-12_3 pot for the initial bootstrap
=====>  mount /mnt/srv/pot/jails/postgresql-patroni-amd64-12_3/m/tmp
defaultrouter: 10.192.0.1 -> 10.192.0.1
===>  Starting the pot postgresql-patroni-amd64-12_3
ELF ldconfig path: /lib /usr/lib /usr/lib/compat
32-bit compatibility ldconfig path: /usr/lib32
Starting Network: lo0 epair0b.
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
	options=680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
	inet6 ::1 prefixlen 128
	inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1
	inet 127.0.0.1 netmask 0xff000000
	groups: lo
	nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
epair0b: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
	options=8<VLAN_MTU>
	ether 02:47:ca:b8:d3:0b
	inet 10.192.0.6 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
Creating and/or trimming log files.
Updating motd:.
Updating /var/run/os-release done.
Starting syslogd.
Clearing /tmp (X related).
Starting cron.
Starting sendmail_submit.
Starting sendmail_msp_queue.

Mon Feb 28 21:30:27 UTC 2022
/usr/local/etc/pot/flavours/postgresql-patroni.sh -> /mnt/srv/pot/jails/postgresql-patroni-amd64-12_3/m/tmp/postgresql-patroni.sh
=====>  Executing postgresql-patroni script on postgresql-patroni-amd64-12_3
Creating /var/log/cook.log
Step 1: Bootstrap package repo
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] Installing pkg-1.17.5...
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] Extracting pkg-1.17.5: .......... done
Bootstrapping pkg from pkg+http://pkg.FreeBSD.org/FreeBSD:12:amd64/quarterly, please wait...
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: Disable sshd
sshd disabled in /etc/rc.conf
Step 6: Create /usr/local/etc/rc.d
Step 7: Update package repository
Updating FreeBSD repository catalogue...
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] Fetching meta.conf: . done
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] Fetching packagesite.pkg: .......... done
Processing entries: .......... done
FreeBSD repository update completed. 31451 packages processed.
All repositories are up to date.
Step 8: Install package sudo
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
Updating database digests format: . done
The following 3 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
	gettext-runtime: 0.21
	indexinfo: 0.3.1
	sudo: 1.9.8p2

Number of packages to be installed: 3

The process will require 7 MiB more space.
2 MiB to be downloaded.
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [1/3] Fetching sudo-1.9.8p2.pkg: .......... done
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [2/3] Fetching gettext-runtime-0.21.pkg: .......... done
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [3/3] Fetching indexinfo-0.3.1.pkg: . done
Checking integrity... done (0 conflicting)
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [1/3] Installing indexinfo-0.3.1...
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [1/3] Extracting indexinfo-0.3.1: .... done
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [2/3] Installing gettext-runtime-0.21...
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [2/3] Extracting gettext-runtime-0.21: .......... done
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [3/3] Installing sudo-1.9.8p2...
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [3/3] Extracting sudo-1.9.8p2: .......... done
Step 9: 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):

New packages to be INSTALLED:
	openssl: 1.1.1m_1,1

Number of packages to be installed: 1

The process will require 14 MiB more space.
4 MiB to be downloaded.
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [1/1] Fetching openssl-1.1.1m_1,1.pkg: .......... done
Checking integrity... done (0 conflicting)
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [1/1] Installing openssl-1.1.1m_1,1...
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [1/1] Extracting openssl-1.1.1m_1,1: .......... done
Step 10: Install package nginx
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:
	nginx: 1.20.2_3,2
	pcre: 8.45

Number of packages to be installed: 2

The process will require 8 MiB more space.
2 MiB to be downloaded.
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [1/2] Fetching nginx-1.20.2_3,2.pkg: .......... done
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [2/2] Fetching pcre-8.45.pkg: .......... done
Checking integrity... done (0 conflicting)
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [1/2] Installing pcre-8.45...
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [1/2] Extracting pcre-8.45: .......... done
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [2/2] Installing nginx-1.20.2_3,2...
===> Creating groups.
Using existing group 'www'.
===> Creating users
Using existing user 'www'.
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [2/2] Extracting nginx-1.20.2_3,2: .......... done
=====
Message from nginx-1.20.2_3,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.
Step 11: Install package vault
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:
	vault: 1.8.2

Number of packages to be installed: 1

The process will require 156 MiB more space.
49 MiB to be downloaded.
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [1/1] Fetching vault-1.8.2.pkg: .......... done
Checking integrity... done (0 conflicting)
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [1/1] Installing vault-1.8.2...
===> Creating groups.
Creating group 'vault' with gid '471'.
===> Creating users
Creating user 'vault' with uid '471'.
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [1/1] Extracting vault-1.8.2: ..... done
=====
Message from vault-1.8.2:

--
The vault user created by the vault package is now a member of the daemon
class, which will allow it to use mlock() when started by the rc script. This
will not be reflected in systems where the user already exists. Please add the
vault user to the daemon class manually by running:

pw usermod -L daemon -n vault

or delete the user and reinstall the package.

You may also need to increase memorylocked for the daemon class in
/etc/rc.conf to more than 1024M (the default) or more:

vault_limits_mlock="2048M"

Or to disable mlock, add:

disable_mlock = 1

to /usr/local/etc/vault.hcl
Step 12: 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.10.3

Number of packages to be installed: 1

The process will require 90 MiB more space.
28 MiB to be downloaded.
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [1/1] Fetching consul-1.10.3.pkg: .......... done
Checking integrity... done (0 conflicting)
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [1/1] Installing consul-1.10.3...
===> Creating groups.
Creating group 'consul' with gid '469'.
===> Creating users
Creating user 'consul' with uid '469'.
===> Creating homedir(s)
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [1/1] Extracting consul-1.10.3: ..... done
Step 13: Install package consul-template
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-template: 0.27.2

Number of packages to be installed: 1

The process will require 10 MiB more space.
3 MiB to be downloaded.
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [1/1] Fetching consul-template-0.27.2.pkg: .......... done
Checking integrity... done (0 conflicting)
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [1/1] Installing consul-template-0.27.2...
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [1/1] Extracting consul-template-0.27.2: ..... done
Step 14: Patching consul-template rc scripts
Step 15: 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.2.2

Number of packages to be installed: 1

The process will require 11 MiB more space.
3 MiB to be downloaded.
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [1/1] Fetching node_exporter-1.2.2.pkg: .......... done
Checking integrity... done (0 conflicting)
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [1/1] Installing node_exporter-1.2.2...
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [1/1] Extracting node_exporter-1.2.2: .......... done
=====
Message from node_exporter-1.2.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 16: Install package syslog-ng
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
The following 14 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
	ca_root_nss: 3.71
	curl: 7.80.0
	e2fsprogs-libuuid: 1.46.5
	glib: 2.70.4,2
	json-c: 0.15_1
	libffi: 3.3_1
	libiconv: 1.16
	libnghttp2: 1.46.0
	libssh2: 1.10.0,3
	libxml2: 2.9.12
	mpdecimal: 2.5.1
	python38: 3.8.12_1
	readline: 8.1.1
	syslog-ng: 3.35.1

Number of packages to be installed: 14

The process will require 160 MiB more space.
25 MiB to be downloaded.
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [1/14] Fetching syslog-ng-3.35.1.pkg: .......... done
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [2/14] Fetching e2fsprogs-libuuid-1.46.5.pkg: ..... done
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [3/14] Fetching curl-7.80.0.pkg: .......... done
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [4/14] Fetching libnghttp2-1.46.0.pkg: .......... done
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [5/14] Fetching libssh2-1.10.0,3.pkg: .......... done
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [6/14] Fetching ca_root_nss-3.71.pkg: .......... done
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [7/14] Fetching json-c-0.15_1.pkg: ........ done
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [8/14] Fetching glib-2.70.4,2.pkg: .......... done
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [9/14] Fetching libxml2-2.9.12.pkg: .......... done
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [10/14] Fetching python38-3.8.12_1.pkg: .......... done
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [11/14] Fetching mpdecimal-2.5.1.pkg: .......... done
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [12/14] Fetching readline-8.1.1.pkg: .......... done
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [13/14] Fetching libffi-3.3_1.pkg: ..... done
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [14/14] Fetching libiconv-1.16.pkg: .......... done
Checking integrity... done (0 conflicting)
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [1/14] Installing mpdecimal-2.5.1...
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [1/14] Extracting mpdecimal-2.5.1: .......... done
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [2/14] Installing readline-8.1.1...
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [2/14] Extracting readline-8.1.1: .......... done
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [3/14] Installing libffi-3.3_1...
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [3/14] Extracting libffi-3.3_1: .......... done
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [4/14] Installing libnghttp2-1.46.0...
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [4/14] Extracting libnghttp2-1.46.0: .......... done
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [5/14] Installing libssh2-1.10.0,3...
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [5/14] Extracting libssh2-1.10.0,3: .......... done
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [6/14] Installing ca_root_nss-3.71...
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [6/14] Extracting ca_root_nss-3.71: ........ done
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [7/14] Installing libxml2-2.9.12...
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [7/14] Extracting libxml2-2.9.12: .......... done
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [8/14] Installing python38-3.8.12_1...
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [8/14] Extracting python38-3.8.12_1: .......... done
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [9/14] Installing libiconv-1.16...
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [9/14] Extracting libiconv-1.16: .......... done
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [10/14] Installing e2fsprogs-libuuid-1.46.5...
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [10/14] Extracting e2fsprogs-libuuid-1.46.5: .......... done
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [11/14] Installing curl-7.80.0...
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [11/14] Extracting curl-7.80.0: .......... done
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [12/14] Installing json-c-0.15_1...
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [12/14] Extracting json-c-0.15_1: .......... done
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [13/14] Installing glib-2.70.4,2...
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [13/14] Extracting glib-2.70.4,2: .......... done
No schema files found: doing nothing.
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [14/14] Installing syslog-ng-3.35.1...
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [14/14] Extracting syslog-ng-3.35.1: .......... done
=====
Message from ca_root_nss-3.71:

--
FreeBSD does not, and can not warrant that the certification authorities
whose certificates are included in this package have in any way been
audited for trustworthiness or RFC 3647 compliance.

Assessment and verification of trust is the complete responsibility of the
system administrator.


This package installs symlinks to support root certificates discovery by
default for software that uses OpenSSL.

This enables SSL Certificate Verification by client software without manual
intervention.

If you prefer to do this manually, replace the following symlinks with
either an empty file or your site-local certificate bundle.

  * /etc/ssl/cert.pem
  * /usr/local/etc/ssl/cert.pem
  * /usr/local/openssl/cert.pem
=====
Message from python38-3.8.12_1:

--
Note that some standard Python modules are provided as separate ports
as they require additional dependencies. They are available as:

py38-gdbm       databases/py-gdbm@py38
py38-sqlite3    databases/py-sqlite3@py38
py38-tkinter    x11-toolkits/py-tkinter@py38
=====
Message from syslog-ng-3.35.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 17: Install package postgresql-server
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
The following 7 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
	icu: 70.1_1,1
	libedit: 3.1.20210216,1
	llvm10: 10.0.1_8
	lua52: 5.2.4
	perl5: 5.32.1_1
	postgresql13-client: 13.5
	postgresql13-server: 13.5

Number of packages to be installed: 7

The process will require 811 MiB more space.
138 MiB to be downloaded.
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [1/7] Fetching postgresql13-server-13.5.pkg: .......... done
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [2/7] Fetching llvm10-10.0.1_8.pkg: .......... done
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [3/7] Fetching perl5-5.32.1_1.pkg: .......... done
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [4/7] Fetching lua52-5.2.4.pkg: .......... done
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [5/7] Fetching libedit-3.1.20210216,1.pkg: .......... done
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [6/7] Fetching icu-70.1_1,1.pkg: .......... done
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [7/7] Fetching postgresql13-client-13.5.pkg: .......... done
Checking integrity... done (0 conflicting)
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [1/7] Installing libedit-3.1.20210216,1...
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [1/7] Extracting libedit-3.1.20210216,1: .......... done
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [2/7] Installing perl5-5.32.1_1...
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [2/7] Extracting perl5-5.32.1_1: .......... done
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [3/7] Installing lua52-5.2.4...
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [3/7] Extracting lua52-5.2.4: ......... done
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [4/7] Installing llvm10-10.0.1_8...
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [4/7] Extracting llvm10-10.0.1_8: .......... done
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [5/7] Installing icu-70.1_1,1...
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [5/7] Extracting icu-70.1_1,1: .......... done
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [6/7] Installing postgresql13-client-13.5...
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [6/7] Extracting postgresql13-client-13.5: .......... done
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [7/7] Installing postgresql13-server-13.5...
===> Creating groups.
Creating group 'postgres' with gid '770'.
===> Creating users
Creating user 'postgres' with uid '770'.
===> Creating homedir(s)

  =========== BACKUP YOUR DATA! =============
  As always, backup your data before
  upgrading. If the upgrade leads to a higher
  major revision (e.g. 9.6 -> 10), a dump
  and restore of all databases is
  required. This is *NOT* done by the port!
  See https://www.postgresql.org/docs/current/upgrading.html
  ===========================================
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [7/7] Extracting postgresql13-server-13.5: .......... done
=====
Message from postgresql13-client-13.5:

--
The PostgreSQL port has a collection of "side orders":

postgresql-docs
  For all of the html documentation

p5-Pg
  A perl5 API for client access to PostgreSQL databases.

postgresql-tcltk 
  If you want tcl/tk client support.

postgresql-jdbc
  For Java JDBC support.

postgresql-odbc
  For client access from unix applications using ODBC as access
  method. Not needed to access unix PostgreSQL servers from Win32
  using ODBC. See below.

ruby-postgres, py-psycopg2
  For client access to PostgreSQL databases using the ruby & python
  languages.

postgresql-plperl, postgresql-pltcl & postgresql-plruby
  For using perl5, tcl & ruby as procedural languages.

postgresql-contrib
  Lots of contributed utilities, postgresql functions and
  datatypes. There you find pg_standby, pgcrypto and many other cool
  things.

etc...
=====
Message from postgresql13-server-13.5:

--
For procedural languages and postgresql functions, please note that
you might have to update them when updating the server.

If you have many tables and many clients running, consider raising
kern.maxfiles using sysctl(8), or reconfigure your kernel
appropriately.

The port is set up to use autovacuum for new databases, but you might
also want to vacuum and perhaps backup your database regularly. There
is a periodic script, /usr/local/etc/periodic/daily/502.pgsql, that
you may find useful. You can use it to backup and perform vacuum on all
databases nightly. Per default, it performs `vacuum analyze'. See the
script for instructions. For autovacuum settings, please review
~postgres/data/postgresql.conf.

If you plan to access your PostgreSQL server using ODBC, please
consider running the SQL script /usr/local/share/postgresql/odbc.sql
to get the functions required for ODBC compliance.

Please note that if you use the rc script,
/usr/local/etc/rc.d/postgresql, to initialize the database, unicode
(UTF-8) will be used to store character data by default.  Set
postgresql_initdb_flags or use login.conf settings described below to
alter this behaviour. See the start rc script for more info.

To set limits, environment stuff like locale and collation and other
things, you can set up a class in /etc/login.conf before initializing
the database. Add something similar to this to /etc/login.conf:
---
postgres:\
	:lang=en_US.UTF-8:\
	:setenv=LC_COLLATE=C:\
	:tc=default:
---
and run `cap_mkdb /etc/login.conf'.
Then add 'postgresql_class="postgres"' to /etc/rc.conf.

======================================================================

To initialize the database, run

  /usr/local/etc/rc.d/postgresql initdb

You can then start PostgreSQL by running:

  /usr/local/etc/rc.d/postgresql start

For postmaster settings, see ~postgres/data/postgresql.conf

NB. FreeBSD's PostgreSQL port logs to syslog by default
    See ~postgres/data/postgresql.conf for more info

NB. If you're not using a checksumming filesystem like ZFS, you might
    wish to enable data checksumming. It can be enabled during
    the initdb phase, by adding the "--data-checksums" flag to
    the postgresql_initdb_flags rcvar. Otherwise you can enable it later by
    pg_checksums.  Check the initdb(1) manpage for more info
    and make sure you understand the performance implications.

======================================================================

To run PostgreSQL at startup, add
'postgresql_enable="YES"' to /etc/rc.conf
Step 18: Install package postgresql-client
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 19: Install package python37
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 20: Install package python3-pip
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:
	py38-pip: 20.3.4
	py38-setuptools: 57.0.0

Number of packages to be installed: 2

The process will require 19 MiB more space.
3 MiB to be downloaded.
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [1/2] Fetching py38-pip-20.3.4.pkg: .......... done
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [2/2] Fetching py38-setuptools-57.0.0.pkg: .......... done
Checking integrity... done (0 conflicting)
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [1/2] Installing py38-setuptools-57.0.0...
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [1/2] Extracting py38-setuptools-57.0.0: .......... done
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [2/2] Installing py38-pip-20.3.4...
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [2/2] Extracting py38-pip-20.3.4: .......... done
=====
Message from py38-pip-20.3.4:

--
pip MUST ONLY be used:

 * With the --user flag, OR
 * To install or manage Python packages in virtual environments

Failure to follow this warning can and will result in an inconsistent
system-wide Python environment (LOCALBASE/lib/pythonX.Y/site-packages) and
cause errors.

Avoid using pip as root unless you know what you're doing.
Step 21: Install package python-consul2
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
The following 12 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
	py38-certifi: 2021.10.8
	py38-cffi: 1.15.0
	py38-chardet: 4.0.0,1
	py38-cryptography: 3.3.2
	py38-idna: 2.10
	py38-openssl: 20.0.1
	py38-pycparser: 2.21
	py38-pysocks: 1.7.1
	py38-python-consul2: 0.1.5
	py38-requests: 2.25.1
	py38-six: 1.16.0
	py38-urllib3: 1.26.7,1

Number of packages to be installed: 12

The process will require 10 MiB more space.
2 MiB to be downloaded.
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [1/12] Fetching py38-python-consul2-0.1.5.pkg: ...... done
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [2/12] Fetching py38-requests-2.25.1.pkg: .......... done
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [3/12] Fetching py38-chardet-4.0.0,1.pkg: .......... done
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [4/12] Fetching py38-certifi-2021.10.8.pkg: .......... done
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [5/12] Fetching py38-urllib3-1.26.7,1.pkg: .......... done
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [6/12] Fetching py38-openssl-20.0.1.pkg: .......... done
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [7/12] Fetching py38-cryptography-3.3.2.pkg: .......... done
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [8/12] Fetching py38-six-1.16.0.pkg: ... done
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [9/12] Fetching py38-cffi-1.15.0.pkg: .......... done
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [10/12] Fetching py38-pycparser-2.21.pkg: .......... done
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [11/12] Fetching py38-pysocks-1.7.1.pkg: ... done
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [12/12] Fetching py38-idna-2.10.pkg: ......... done
Checking integrity... done (0 conflicting)
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [1/12] Installing py38-pycparser-2.21...
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [1/12] Extracting py38-pycparser-2.21: .......... done
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [2/12] Installing py38-six-1.16.0...
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [2/12] Extracting py38-six-1.16.0: .......... done
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [3/12] Installing py38-cffi-1.15.0...
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [3/12] Extracting py38-cffi-1.15.0: .......... done
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [4/12] Installing py38-cryptography-3.3.2...
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [4/12] Extracting py38-cryptography-3.3.2: .......... done
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [5/12] Installing py38-certifi-2021.10.8...
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [5/12] Extracting py38-certifi-2021.10.8: .......... done
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [6/12] Installing py38-openssl-20.0.1...
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [6/12] Extracting py38-openssl-20.0.1: .......... done
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [7/12] Installing py38-pysocks-1.7.1...
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [7/12] Extracting py38-pysocks-1.7.1: .......... done
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [8/12] Installing py38-idna-2.10...
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [8/12] Extracting py38-idna-2.10: .......... done
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [9/12] Installing py38-chardet-4.0.0,1...
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [9/12] Extracting py38-chardet-4.0.0,1: .......... done
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [10/12] Installing py38-urllib3-1.26.7,1...
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [10/12] Extracting py38-urllib3-1.26.7,1: .......... done
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [11/12] Installing py38-requests-2.25.1...
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [11/12] Extracting py38-requests-2.25.1: .......... done
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [12/12] Installing py38-python-consul2-0.1.5...
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [12/12] Extracting py38-python-consul2-0.1.5: .......... done
=====
Message from py38-urllib3-1.26.7,1:

--
Since version 1.25 HTTPS connections are now verified by default which is done
via "cert_reqs = 'CERT_REQUIRED'".  While certificate verification can be
disabled via "cert_reqs = 'CERT_NONE'", it's highly recommended to leave it on.

Various consumers of net/py-urllib3 already have implemented routines that
either explicitly enable or disable HTTPS certificate verification (e.g. via
configuration settings, CLI arguments, etc.).

Yet it may happen that there are still some consumers which don't explicitly
enable/disable certificate verification for HTTPS connections which could then
lead to errors (as is often the case with self-signed certificates).

In case of an error one should try first to temporarily disable certificate
verification of the problematic urllib3 consumer to see if that approach will
remedy the issue.
Step 22: Install package jq
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:
	jq: 1.6
	oniguruma: 6.9.7.1

Number of packages to be installed: 2

The process will require 2 MiB more space.
498 KiB to be downloaded.
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [1/2] Fetching jq-1.6.pkg: .......... done
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [2/2] Fetching oniguruma-6.9.7.1.pkg: .......... done
Checking integrity... done (0 conflicting)
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [1/2] Installing oniguruma-6.9.7.1...
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [1/2] Extracting oniguruma-6.9.7.1: .......... done
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [2/2] Installing jq-1.6...
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [2/2] Extracting jq-1.6: .......... done
Step 23: Install package jo
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:
	jo: 1.4

Number of packages to be installed: 1

19 KiB to be downloaded.
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [1/1] Fetching jo-1.4.pkg: ... done
Checking integrity... done (0 conflicting)
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [1/1] Installing jo-1.4...
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [1/1] Extracting jo-1.4: ...... done
Step 24: Install package curl
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 25: Install pip package psycopg2-binary
Collecting psycopg2-binary
  Downloading psycopg2-binary-2.9.3.tar.gz (380 kB)
Using legacy 'setup.py install' for psycopg2-binary, since package 'wheel' is not installed.
Installing collected packages: psycopg2-binary
    Running setup.py install for psycopg2-binary: started
    Running setup.py install for psycopg2-binary: finished with status 'done'
Successfully installed psycopg2-binary-2.9.3
Step 26: Install pip package patroni
Collecting patroni
  Downloading patroni-2.1.3-py3-none-any.whl (222 kB)
Collecting prettytable>=0.7
  Downloading prettytable-3.1.1-py3-none-any.whl (26 kB)
Collecting python-dateutil
  Downloading python_dateutil-2.8.2-py2.py3-none-any.whl (247 kB)
Collecting psutil>=2.0.0
  Downloading psutil-5.9.0.tar.gz (478 kB)
Collecting click>=4.1
  Downloading click-8.0.4-py3-none-any.whl (97 kB)
Requirement already satisfied: urllib3!=1.21,>=1.19.1 in /usr/local/lib/python3.8/site-packages (from patroni) (1.26.7)
Collecting PyYAML
  Downloading PyYAML-6.0.tar.gz (124 kB)
  Installing build dependencies: started
  Installing build dependencies: finished with status 'done'
  Getting requirements to build wheel: started
  Getting requirements to build wheel: finished with status 'done'
    Preparing wheel metadata: started
    Preparing wheel metadata: finished with status 'done'
Requirement already satisfied: six>=1.7 in /usr/local/lib/python3.8/site-packages (from patroni) (1.16.0)
Collecting ydiff>=1.2.0
  Downloading ydiff-1.2.tar.gz (42 kB)
Collecting wcwidth
  Downloading wcwidth-0.2.5-py2.py3-none-any.whl (30 kB)
Using legacy 'setup.py install' for psutil, since package 'wheel' is not installed.
Using legacy 'setup.py install' for ydiff, since package 'wheel' is not installed.
Building wheels for collected packages: PyYAML
  Building wheel for PyYAML (PEP 517): started
  Building wheel for PyYAML (PEP 517): finished with status 'done'
  Created wheel for PyYAML: filename=PyYAML-6.0-cp38-cp38-freebsd_12_3_release_p2_amd64.whl size=45346 sha256=a1e9f3c08a05035ca0b1409a295e9f9af8453e02abe2449a00cb51dcc901e2f7
  Stored in directory: /root/.cache/pip/wheels/52/84/66/50912fd7bf1639a31758e40bd4312602e104a8eca1e0da9645
Successfully built PyYAML
Installing collected packages: wcwidth, ydiff, PyYAML, python-dateutil, psutil, prettytable, click, patroni
    Running setup.py install for ydiff: started
    Running setup.py install for ydiff: finished with status 'done'
    Running setup.py install for psutil: started
    Running setup.py install for psutil: finished with status 'done'
Successfully installed PyYAML-6.0 click-8.0.4 patroni-2.1.3 prettytable-3.1.1 psutil-5.9.0 python-dateutil-2.8.2 wcwidth-0.2.5 ydiff-1.2
Step 27: Fetch and install patroni tls server name patch
Step 28: Install package git-lite
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
The following 3 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
	expat: 2.4.4
	git-lite: 2.34.1
	pcre2: 10.39

Number of packages to be installed: 3

The process will require 35 MiB more space.
6 MiB to be downloaded.
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [1/3] Fetching git-lite-2.34.1.pkg: .......... done
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [2/3] Fetching expat-2.4.4.pkg: .......... done
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [3/3] Fetching pcre2-10.39.pkg: .......... done
Checking integrity... done (0 conflicting)
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [1/3] Installing expat-2.4.4...
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [1/3] Extracting expat-2.4.4: .......... done
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [2/3] Installing pcre2-10.39...
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [2/3] Extracting pcre2-10.39: .......... done
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [3/3] Installing git-lite-2.34.1...
===> Creating groups.
Creating group 'git_daemon' with gid '964'.
===> Creating users
Creating user 'git_daemon' with uid '964'.
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [3/3] Extracting git-lite-2.34.1: .......... done
=====
Message from git-lite-2.34.1:

--
If you installed the GITWEB option please follow these instructions:

In the directory /usr/local/share/examples/git/gitweb you can find all files to
make gitweb work as a public repository on the web.

All you have to do to make gitweb work is:
1) Please be sure you're able to execute CGI scripts in
   /usr/local/share/examples/git/gitweb.
2) Set the GITWEB_CONFIG variable in your webserver's config to
   /usr/local/etc/git/gitweb.conf. This variable is passed to gitweb.cgi.
3) Restart server.


If you installed the CONTRIB option please note that the scripts are
installed in /usr/local/share/git-core/contrib. Some of them require
other ports to be installed (perl, python, etc), which you may need to
install manually.
Step 29: Install package go
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:
	go: 1.17.5,1

Number of packages to be installed: 1

The process will require 301 MiB more space.
77 MiB to be downloaded.
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [1/1] Fetching go-1.17.5,1.pkg: .......... done
Checking integrity... done (0 conflicting)
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [1/1] Installing go-1.17.5,1...
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [1/1] Extracting go-1.17.5,1: .......... done
Step 30: Install package gmake
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:
	gmake: 4.3_2

Number of packages to be installed: 1

The process will require 2 MiB more space.
416 KiB to be downloaded.
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [1/1] Fetching gmake-4.3_2.pkg: .......... done
Checking integrity... done (0 conflicting)
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [1/1] Installing gmake-4.3_2...
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [1/1] Extracting gmake-4.3_2: .......... done
Step 31: Fetch postgres_exporter sources
Cloning into 'postgres_exporter'...
Note: switching to '6cff384d7433bcb1104efe3b496cd27c0658eb09'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:

  git switch -c <new-branch-name>

Or undo this operation with:

  git switch -

Turn off this advice by setting config variable advice.detachedHead to false

Step 32: Build postgres_exporter
HEAD is now at 6cff384 Merge pull request #600 from prometheus-community/superq/0.10.1
curl -s -L https://github.com/prometheus/promu/releases/download/v0.13.0/promu-0.13.0.freebsd-amd64.tar.gz | tar -xvzf - -C /tmp/tmp.R62J0Tox
x promu-0.13.0.freebsd-amd64/
x promu-0.13.0.freebsd-amd64/LICENSE
x promu-0.13.0.freebsd-amd64/NOTICE
x promu-0.13.0.freebsd-amd64/promu
mkdir -p /root/go/bin
cp /tmp/tmp.R62J0Tox/promu-0.13.0.freebsd-amd64/promu /root/go/bin/promu
rm -r /tmp/tmp.R62J0Tox
>> building binaries
GO111MODULE=on /root/go/bin/promu build --prefix /tmp/postgres_exporter 
 >   postgres_exporter
go: downloading github.com/blang/semver v3.5.1+incompatible
go: downloading github.com/go-kit/log v0.2.0
go: downloading github.com/lib/pq v1.10.4
go: downloading github.com/prometheus/client_golang v1.11.0
go: downloading github.com/prometheus/common v0.32.1
go: downloading github.com/prometheus/exporter-toolkit v0.7.1
go: downloading gopkg.in/alecthomas/kingpin.v2 v2.2.6
go: downloading gopkg.in/yaml.v2 v2.4.0
go: downloading github.com/go-logfmt/logfmt v0.5.1
go: downloading github.com/prometheus/client_model v0.2.0
go: downloading github.com/beorn7/perks v1.0.1
go: downloading github.com/cespare/xxhash/v2 v2.1.1
go: downloading github.com/golang/protobuf v1.4.3
go: downloading github.com/prometheus/procfs v0.6.0
go: downloading github.com/pkg/errors v0.9.1
go: downloading golang.org/x/crypto v0.0.0-20210616213533-5ff15b29337e
go: downloading github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751
go: downloading github.com/alecthomas/units v0.0.0-20190924025748-f65c72e2690d
go: downloading github.com/matttproud/golang_protobuf_extensions v1.0.1
go: downloading google.golang.org/protobuf v1.26.0-rc.1
go: downloading github.com/mwitkow/go-conntrack v0.0.0-20190716064945-2f068394615f
go: downloading golang.org/x/net v0.0.0-20210525063256-abc453219eb5
go: downloading golang.org/x/oauth2 v0.0.0-20210514164344-f6687ab2804c
go: downloading golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1
go: downloading github.com/jpillora/backoff v1.0.0
go: downloading golang.org/x/text v0.3.6
Step 33: Install postgres_exporter
Step 34: Clean postgres_exporter build
Checking integrity... done (0 conflicting)
Deinstallation has been requested for the following 3 packages (of 0 packages in the universe):

Installed packages to be REMOVED:
	git-lite: 2.34.1
	gmake: 4.3_2
	go: 1.17.5,1

Number of packages to be removed: 3

The operation will free 331 MiB.
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [1/3] Deinstalling git-lite-2.34.1...
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [1/3] Deleting files for git-lite-2.34.1: .......... done
==> You should manually remove the "git_daemon" user. 
==> You should manually remove the "git_daemon" group 
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [2/3] Deinstalling gmake-4.3_2...
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [2/3] Deleting files for gmake-4.3_2: .......... done
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [3/3] Deinstalling go-1.17.5,1...
[postgresql-patroni-amd64-12_3.vsf00001.cpt.za.honeyguide.net] [3/3] Deleting files for go-1.17.5,1: .......... done
Step 35: Clean package installation
Nothing to do.
Step 36: Clean cook artifacts
Step 37: Install pot local
Step 38: Set file ownership on cook scripts
Step 39: Make cook script executable
setting executable bit on /usr/local/bin/cook
Step 40: Create rc.d script to start cook
creating rc.d script to start cook
Step 41: Make rc.d script to start cook executable
Setting executable bit on cook rc file
Step 42: Enable cook service
enabling cook
cook enabled in /etc/rc.conf
=====>  Stop the pot postgresql-patroni-amd64-12_3
=====>  Remove epair0[a|b] network interfaces
=====>  unmount /mnt/srv/pot/jails/postgresql-patroni-amd64-12_3/m/tmp
=====>  unmount /mnt/srv/pot/jails/postgresql-patroni-amd64-12_3/m/dev
=====>  Flavour: postgresql-patroni+1
=====>  Executing postgresql-patroni+1 pot commands on postgresql-patroni-amd64-12_3
=====>  No shell script available for the flavour postgresql-patroni+1
=====>  Flavour: postgresql-patroni+2
=====>  Executing postgresql-patroni+2 pot commands on postgresql-patroni-amd64-12_3
=====>  No shell script available for the flavour postgresql-patroni+2
=====>  Flavour: postgresql-patroni+3
=====>  Executing postgresql-patroni+3 pot commands on postgresql-patroni-amd64-12_3
=====>  No shell script available for the flavour postgresql-patroni+3
=====>  Flavour: postgresql-patroni+4
=====>  Executing postgresql-patroni+4 pot commands on postgresql-patroni-amd64-12_3
=====>  No shell script available for the flavour postgresql-patroni+4

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