Skip to content

Commit 54e12a3

Browse files
authored
Merge pull request #2 from markasammut/patch-1
Module should also work on RHEL8 hosts
2 parents d42bb34 + 6da8eb6 commit 54e12a3

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

manifests/init.pp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
case $facts['os']['family'] {
2121
'RedHat': {
2222
case $facts['os']['release']['major'] {
23-
'7': {
23+
'7', '8': {
2424
# Following the second method, using sysctl
2525

2626
# Validation
@@ -104,7 +104,7 @@
104104

105105
}
106106
default: {
107-
fail("linux_disable_ipv6 supports RedHat like systems with major release of 7 and you have ${facts['os']['release']['full']}")
107+
fail("linux_disable_ipv6 supports RedHat like systems with major release of 7/8 and you have ${facts['os']['release']['full']}")
108108
}
109109
}
110110
}

metadata.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
"operatingsystem": "RedHat",
1919
"operatingsystemrelease": [
2020
"6",
21-
"7"
21+
"7",
22+
"8"
2223
]
2324
}
2425
],

0 commit comments

Comments
 (0)