Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Debian 11 and 12 support #308

Merged
merged 1 commit into from
Jan 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading