Skip to content

Commit

Permalink
Merge pull request #1063 from puppetlabs/pdksync_GH-cat-11/main/add_u…
Browse files Browse the repository at this point in the history
…buntu_22.04_support

pdksync - (GH-cat-11) Certify Support for Ubuntu 22.04
  • Loading branch information
LukasAud committed Aug 16, 2022
2 parents 38295bd + da538b8 commit 3b5953c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/puppet/type/firewall.rb
Expand Up @@ -1874,8 +1874,8 @@ def should_to_s(value)
PUPPETCODE
newvalues(%r{^([0-9a-f]{2}[:]){5}([0-9a-f]{2})$}i)
facter_os_name = Facter.value(:os)['name'].downcase
facter_os_release = Facter.value(:os)['release']['major'].to_i
if ['debian-11', 'sles-15'].include?("#{facter_os_name}-#{facter_os_release}")
facter_os_release = Facter.value(:os)['release']['major']
if ['ubuntu-22.04', 'debian-11', 'sles-15'].include?("#{facter_os_name}-#{facter_os_release}")
munge do |value|
_value = value.downcase
end
Expand Down
3 changes: 2 additions & 1 deletion metadata.json
Expand Up @@ -63,7 +63,8 @@
"operatingsystem": "Ubuntu",
"operatingsystemrelease": [
"18.04",
"20.04"
"20.04",
"22.04"
]
},
{
Expand Down

0 comments on commit 3b5953c

Please sign in to comment.