You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
_debug "Attempting to load variable PANOS_FILENAME from file."
251
+
_getdeployconf PANOS_FILENAME
252
+
fi
253
+
245
254
#Store variables
246
255
_panos_host=$PANOS_HOST
247
256
_panos_user=$PANOS_USER
248
257
_panos_pass=$PANOS_PASS
249
258
_panos_template=$PANOS_TEMPLATE
250
259
_panos_template_stack=$PANOS_TEMPLATE_STACK
251
260
_panos_vsys=$PANOS_VSYS
261
+
_panos_filename=$PANOS_FILENAME
252
262
253
263
#Test API Key if found. If the key is invalid, the variable _panos_key will be unset.
254
264
if [ "$_panos_host" ] && [ "$_panos_key" ];then
@@ -267,6 +277,12 @@ panos_deploy() {
267
277
_err "No password found. If this is your first time deploying, please set PANOS_PASS in ENV variables. You can delete it after you have successfully deployed the certs."
268
278
return 1
269
279
else
280
+
# Use filename based on the first domain on the certificate if no custom filename is set
281
+
if [ -z"$_panos_filename" ];then
282
+
_panos_filename=$(echo "$1"| sed 's/*/WILDCARD_/g')#Wildcard Safe Filename
0 commit comments