Skip to content

Commit 0f21c67

Browse files
author
Kevin Reeuwijk
authored
v1.1.2: Fix High Priority patches not getting installed on Windows (#51)
* use correct variable * deduplicate last run info * update changelog for v1.1.2 * bump version to v1.1.2
1 parent 64fab22 commit 0f21c67

File tree

4 files changed

+14
-6
lines changed

4 files changed

+14
-6
lines changed

CHANGELOG.md

+8
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22

33
All notable changes to this project will be documented in this file.
44

5+
## Release 1.1.2
6+
7+
**Bugfixes**
8+
- Fixes a bug that caused High Priority OS patches for Windows not to be installed, due to the wrong variable being used.
9+
10+
**Improvements**
11+
- Deduplicates the list of installed patches on the last run, reported in the `patching_as_code` fact.
12+
513
## Release 1.1.1
614

715
**Improvements**

manifests/init.pp

+4-4
Original file line numberDiff line numberDiff line change
@@ -470,8 +470,8 @@
470470
path => "${facts['puppet_vardir']}/../../patching_as_code/last_run",
471471
show_diff => false,
472472
content => Deferred('patching_as_code::last_run',[
473-
$updates_to_install,
474-
$choco_updates_to_install
473+
$updates_to_install.unique,
474+
$choco_updates_to_install.unique
475475
]),
476476
schedule => 'Patching as Code - Patch Window',
477477
require => File["${facts['puppet_vardir']}/../../patching_as_code"],
@@ -489,8 +489,8 @@
489489
path => "${facts['puppet_vardir']}/../../patching_as_code/high_prio_last_run",
490490
show_diff => false,
491491
content => Deferred('patching_as_code::high_prio_last_run',[
492-
$high_prio_updates_to_install,
493-
$high_prio_choco_updates_to_install
492+
$high_prio_updates_to_install.unique,
493+
$high_prio_choco_updates_to_install.unique
494494
]),
495495
schedule => 'Patching as Code - High Priority Patch Window',
496496
require => File["${facts['puppet_vardir']}/../../patching_as_code"],

manifests/windows/patchday.pp

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
}
1919

2020
if $high_prio_updates.count > 0 {
21-
$updates.each | $kb | {
21+
$high_prio_updates.each | $kb | {
2222
patching_as_code::kb { $kb:
2323
ensure => 'present',
2424
maintwindow => 'Patching as Code - High Priority Patch Window'

metadata.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "puppetlabs-patching_as_code",
3-
"version": "1.1.1",
3+
"version": "1.1.2",
44
"author": "puppetlabs",
55
"summary": "Automated patching through desired state code",
66
"license": "Apache-2.0",

0 commit comments

Comments
 (0)