Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
alan-cugler opened this issue Feb 1, 2021 · 3 comments
Open

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

alan-cugler opened this issue Feb 1, 2021 · 3 comments
Labels
doc-question Question related to specific doc reference doc-request net new docs requested Documentation Relates to Salt documentation Proxy-Minion severity-medium 3rd level, incorrect or bad functionality, confusing and lacks a work around time-estimate-sprint
Milestone

Comments

@alan-cugler
Copy link
Contributor

alan-cugler commented Feb 1, 2021

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

@alan-cugler alan-cugler added the Documentation Relates to Salt documentation label Feb 1, 2021
@alan-cugler
Copy link
Contributor Author

https://stackoverflow.com/questions/52987740/saltstack-how-i-can-copy-file-from-minion-to-saltstack-file-server/52987973#52987973

This is for a regular minion file transfer to the master, and I am asking for a proxy minion.

@sagetherage
Copy link
Contributor

@alan-cugler not everything for proxy minion is supported or documented, but let me get an engineer to confirm this specific use case.

@alan-cugler
Copy link
Contributor Author

alan-cugler commented Feb 2, 2021

The workaround I had thought up if this isnt possible, is to write a scp (get) state from device to proxy and then using the above state from proxy minion to master.

@sagetherage sagetherage added this to the Approved milestone Mar 2, 2021
@sagetherage sagetherage added doc-request net new docs requested and removed needs-triage labels Mar 2, 2021
@barbaricyawps barbaricyawps added doc-question Question related to specific doc reference time-estimate-sprint severity-medium 3rd level, incorrect or bad functionality, confusing and lacks a work around labels Feb 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc-question Question related to specific doc reference doc-request net new docs requested Documentation Relates to Salt documentation Proxy-Minion severity-medium 3rd level, incorrect or bad functionality, confusing and lacks a work around time-estimate-sprint
Projects
None yet
Development

No branches or pull requests

4 participants