marcinbojko / hv-packer

Hyper-V Generation 2 Packer Templates for Windows 2019/2022, AlmaLinux 8.x/AlmaLinux 9.x/RockyLinux 8.x/9.x/OracleLinux 8.x/9.x Ubuntu 20.04/Ubuntu 22.04/Ubuntu 24.04

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support for Packer Windows Update Provisioner

jwmoss opened this issue · comments

Have you considered integrating Packer Windows Update Provisioner into your provision steps? The output of this plugin is much cleaner when ran via PowerShell vs raw output of the WU com object with PSWindowsupdate.

I'll be testing this against Windows Server 2019 DC and will report back if there are any issues.

Love the work you've done so far! Having come from a VMware shop to HyperV shop has been challenging, but your code has helped tremendously!

Hi @jwmoss - this is an excellent idea, however, I wanted scripts to be both usable in packer AND bare-metal construction. Thank you for your kind words - I really appreciate it.
I am not saying no to Packer, but I need to reconsider the posibilities

Hi @jwmoss - this is an excellent idea, however, I wanted scripts to be both usable in packer AND bare-metal construction. Thank you for your kind words - I really appreciate it.

I am not saying no to Packer, but I need to reconsider the posibilities

That makes sense! I myself use the module to manage updates as well, so I know how powerful it is.

Your idea is an excellent, in a form I hate this repetitious task, as WU always reports different count of updates than reality says.

It's only a year and a half , but next release should support this plugin