Info: Easy macro hostname replacement
Symptom
Note: This article has become obsolete because we now ship FQDN macros
-Aaron Hixson
Applies To:
Venafi TrustAuthority 14.1, Venafi TrustForce 14.1
Summary:
The $hostname$ macro returns just the shortname of the engine that its running on. This is good, but doesnt work well when used inside links in email notifications because it often doesnt match the name on the certificate being used and/or wont resolve via DNS for some clients. We dont 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 were 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:
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.