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 support for RHEL 9. #6

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
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
13 changes: 11 additions & 2 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
case $facts['os']['family'] {
'RedHat': {
case $facts['os']['release']['major'] {
'7', '8': {
'7', '8', '9': {
# Following the second method, using sysctl

# Validation
Expand All @@ -35,6 +35,15 @@
fail("Specified interfaces do not exist on host: ${bad_ifaces}")
}

# Install the libtirpc package.
package {'libtirpc':
ensure => installed,
before => [
File_line['netconfig-udp6'],
File_line['netconfig-tcp6'],
]
}

# Only runs after notify
exec { 'sysctl -p':
command => 'cat /etc/sysctl.d/*.conf | sysctl -p -',
Expand Down Expand Up @@ -104,7 +113,7 @@

}
default: {
fail("linux_disable_ipv6 supports RedHat like systems with major release of 7/8 and you have ${facts['os']['release']['full']}")
fail("linux_disable_ipv6 supports RedHat like systems with major release of 7/8/9 and you have ${facts['os']['release']['full']}")
}
}
}
Expand Down
3 changes: 2 additions & 1 deletion metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
"operatingsystem": "RedHat",
"operatingsystemrelease": [
"7",
"8"
"8",
"9"
]
}
],
Expand Down