Skip to content

Commit

Permalink
Merge pull request #252 from maxadamo/master
Browse files Browse the repository at this point in the history
Revert "remove repo for Ubuntu 22.04"
  • Loading branch information
bastelfreak authored Oct 25, 2023
2 parents 40f7018 + d603a3e commit b06fc9f
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 b06fc9f

Please sign in to comment.