Actions
User story #17827
openGive access to node short hostname in a variable
Status:
New
Priority:
N/A
Assignee:
-
Category:
Web - Nodes & inventories
Target version:
-
Pull Request:
UX impact:
Suggestion strength:
User visibility:
Effort required:
Name check:
To do
Fix check:
To do
Regression:
Description
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
Also, inventory already contains one hostname (not sure which) in <Hardware>/<Name>
Updated by François ARMAND over 4 years ago
- Subject changed from Give access to node hostname in a variable to Give access to node short hostname in a variable
Updated by François ARMAND over 4 years ago
- Subject changed from Give access to node short hostname in a variable to Give access to node short hostname in a variable
- Description updated (diff)
Updated by François ARMAND over 4 years ago
- Related to Bug #17828: Inject short hostname as a node property to be able to use it in url/json path added
Updated by François ARMAND over 4 years ago
- Tracker changed from Bug to User story
- Priority deleted (
0)
Actions