#!/bin/sh -eu set -o pipefail touch /var/run/cloud_script_was_here # https://docs.oracle.com/en-us/iaas/Content/Compute/Tasks/gettingmetadata.htm curl --fail -H "Authorization: Bearer Oracle" -s \ http://169.254.169.254/opc/v2/instance \ | jq . >/var/run/oci_metadata.json # more packages pkg upgrade -yr FreeBSD pkg install -y net/mosh editors/neovim benchmarks/wrk # preserve for eternity zfs snapshot -r zroot@post-deploy zpool checkpoint zroot