Project

General

Profile

Actions

User story #17827

open

Give access to node short hostname in a variable

Added by François ARMAND almost 4 years ago. Updated almost 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 #1

Updated by François ARMAND almost 4 years ago

  • Subject changed from Give access to node hostname in a variable to Give access to node short hostname in a variable
Actions #2

Updated by François ARMAND almost 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)
Actions #3

Updated by François ARMAND almost 4 years ago

  • Description updated (diff)
Actions #4

Updated by François ARMAND almost 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
Actions #5

Updated by François ARMAND almost 4 years ago

  • Tracker changed from Bug to User story
  • Priority deleted (0)
Actions

Also available in: Atom PDF