User story #9711
closed
Add generic methods to share files between nodes using rudder relay API
Added by Alexis Mousset about 8 years ago.
Updated over 2 years ago.
Description
We will create 2 new generic methods in ncf:
- sharedfile_to_node(target_uuid, file_id, file_path, ttl) where ttl is infinite by default
- sharedfile_from_node(source_uuid, file_id, file_path)
The first one will call HEAD on the shared-files API and if is gets a 404, call POST to send the content.
The second one will just download the file using regular cfengine protocol.
- Related to User story #9707: Add a Relay API: share files between nodes, launch run on remote run behind relay added
- Status changed from New to In progress
- Assignee set to Benoît PECCATTE
- Status changed from In progress to Pending technical review
- Assignee changed from Benoît PECCATTE to Alexis Mousset
- Pull Request set to https://github.com/Normation/ncf/pull/507
- Status changed from Pending technical review to Pending release
- % Done changed from 0 to 100
- Status changed from Pending release to Released
- Target version changed from master to ncf-1.2
- Project changed from 41 to Rudder
- Category changed from Generic methods to Generic methods
Also available in: Atom
PDF