Follow

Info: Easy macro hostname replacement

Applies To:

Venafi TrustAuthority 14.1, Venafi TrustForce 14.1

Summary:

The $hostname$ macro returns just the “shortname” of the engine that it’s running on. This is good, but doesn’t work well when used inside links in email notifications because it often doesn’t match the name on the certificate being used and/or won’t resolve via DNS for some clients. We don’t want to hard-code the server name in the notifications either. We want to be able to provide a similar macro, preferably be able to reference the server URL via a macro.  That way if we’re using a load-balancer or a DNS CNAME or something it can be changed without having to edit a bunch of notifications.

Cool Workaround:

In the platforms tree, for each “Engine”, put the FQDN in the Description field, like so:

image002.png

 

Now, in your notification, you can use the following macro: 

$Config[\VED\Engines\$Hostname$,Description]$

 

This should work for multiple Engines, just put the respective FQDN in the description for each Engine. 

Was this article helpful?
3 out of 3 found this helpful
Have more questions? Submit a request

Comments

Powered by Zendesk