Skip to content

Commit

Permalink
Merge pull request #106 from traylenator/newoses
Browse files Browse the repository at this point in the history
Add support for Debian 12
  • Loading branch information
traylenator authored Feb 22, 2024
2 parents 5be4945 + 9e99a6a commit 024de07
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion REFERENCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ Default value: `true`

Data type: `Boolean`

use Net::INET6Glue , parameter is ignored on RedHat 9 and newer.
use Net::INET6Glue , parameter is ignored on RedHat 9 or Debian 12 and newer.

Default value: `false`

Expand Down
3 changes: 2 additions & 1 deletion manifests/config.pp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
) {
assert_private()

if $facts['os']['family'] == 'RedHat' and versioncmp($facts['os']['release']['major'],'9') >= 0 {
if $facts['os']['family'] == 'RedHat' and versioncmp($facts['os']['release']['major'],'9') >= 0 or
$facts['os']['name'] == 'Debian' and versioncmp($facts['os']['release']['major'],'12') >= 0 {
$_inet6glue = false
} else {
$_inet6glue = $inet6glue
Expand Down
2 changes: 1 addition & 1 deletion manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
# Do not create serial number symlinks.
#
# @param inet6glue
# use Net::INET6Glue , parameter is ignored on RedHat 9 and newer.
# use Net::INET6Glue , parameter is ignored on RedHat 9 or Debian 12 and newer.
#
# @param noerrors
# Do not produce errors.
Expand Down
3 changes: 2 additions & 1 deletion metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@
{
"operatingsystem": "Debian",
"operatingsystemrelease": [
"11"
"11",
"12"
]
},
{
Expand Down

0 comments on commit 024de07

Please sign in to comment.