-
Notifications
You must be signed in to change notification settings - Fork 34
Export scenario support #171
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Create issues for the two items you identified for providers and PS not supported and link to this PR
To clarify my understanding of the behavior here:
Assuming that's correct, a few thoughts: Regarding the semantics/output of
|
"No formatting" part is not correct. Internally there is deserialization from json, emitted by resource, into internal representation and then serialization into output format. This means that dsc will catch errors like invalid json, issued by resource, and can report back json as well as yaml based on
I tend to agree with this. This would make it consistent so that |
f0a4640
to
b5f6495
Compare
63b007c
to
b760736
Compare
In PowerShell#171, DSC was updated to support the `export` commands and `dsc resource get --all` functionality. This change: - Updates the resource manifest schemas to include the `export` property. - Updates the documentation for the manifest schemas to reflect the change. - Adds documentation for the new `dsc config export` command. - Adds documentation for the new `dsc resource export` command. - Adds documentation for the new `--all` option for the `dsc resource get` command.
PR Summary
Fix #73 , #174
This adds support for enumeration of all resource instances.
Export support is declared in a resource manifest similar to Get/Set/Test methods:
In response to this call a resource is expected to return JSONLINES - one per resource instance.
Not implemented yet:
PSDesiredStateConfiguration
module)PR Context
Following scenarios supported:
This returns a configuration document that can be piped to
dsc config set
For example:
This returns a configuration document that can be piped to
dsc config set
For example:
dsc config get
result for every instance of the specified resource type.For example: