Sampler.DscPipeline

0.2.0-preview0016

Samper tasks for a DSC Pipeline using a Datum Yaml hierarchy.

Minimum PowerShell version

5.1

This is a prerelease version of Sampler.DscPipeline.

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Module -Name Sampler.DscPipeline -AllowPrerelease

Copy and Paste the following command to install this package using Microsoft.PowerShell.PSResourceGet More Info

Install-PSResource -Name Sampler.DscPipeline -Prerelease

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More

Owners

Copyright

(c) SynEdgy Limited. All rights reserved.

Package Details

Author(s)

  • Gael Colas

Tags

DSC Sampler InvokeBuild Tasks

Functions

Get-DatumNodesRecursive Get-DscErrorMessage Get-DscMofEnvironment Get-DscMofVersion Get-FilteredConfigurationData Split-Array

Dependencies

Release Notes

## [0.2.0-preview0016] - 2024-03-06

### Added

- Adding pipeline tasks and commands from DSC Workshop.
- Small changes to support easier deployment for individual environments.
- Added scripts for compiling MOF and Meta MOF files without the need for the `rootConfig.ps1` script. It is now a self-contained task that takes parameters from the `Build.yml`.
- Having modules available more than once results in: ImportCimAndScriptKeywordsFromModule : "A second CIM class definition
 for 'MSFT_PSRepository' was found while processing the schema file". Fixed that by using function 'Get-DscResourceFromModuleInFolder'.
 This usually happens with 'PackageManagement' and 'PowerShellGet'
- The handling of the DSC MOF compilation has changed. The file 'RootConfiguration.ps1' is still used when present in the source of
 the DSC project that uses 'Sampler.DscPipeline'. Same applies to the Meta MOF compilation script 'RootMetaMof.ps1'. If these
 files don't exist, 'Sampler.DscPipeline' uses the scripts in 'ModuleRoot\Scripts'. To control which DSC composite and resource modules should be imported within the DSC configuration, add the section 'Sampler.DscPipeline' to the 'build.yml' as described
 on top of the file 'CompileRootConfiguration.ps1'.
- Added error handling discovering 'CompileRootConfiguration.ps1' and 'RootMetaMof.ps1'
- Test cases updated to Pester 5.
- Fixing issue with ZipFile class not being present.
- Fixing calculation of checksum if attribute NodeName is different to attribute Name (of YAML file).
- Increase build speed of root configuration by only importing required Composites/Resources.
- Added ''UseEnvironment'' parameter to cater for RSOP for identical node names in different environments.
- Adding Home.md to wikiSource and correct casing.
- Removed PSModulePath manipulation from task `CompileRootConfiguration.build.ps1`. This is now handled by the Sampler task `Set_PSModulePath`.
- Redesign of the function Split-Array. Most of the time it was not working as expected, especially when requesting larger ChunkCounts (see AutomatedLab/AutomatedLab.Common/#118)
- Redesign of the function Split-Array. Most of the time it was not working as expected, especially when requesting larger ChunkCounts (see AutomatedLab/AutomatedLab.Common/#118).
- Improved error handling when compiling MOF files and when calling 'Get-DscResource'.
- Redesign of the function 'Split-Array'. Most of the time it was not working as expected, especially when requesting larger ChunkCounts (see AutomatedLab/AutomatedLab.Common/#118).
- Improved error handling when compiling MOF files.
- Removed name check when creating Meta MOF files.

### Fixed

- Fixed regex for commit message `--Added new node`
- Fixed task `Compress_Artifact_Collections` fails when node is filtered

FileList

Version History

Version Downloads Last updated
0.2.0-previe... (current version) 35 3/6/2024
0.2.0-previe... 10,281 4/4/2023
0.2.0-previe... 8 4/4/2023
0.2.0-previe... 9 4/3/2023
0.2.0-previe... 110 3/20/2023
0.2.0-previe... 6 3/17/2023
0.2.0-previe... 5 3/17/2023
0.2.0-previe... 82 2/8/2023
0.2.0-previe... 5 2/8/2023
0.2.0-previe... 4 2/8/2023
0.2.0-previe... 4 2/7/2023
0.2.0-previe... 4 2/7/2023
0.2.0-previe... 13 2/6/2023
0.2.0-previe... 1,127 9/7/2022
0.2.0-previe... 1,414 4/14/2022
0.2.0-previe... 1,984 1/24/2022
0.1.1-previe... 253 1/11/2022
0.1.1-previe... 10 1/8/2022
0.1.1-previe... 44 12/28/2021
0.1.1-previe... 138 10/21/2021
Show more