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

Python adapter #586

Open
SteveL-MSFT opened this issue Oct 25, 2024 · 1 comment
Open

Python adapter #586

SteveL-MSFT opened this issue Oct 25, 2024 · 1 comment
Labels
Issue-Enhancement The issue is a feature or idea Needs Triage
Milestone

Comments

@SteveL-MSFT
Copy link
Member

Summary of the new feature / enhancement

To make DSC successful on Linux, we probably need a Python adapter. The key part is to keep it idiomatic Python.

Proposed technical implementation details (optional)

We could use Python classes with the same type of model as PowerShell classes with individual get(), set(), test(), export() methods and the class defines the schema that the adapter would validate against.

@SteveL-MSFT SteveL-MSFT added Issue-Enhancement The issue is a feature or idea Needs Triage labels Oct 25, 2024
@SteveL-MSFT SteveL-MSFT added this to the 3.1-Consider milestone Oct 25, 2024
@michaeltlombardi
Copy link
Collaborator

It's probably a good idea to implement this as a python script that uses a module for defining and interacting with resources, so resource authors can leverage some shared code to define resources.

For example, we could define DscResource as an abstract class that authors could use - ensuring a common implementation surface that is documented and reusable. We could also provide the helpers for converting to/from JSON, emitting messages for DSC, retrieving manifest information, etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Enhancement The issue is a feature or idea Needs Triage
Projects
None yet
Development

No branches or pull requests

2 participants