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
188 stars 74 forks source link

Support for Packer Windows Update Provisioner #8

Closed jwmoss closed 1 year ago

jwmoss commented 3 years ago

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!

marcinbojko commented 3 years ago

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

jwmoss commented 3 years ago

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.

marcinbojko commented 3 years ago

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

marcinbojko commented 1 year ago

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

marcinbojko commented 1 year ago

Fixed by https://github.com/marcinbojko/hv-packer/releases/tag/3.0.0