Project

General

Profile

Actions

User story #17827

open

Give access to node short hostname in a variable

Added by François ARMAND over 4 years ago. Updated over 4 years ago.

Status:
New
Priority:
N/A
Assignee:
-
Category:
Web - Nodes & inventories
Target version:
-
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>


Related issues 1 (0 open1 closed)

Related to Datasources - Bug #17828: Inject short hostname as a node property to be able to use it in url/json pathReleasedVincent MEMBRÉActions
Actions

Also available in: Atom PDF