packer-plugin-windows-update
packer-plugin-windows-update copied to clipboard
Conditional values for SearchCriteria and Filters
I need to conditionally define the parameter values for SearchCriteria and Filters. Would I need to run the windows-update.ps1 script rather than using the provisioner?
For example, set variables for both and then call the script
$varSearchCriteria = 'IsInstalled=0' $varFilters = @('include:$true')
windows-update.ps1 -SearchCriteria $varCriteria -Filters $varFilters
Is it possible to achieve the above using the provisioner?