diff --git a/manifests/ubuntu_2004.pp b/manifests/ubuntu_2004.pp new file mode 100644 index 0000000..b30e5c2 --- /dev/null +++ b/manifests/ubuntu_2004.pp @@ -0,0 +1,10 @@ +# Class for Ubuntu 20.04 +class sunetdrive::ubuntu_2004() { + if $facts['os']['name'] == 'Ubuntu' and $facts['os']['distro']['release']['full'] == '20.04' { + # Hide deprecation warnings for Ubuntu 2004 + file_line {'env_rubyopt': + path => '/etc/environment', + line => 'RUBYOPT=\'-W0\'', + } + } +}