Skip to content

Commit

Permalink
Merge pull request #215 from amateo/Ubuntu24.04
Browse files Browse the repository at this point in the history
Add support for Ubuntu 24.04 (noble)
  • Loading branch information
Dan33l authored Sep 16, 2024
2 parents 722d31e + 0b851ee commit cda893d
Show file tree
Hide file tree
Showing 3 changed files with 1,055 additions and 1 deletion.
3 changes: 2 additions & 1 deletion metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
"operatingsystemrelease": [
"18.04",
"20.04",
"22.04"
"22.04",
"24.04"
]
},
{
Expand Down
2 changes: 2 additions & 0 deletions spec/classes/init_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@
it { is_expected.to contain_class('fail2ban').with_config_file_template('fail2ban/Ubuntu/20.04/etc/fail2ban/jail.conf.epp') }
when ['Ubuntu', '22.04']
it { is_expected.to contain_class('fail2ban').with_config_file_template('fail2ban/Ubuntu/22.04/etc/fail2ban/jail.conf.epp') }
when ['Ubuntu', '24.04']
it { is_expected.to contain_class('fail2ban').with_config_file_template('fail2ban/Ubuntu/24.04/etc/fail2ban/jail.conf.epp') }
else
# has to be better way of doing this.
it { is_expected.to contain_class('fail2ban').with_config_file_template('a new os.name or os.release.major needs a new case') }
Expand Down
Loading

0 comments on commit cda893d

Please sign in to comment.