Skip to content

Commit

Permalink
Merge pull request #308 from hbog/debian11
Browse files Browse the repository at this point in the history
Add Debian 11 and 12 support
  • Loading branch information
silug authored Jan 22, 2024
2 parents 251d737 + 73e5411 commit 1a4ec32
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 @@ -140,6 +140,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 @@ -54,7 +54,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 1a4ec32

Please sign in to comment.