Project

General

Profile

Actions

User story #6264

closed

Get directive parameter value from external source (kv store, rest, etc)

Added by François ARMAND about 9 years ago. Updated over 3 years ago.

Status:
Resolved
Priority:
N/A
Assignee:
-
Category:
Techniques
UX impact:
Suggestion strength:
User visibility:
Effort required:
Name check:
Fix check:
Regression:

Description

We want to allows user to get the value of a directive from an external source, at run time (not at promise generation time like done in #1203). Typical sources are:

- database, especially K/V store à la Redis,
- third party REST API
- file content
- and more generally, command execution result

We will have to take some care for things like:

- error management: what happen if the call fails? (easy idea: always provide a defaults value - but not applicable in all case)
- performance: that can take a lot of time, so it needs to be run only once by agent run, and always have a timeout

On that user story, we only observe values when agent is run: there is no reactive run of the agent when such an external changes. The reactive part would have to be implemented on the behalf of the value owner. For example, if the external value provider is consul, we could use https://github.com/hashicorp/consul-template to make it runs rudder-agent each time a value change.


Related issues 4 (2 open2 closed)

Related to Rudder - User story #1203: Provision options list from external source (URL, JSON, XML...)New2011-04-05Actions
Related to Rudder - User story #6246: Feature idea: Allow other variable types when using the cfengine variable techniqueNewActions
Related to Rudder - User story #9698: Import node properties from external data sourcesReleased2016-11-21Actions
Related to Rudder - User story #8629: Allows generation-time javascript eval in directive parametersReleasedFrançois ARMAND2016-07-28Actions
Actions

Also available in: Atom PDF