Skip to content

Add execution module to SCP files on devices where we can't install the Salt Minion#48861

Merged
rallytime merged 3 commits into
saltstack:developfrom
mirceaulinic:scp-mod
Aug 6, 2018
Merged

Add execution module to SCP files on devices where we can't install the Salt Minion#48861
rallytime merged 3 commits into
saltstack:developfrom
mirceaulinic:scp-mod

Conversation

@mirceaulinic
Copy link
Copy Markdown
Contributor

What does this PR do?

This is one of the major downsides of managing devices (such as network gear) where we can't install the Salt Minion and use salt-cp.
This module can be used alone, as-is, but it will be used in future modules and states such as upgrading the firmware on network devices, etc.

@rallytime
Copy link
Copy Markdown
Contributor

Hey @mirceaulinic - There's a merge conflict on this PR. Can you rebase?

@mirceaulinic
Copy link
Copy Markdown
Contributor Author

Rebased and fixed the conflicts now @rallytime - thanks!

@rallytime rallytime requested a review from a team August 5, 2018 18:26
Copy link
Copy Markdown
Contributor

@rallytime rallytime left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One request from me. :)

Comment thread salt/modules/scp_mod.py Outdated
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs print_function and unicode_literals.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, sorry I always forget them.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added now

Comment thread salt/modules/napalm_mod.py Outdated
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reading the docs here, it's not clear what kwargs could be passed here and what effect they would have.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point - I will add some docs on this. Thanks for suggestion!

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added some more notes into the docstring of these functions, please let me know what you think!

@rallytime rallytime merged commit c0dde8e into saltstack:develop Aug 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants