Skip to content

Add salt-api on Windows platform - #48001

Merged
rallytime merged 3 commits into
saltstack:developfrom
rares-pop:dev/iepopr/add_salt-api_windows
Jun 11, 2018
Merged

Add salt-api on Windows platform#48001
rallytime merged 3 commits into
saltstack:developfrom
rares-pop:dev/iepopr/add_salt-api_windows

Conversation

@rares-pop

@rares-pop rares-pop commented Jun 6, 2018

Copy link
Copy Markdown
Contributor

salt-api is broken on Windows platform
due to pickling issues on the salt.loader.netapi
Workaround that by creating a runner class
that can be pickled.

Signed-off-by: Rares POP rares.pop@ni.com

What does this PR do?

It adds/fixes salt-api on the Windows platform, using rest_cherrypy module

Previous Behavior

salt-api wasn't available on Windows

New Behavior

The user is able to run the salt-api daemon on windows, using rest_cherrypy module

Tests written?

No

Commits signed with GPG?

No

Please review Salt's Contributing Guide for best practices.

See GitHub's page on GPG signing for more information about signing commits with GPG.

@ghost
ghost requested review from a team June 6, 2018 15:50
@rallytime
rallytime requested a review from a team June 7, 2018 20:52
@rallytime

Copy link
Copy Markdown
Contributor

@rares-pop Can you add this to the Fluorine release notes?

Rares POP added 2 commits June 11, 2018 11:38
salt-api is broken on Windows platform
due to pickling issues on the salt.loader.netapi
Workaround that by creating a runner class
that can be pickled.

Signed-off-by: Rares POP <rares.pop@ni.com>
Signed-off-by: Rares POP <rares.pop@ni.com>
@rares-pop

Copy link
Copy Markdown
Contributor Author

I did add a release note, but please review it and tell me if it looks right.

@rallytime rallytime left a comment

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.

Thanks @rares-pop!

I have a couple of very small requests. Once those are fixed up, we can get this in. :)

Comment thread doc/topics/releases/fluorine.rst Outdated
{% from '../foo' import bar %}

salt-api
============================

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 is picky, but can you make this line the same length as the text?

salt-api
========

We just spent a bunch of time fixing up RST syntax errors, so we want to keep these clean :D

Comment thread doc/topics/releases/fluorine.rst Outdated
============================

salt-api Windows support
--------------------------------

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.

Same comment here.

Comment thread doc/topics/releases/fluorine.rst Outdated
--------------------------------

Previously, salt-api was was not supported on the Microsoft Windows platforms. Now it is!
salt-api is providing a RESTful interface to a running Salt system. It allows

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.

salt-api is providing should be salt-api provides

Comment thread doc/topics/releases/fluorine.rst Outdated
Previously, salt-api was was not supported on the Microsoft Windows platforms. Now it is!
salt-api is providing a RESTful interface to a running Salt system. It allows
for viewing minions, runners, and jobs as well as running execution modules
and runners of a running Salt system through a REST API that returns JSON. No newline at end of file

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.

Adding a link to the Salt-API documentation might be a good idea here. :)

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.

Regarding Salt-API documentation, do you mean:
https://salt.readthedocs.io/projects/salt-api
or
https://docs.saltstack.com/topics/netapi/index.html
or something else?

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.

Ah, sorry I was unclear. The second one: https://docs.saltstack.com/en/latest/topics/netapi/index.html

Signed-off-by: Rares POP <rares.pop@ni.com>
@rallytime
rallytime merged commit 037d198 into saltstack:develop Jun 11, 2018
@rares-pop
rares-pop deleted the dev/iepopr/add_salt-api_windows branch June 12, 2018 15:53
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