cd66aebf40
This commits provides support to add certificate while building the image using ironic-agent element. The certificate can be CA certificate or self-signed certificate. The certificate is set to the environment variable 'DIB_IPA_CERT' which in turn is used by the ironic-agent element while building the image. Change-Id: I648f7934d4787dcc3030885cfca771b642a9595e
12 lines
181 B
Bash
Executable file
12 lines
181 B
Bash
Executable file
#!/bin/bash
|
|
|
|
if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then
|
|
set -x
|
|
fi
|
|
|
|
set -eu
|
|
set -o pipefail
|
|
|
|
if [ -n "${DIB_IPA_CERT:=}" ]; then
|
|
cp $DIB_IPA_CERT $TMP_HOOKS_PATH/server.pem
|
|
fi
|