User story #17827
Updated by François ARMAND over 4 years ago
Sometime, you don't want the node FQDN (what is available in @${rudder.node.hostname}@ but just the hostname. Rudder doesn't provide that.
The difficulty arise when we wonder what exactly we want to provide, because hostname is complicated (result of what command/info, for each OS).
We may want to provide that value for variable @${rudder.node.shortHostname}@ (replaced in directive) and/or @${node.inventory[shortHostname]}@ (not replaced in directive).
Note: for rudder agent on linux/unix,we have at agent run time only the following variables available:
- @sys.host@: kernel hostname,
- @sys.fqhost@: node FQDN
- @sys.uqhost@: first part of node FQDN