Skip to content

Instantly share code, notes, and snippets.

View iammoen's full-sized avatar
🏠
Working from home

Chris Moen iammoen

🏠
Working from home
  • Falcon Heights, MN
View GitHub Profile
@iammoen
iammoen / statefulset.yaml
Created August 19, 2020 01:16
tls-toolkit code
{{ if .Values.properties.clusterSecure }}
${NIFI_TOOLKIT_HOME}/bin/tls-toolkit.sh standalone -n "${FQDN}" \
--clientCertDn "CN=${FQDN}, OU=NIFI" \
--certificateAuthorityHostname ${FQDN} \
--subjectAlternativeNames 'localhost{{- if .Values.properties.webProxyHost -}},{{ .Values.properties.webProxyHost }}{{- end -}}' \
--outputDirectory "${NIFI_HOME}/conf/" \
--isOverwrite
KEYSTORE_PASSWORD=`grep keystorePasswd ${NIFI_HOME}/conf/${FQDN}/nifi.properties | awk 'BEGIN { FS = "=" } ; { print $2 }'`
KEY_PASSWORD=`grep keyPasswd ${NIFI_HOME}/conf/${FQDN}/nifi.properties | awk 'BEGIN { FS = "=" } ; { print $2 }'`