Skip to content

Commit

Permalink
Revert "remove repo for Ubuntu 22.04"
Browse files Browse the repository at this point in the history
This reverts commit 40f7018.
  • Loading branch information
maxadamo committed Oct 25, 2023
1 parent 40f7018 commit d603a3e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
6 changes: 1 addition & 5 deletions manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,7 @@
$service_name = 'glusterd'
}
'Debian': {
# Ubuntu 22.04 includes GlusterFS in the base repositories
$repo = "${facts['os']['name']}_${facts['os']['release']['major']}" ? {
'Ubuntu_22.04' => false,
default => true
}
$repo = true
$server_package = 'glusterfs-server'
$client_package = 'glusterfs-client'
$service_name = 'glusterd'
Expand Down
3 changes: 1 addition & 2 deletions spec/classes/repo_apt_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@

describe 'gluster::repo::apt', type: :class do
on_supported_os.each do |os, os_facts|
# Ubuntu 22.04 does not require a repo
context "on #{os}", if: os_facts[:os]['family'] == 'Debian' and os_facts[:os]['release']['major'] != '22.04' do
context "on #{os}", if: os_facts[:os]['family'] == 'Debian' do
let(:facts) { os_facts }
let(:pre_condition) { 'require gluster::params' }

Expand Down

0 comments on commit d603a3e

Please sign in to comment.