Hide deprecation warnings in Ubuntu 20.04

This commit is contained in:
Micke Nordin 2023-09-08 07:39:34 +02:00
parent 234d19b652
commit b989bd3d54
Signed by untrusted user: Micke
GPG key ID: 0DA0A7A5708FE257

10
manifests/ubuntu_2004.pp Normal file
View file

@ -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\'',
}
}
}