diff --git a/manifests/init.pp b/manifests/init.pp index 92b47ad..f063cc4 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -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 @@ -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 -', @@ -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']}") } } } diff --git a/metadata.json b/metadata.json index f687c7d..ad364d5 100644 --- a/metadata.json +++ b/metadata.json @@ -18,7 +18,8 @@ "operatingsystem": "RedHat", "operatingsystemrelease": [ "7", - "8" + "8", + "9" ] } ],