Source |
|
DSC Resource |
|
Documentation |
Parameter | Attribute | DataType | Description | Allowed Values |
---|---|---|---|---|
Version |
Mandatory |
System.Version |
DSC configuration version |
|
Environment |
Mandatory |
String |
DSC environment information |
|
Layers |
String[] |
List of used layers (YAML files) for each node |
Note
|
To fill the |
Example
Datum.yml
(Excerpt)ResolutionPrecedence:
- AllNodes\$($Node.Environment)\$($Node.NodeName)
- Environment\$($Node.Environment)
- Roles\$($Node.Role)
- Roles\ServerBaseline
lookup_options:
# merge rules of DscTagging - using Add to identify duplicate module names
DscTagging:
merge_hash: deep
DscTagging\Modules:
merge_basetype_array: Add
Example
Environment\Dev.yml
(Excerpt)DscTagging:
Environment: Dev
Layers:
- Environment\Dev
Example
Roles\FileServer.yml
(Excerpt)DscTagging:
Layers:
- Roles\FileServer
Example
Roles\ServerBaseline.yml
(Excerpt)Configurations:
- DscTagging
DscTagging:
Version: 0.3.0
Layers:
- Roles\ServerBaseline
Example of RSOP
MyComputer.yml
(Excerpt)Configurations:
- DscTagging
DscTagging:
Version: 0.3.0
Environment: Dev
Layers:
- Environment\Dev
- Roles\FileServer
- Roles\ServerBaseline