Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/noma4i/puppet-windows_updates
Manage Windows Updates from puppet
https://github.com/noma4i/puppet-windows_updates
devops-tools puppet-module windows-updates
Last synced: 3 days ago
JSON representation
Manage Windows Updates from puppet
- Host: GitHub
- URL: https://github.com/noma4i/puppet-windows_updates
- Owner: noma4i
- License: apache-2.0
- Created: 2015-01-21T05:15:47.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2020-12-15T10:34:35.000Z (almost 4 years ago)
- Last Synced: 2024-11-07T18:17:04.568Z (6 days ago)
- Topics: devops-tools, puppet-module, windows-updates
- Language: PowerShell
- Size: 227 KB
- Stars: 13
- Watchers: 7
- Forks: 9
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# windows_updates
Puppet module to install selected windows updates or mask of updates etc.
#### Cavets
You may need to use `puppet module install --ignore-dependencies` as powershell may present in your modules
#### How to use
Install specific update by KB number.
```puppet
windows_updates::kb {'KB3012199':
ensure => 'present'
}
````
or
```puppet
windows_updates::kb {'Some custom description':
ensure => 'present',
kb => 'KB3012199'
}
````Install specific update by KB number in a maintenance window.
```puppet
windows_updates::kb {'KB3012199':
ensure => 'present',
maintwindow => 'patch_window'
}
schedule { 'patch_window':
range => '01:00 - 03:00',
weekday => 'Saturday',
repeat => 1
}
````Install Updates by name or mask. Will install all updates matching `.Net*` mask
```puppet
windows_updates::list {'.Net Updates':
ensure => 'present',
name_mask => '.Net*'
}
````If you are not sure what updates go with name you set - use `dry_run` option and point it to output file.
```puppet
windows_updates::list {'.Net Updates':
ensure => 'present',
dry_run => 'C:\\what_will_be_installed.txt'
name_mask => '.Net*'
}
````In this case your `what_will_be_installed.txt` will look like:
```csv
ComputerName Status KB Size Title
------------ ------ -- ---- -----
WIN-H7VQ4... ------ KB2931358 322 KB Security Update for Microsoft .NET Frame...
WIN-H7VQ4... ------ KB2931366 584 KB Security Update for Microsoft .NET Frame...
WIN-H7VQ4... ------ KB2961851 15 MB Security Update for Internet Explorer 11...
WIN-H7VQ4... ------ KB2934520 72 MB Microsoft .NET Framework 4.5.2 for Windo...
```Install an update from within a WinRM remote session. Because wusa.exe cannot be used over WinRM directly, and `Invoke-WUInstall.ps1` works around this by scheduling a task to actually install the update.
```puppet
windows_updates::invoke_remote {'Some cool KB!':
ensure => 'present',
kb => 'KB3012199'
}
```