Skip to content

Commit

Permalink
Add Debian 11 and 12 support
Browse files Browse the repository at this point in the history
Change name of Debian package ifenslave-2.6 to ifenslave.

As of Debian 11, the package ifenslave-2.6 is no longer available,
causing puppet run failure when using bonds.

Debian 9 and 10 support is maintained because they also have the
ifenslave package (with ifenslave-2.6 marked as transitional).

This drops support for bonds in Debian 8, which is EOL since June 2018.
  • Loading branch information
hbog committed Aug 18, 2023
1 parent 6d8a263 commit 42340d8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion manifests/bond/setup.pp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
class network::bond::setup {
case $facts['os']['family'] {
'Debian': {
package { 'ifenslave-2.6':
package { 'ifenslave':
ensure => present,
}
}
Expand Down
4 changes: 3 additions & 1 deletion metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@
{
"operatingsystem": "Debian",
"operatingsystemrelease": [
"8"
"9",
"10",
"11"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion spec/classes/bond/setup_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
}
end

it { is_expected.to contain_package('ifenslave-2.6') }
it { is_expected.to contain_package('ifenslave') }
end
end

0 comments on commit 42340d8

Please sign in to comment.