saltstack / saltstack/salt

[DOCS] transfer files from a proxy minion device to a master?

Open
#59,394 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

doc-question doc-request documentation Proxy-Minion severity-medium time-estimate-sprint
Dominant language
Python
Stars
15.7k
Forks
5.6k
Avg merge
2d 44m
Merged PRs (30d)
80

Description

Description
So for a regular minion we can specify a file and send that to the master if we have the appropriate options setup in the master config to allow files from minion. However I am not confident in being able to specify a file on a network device from a proxy minion to send to the master.

because that salt state will try to grab the file from the proxy minions own file system rather than the network device?

device_logs:  <-- executed from a proxy minion
  module.run:
    - name: cp.push
    - path: /network/device/logfile.log <-- on the network device
    - upload_path: /var/cache/tmp  <-- on the master

Could someone clarify how they would use a proxy to pull a file from the device to the master in a similar manner, or does the above state work with proxies as well?

Resources

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the module.run and minionFS resources linked in the issue, then investigate how cp.push behaves when invoked through a proxy minion. Document whether the shown state can transfer a file from the network device to the master, and describe the supported proxy workflow if it cannot.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
documentation
Issue type
Documentation
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.