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

Bug: Update-Lab reapplies all DSC configs wo first testing current state #349

Open
DennisL68 opened this issue Mar 31, 2020 · 1 comment
Labels
enhancement The issue is an enhancement request. help wanted The issue is up for grabs for anyone in the community.

Comments

@DennisL68
Copy link

Verison of PowerShell: 
$PSVersionTable.PSVersion

Major  Minor  Build  Revision
-----  -----  -----  --------
5      1      17763  1007

PowerShell host:
Console

Operating system:
Get-CimInstance Win32_OperatingSystem | Select-Object Caption, Version, ServicePackMajorVersion, OSArchitecture, WindowsDirectory


Caption                 : Microsoft Windows Server 2019 Standard
Version                 : 10.0.17763
ServicePackMajorVersion : 0
OSArchitecture          : 64-bit
WindowsDirectory        : C:\Windows


Version of LabBuilder:
PS C:\Windows\system32> Get-Module -Name LabBuilder -ListAvailable


    Directory: C:\Program Files\WindowsPowerShell\Modules


ModuleType Version    Name                                ExportedCommands
---------- -------    ----                                ----------------
Script     1.0.5.105  LabBuilder                          {Get-LabResourceModule, Initialize-LabResourceModule, Get-...

When updating the lab containing DSC configs, it seems that all config is reapplied regardless if it's necessary or not.

To speed up an update, the DSC config should be checked at each node first using Test-DscConfiguration -Path MOF-folder path.
Then apply the config if it doesn't match or can't be found.

@DennisL68 DennisL68 changed the title Bug: Update-Lab reapplies all DSC configs wo firts testing current state Bug: Update-Lab reapplies all DSC configs wo first testing current state Mar 31, 2020
@PlagueHO PlagueHO added enhancement The issue is an enhancement request. help wanted The issue is up for grabs for anyone in the community. labels Apr 1, 2020
@PlagueHO
Copy link
Owner

PlagueHO commented Apr 1, 2020

Hi @DennisL68 - sounds like a great idea. I'll try and find some time to work on this module over the next week. My focus has recently been on updating the DSC community resources so haven't had any time to work on this module.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement The issue is an enhancement request. help wanted The issue is up for grabs for anyone in the community.
Projects
None yet
Development

No branches or pull requests

2 participants