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 Dec 29, 2023
1 parent 6d8a263 commit 73e5411
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,11 @@ This class also provides fine-grained control over which packages to install and
how to install them. The documentation for the parameters exposed can be found
[here](https://github.com/voxpupuli/puppet-network/blob/master/manifests/init.pp).

Bonding on Debian requires the package [ifenslave](https://packages.debian.org/search?suite=all&section=all&arch=any&searchon=names&keywords=ifenslave),
which is installed automatically when a bond is defined. This package was
renamed in Debian 9, and therefore bonding does not work on Debian
versions prior to 9.

Note: you may also need to update your master's plugins (run on your puppet master):

puppet agent -t --noop
Expand Down
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"
"10",
"11",
"12"
]
},
{
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 73e5411

Please sign in to comment.