Sampler.DscPipeline

0.2.0-preview0012

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

Minimum PowerShell version

5.1

This is a prerelease version of Sampler.DscPipeline.
There is a newer prerelease version of this module available.
See the version list below for details.

Installation Options

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

Install-Module -Name Sampler.DscPipeline -RequiredVersion 0.2.0-preview0012 -AllowPrerelease

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

Install-PSResource -Name Sampler.DscPipeline -Version 0.2.0-preview0012 -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-preview0012] - 2023-03-20

### 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.
- 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.

### 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 59 11/9/2024
0.2.0-previe... 3,943 3/6/2024
0.2.0-previe... 15,467 4/4/2023
0.2.0-previe... 9 4/4/2023
0.2.0-previe... 10 4/3/2023
0.2.0-previe... (current version) 111 3/20/2023
0.2.0-previe... 7 3/17/2023
0.2.0-previe... 6 3/17/2023
0.2.0-previe... 83 2/8/2023
0.2.0-previe... 6 2/8/2023
0.2.0-previe... 5 2/8/2023
0.2.0-previe... 5 2/7/2023
0.2.0-previe... 5 2/7/2023
0.2.0-previe... 14 2/6/2023
0.2.0-previe... 1,128 9/7/2022
0.2.0-previe... 1,415 4/14/2022
0.2.0-previe... 1,985 1/24/2022
0.1.1-previe... 254 1/11/2022
0.1.1-previe... 11 1/8/2022
0.1.1-previe... 45 12/28/2021
0.1.1-previe... 139 10/21/2021
Show less