This repository has been archived on 2026-11-21. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
unkin-agent aa8b74dcf0
ci/woodpecker/pr/test Pipeline was successful
ci/woodpecker/pr/pre-commit Pipeline was successful
ci/woodpecker/pr/build Pipeline was successful
fix: drop legacy /etc/encapic/encapic.conf
2026-11-09 07:17:49 +11:00

14 lines
329 B
Bash
Executable File

#!/bin/sh
# Puppet's exec node_terminus invokes external_nodes with a certname and no
# environment, so the encapi URL cannot be inherited; source it here instead.
set -eu
if [ -r /etc/encapi/encapic.conf ]; then
. /etc/encapi/encapic.conf
fi
if [ -n "${ENCAPI_URL:-}" ]; then
export ENCAPI_URL
fi
exec /usr/bin/encapic "$@"