#!/bin/sh
set -eu

DATASET="${1:-zroot/clawdie-runtime/jails/controlplane}"
TEMPLATE="${2:-warden_control_plane}"

cat <<EOF
[template_${TEMPLATE}]
hourly = 24
daily = 7
monthly = 1
autosnap = yes
autoprune = yes

[${DATASET}]
use_template = ${TEMPLATE}
EOF
