Project

General

Profile

Actions

User story #10818

closed

Technique to UPLOAD a file from a node

Added by Hamlyn Mootoo almost 7 years ago. Updated about 2 years ago.

Status:
Resolved
Priority:
N/A
Assignee:
-
Category:
Techniques
UX impact:
Suggestion strength:
Want - This would make my life a lot easier but I can manage without
User visibility:
Operational - other Techniques | Technique editor | Rudder settings
Effort required:
Name check:
Fix check:
Regression:

Description

It would be really helpful to be able to UPLOAD a file from a specified location on a node to a directory on the rudder server. Ideally this directory would be different from the one used to do file downloads from the rudder server to the target nodes. When deploying rudder into an existing environment, it is sometimes necessary to determine whether a certain file might be non-compliant and in what way. For example, it would be helpful to upload all the resolv.conf files on all the nodes to see which vary, and to what degree. By having all the files in one place it would be easy run a script to find the exceptions and differences between the different nodes in order to fix outlying configurations, and to determine how to group directives that might be used to subsequently enforce different sets of contents for the files on certain nodes.

I envision that the uploaded files would be prefixed or suffixed by the node names from which they came and/or maybe a uuid.

Actions #1

Updated by François ARMAND almost 7 years ago

Hello,

If I understand correctly, you want to share file wity "root": https://www.rudder-project.org/doc-4.1/_how_to.html#_share_files_between_nodes ? Please tell us if the description miss some documentation or example.

Actions #2

Updated by Hamlyn Mootoo almost 7 years ago

I'm not trying to share a file from a single node to another, I'm trying to upload a file at a specific path from ALL nodes, up to a place on the rudder server. Pretty much the exact reverse of what the "Download a file from the shared folder" technique does. Let's say I want to upload all the host files from all the nodes under management, I would specify "/etc/hosts" and I would expect the technique to retrieve all of the /etc/hosts files from all servers and they would show up as node1_hosts, node2_hosts, etc. in a directory on the rudder server.

Actions #3

Updated by Hamlyn Mootoo almost 7 years ago

I was able to mainly produce what I wanted by creating a technique in the technique editor using the "Sharedfile to node" method, and specifying root for the uuid since there will not be an associated download for the file, however in the directive created from this technique, there is no text box to specify file name. This forces me to create a different technique for each different file I would want to upload. I'm trying to just create 1 technique and use different directives based on this technique to upload different files.

Is there a way to modify this technique so that when the directive is created from it, it gives a text input box to specify file name?

Actions #4

Updated by Benoît PECCATTE about 6 years ago

  • Target version set to Ideas (not version specific)
Actions #5

Updated by François ARMAND about 2 years ago

Technique can now have parameter, I'm closing that ticket.

Actions #6

Updated by François ARMAND about 2 years ago

  • Status changed from New to Resolved
Actions

Also available in: Atom PDF