Project

General

Profile

Actions

User story #14889

closed

Have the property of a specific node available for all nodes (in directive)

Added by P C almost 5 years ago. Updated 3 months ago.

Status:
Rejected
Priority:
N/A
Assignee:
-
Category:
Web - Nodes & inventories
UX impact:
Suggestion strength:
User visibility:
Effort required:
Name check:
Fix check:
Regression:
No

Description

Used case (personnal dyndns)
property = variable wan ip of a host (behind an orange box for example)
directive hosts to update /etc/hosts with this ip

Solution :
at generation interpret ${<node name or uid>.properties[key]} et not only ${node.properties[key]}

Actions #1

Updated by Alexis Mousset almost 5 years ago

  • Tracker changed from Architecture to User story
  • Category set to Web - Nodes & inventories
  • Target version set to Ideas (not version specific)
Actions #2

Updated by François ARMAND almost 5 years ago

This is interesting.

I see three main problem before we can do that:

- it will be challenging to keep tracks of changes, b/c it means that we now have a graphe of node interdependencies;
- the graphe need to be directed, and so policy generation order becomes meaningful
- and I don't know how to deal with cycles.

So, we need to be able to build the directed dependency graphe not only for directive/rules but also for nodes and ensure it has nice properties (acyclic)

Actions #3

Updated by Benoît PECCATTE almost 5 years ago

What about security, a property may be private to a node, we don't want to leak this information to another node

Actions #4

Updated by Vincent MEMBRÉ almost 5 years ago

We don't have dependency between properties, so it's only checking that it is defined for that node (and checking that a node exists) and break policy generation if so

My main concern is more like benoit said, do we want to leak that information? I think we should only generate that value server side, not leaking it as a variable to the node directly.

We could still use a default value though

Actions #5

Updated by François ARMAND 3 months ago

  • Status changed from New to Rejected
  • Regression set to No

We won't do that in a forseeble future. Properties can be managed by group or optained by script / inventory properties

Actions

Also available in: Atom PDF