Showing with 35 additions and 23 deletions.
  1. +7 −4 .github/CONTRIBUTING.md
  2. +1 −1 .msync.yml
  3. +8 −0 CHANGELOG.md
  4. +1 −1 Gemfile
  5. +10 −13 manifests/params.pp
  6. +3 −2 metadata.json
  7. +3 −1 spec/classes/other_debians_spec.rb
  8. +1 −0 spec/spec_helper.rb
  9. +1 −1 spec/spec_helper_acceptance.rb
11 changes: 7 additions & 4 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -232,18 +232,21 @@ simple tests against it after applying the module. You can run this
with:

```sh
BEAKER_setfile=debian11-64 bundle exec rake beaker
BEAKER_PUPPET_COLLECTION=puppet7 BEAKER_setfile=debian11-64 bundle exec rake beaker
```

You can replace the string `debian10` with any common operating system.
You can replace the string `debian11` with any common operating system.
The following strings are known to work:

* ubuntu1804
* ubuntu2004
* debian10
* ubuntu2204
* debian11
* centos7
* centos8
* centos9
* almalinux8
* almalinux9
* fedora36

For more information and tips & tricks, see [voxpupuli-acceptance's documentation](https://github.com/voxpupuli/voxpupuli-acceptance#running-tests).

Expand Down
2 changes: 1 addition & 1 deletion .msync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
# Managed by modulesync - DO NOT EDIT
# https://voxpupuli.org/docs/updating-files-managed-with-modulesync/

modulesync_config_version: '6.0.0'
modulesync_config_version: '7.0.0'
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@ All notable changes to this project will be documented in this file.
Each new release typically also includes the latest modulesync defaults.
These should not affect the functionality of the module.

## [v8.1.0](https://github.com/voxpupuli/puppet-unattended_upgrades/tree/v8.1.0) (2023-10-30)

[Full Changelog](https://github.com/voxpupuli/puppet-unattended_upgrades/compare/v8.0.0...v8.1.0)

**Implemented enhancements:**

- Add Debian 12 support [\#236](https://github.com/voxpupuli/puppet-unattended_upgrades/pull/236) ([weaselp](https://github.com/weaselp))

## [v8.0.0](https://github.com/voxpupuli/puppet-unattended_upgrades/tree/v8.0.0) (2023-06-23)

[Full Changelog](https://github.com/voxpupuli/puppet-unattended_upgrades/compare/v7.1.0...v8.0.0)
Expand Down
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
source ENV['GEM_SOURCE'] || 'https://rubygems.org'

group :test do
gem 'voxpupuli-test', '~> 6.0', :require => false
gem 'voxpupuli-test', '~> 7.0', :require => false
gem 'coveralls', :require => false
gem 'simplecov-console', :require => false
gem 'puppet_metadata', '~> 3.0', :require => false
Expand Down
23 changes: 10 additions & 13 deletions manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,16 @@

case downcase($facts['os']['name']) {
'debian', 'raspbian': {
case fact('os.distro.codename') {
'bullseye': {
$origins = [
'origin=Debian,codename=${distro_codename},label=Debian', #lint:ignore:single_quote_string_with_variables
'origin=Debian,codename=${distro_codename}-security,label=Debian-Security', #lint:ignore:single_quote_string_with_variables
]
}
default: {
$origins = [
'origin=Debian,codename=${distro_codename},label=Debian', #lint:ignore:single_quote_string_with_variables
'origin=Debian,codename=${distro_codename},label=Debian-Security', #lint:ignore:single_quote_string_with_variables
]
}
if versioncmp($facts['os']['release']['major'], '11') >= 0 {
$origins = [
'origin=Debian,codename=${distro_codename},label=Debian', #lint:ignore:single_quote_string_with_variables
'origin=Debian,codename=${distro_codename}-security,label=Debian-Security', #lint:ignore:single_quote_string_with_variables
]
} else {
$origins = [
'origin=Debian,codename=${distro_codename},label=Debian', #lint:ignore:single_quote_string_with_variables
'origin=Debian,codename=${distro_codename},label=Debian-Security', #lint:ignore:single_quote_string_with_variables
]
}
}
'ubuntu', 'neon': {
Expand Down
5 changes: 3 additions & 2 deletions metadata.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "puppet-unattended_upgrades",
"version": "8.0.0",
"version": "8.1.0",
"author": "Vox Pupuli",
"summary": "Provides an interface for managing Apt unattended_upgrades with Puppet",
"license": "Apache-2.0",
Expand All @@ -20,7 +20,8 @@
"operatingsystem": "Debian",
"operatingsystemrelease": [
"10",
"11"
"11",
"12"
]
},
{
Expand Down
4 changes: 3 additions & 1 deletion spec/classes/other_debians_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@
name: 'Raspbian',
family: 'Debian',
release: {
full: '8.0'
full: '8.0',
major: '8',
minor: '0'
}
},
osfamily: 'Debian',
Expand Down
1 change: 1 addition & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@
add_custom_fact name.to_sym, value
end
end
Dir['./spec/support/spec/**/*.rb'].sort.each { |f| require f }
2 changes: 1 addition & 1 deletion spec/spec_helper_acceptance.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@

require 'voxpupuli/acceptance/spec_helper_acceptance'

configure_beaker
configure_beaker(modules: :metadata)

Dir['./spec/support/acceptance/**/*.rb'].sort.each { |f| require f }