diff --git a/spec/classes/ec2api_db_postgresql_spec.rb b/spec/classes/ec2api_db_postgresql_spec.rb index 1fe7d9e..8d31925 100644 --- a/spec/classes/ec2api_db_postgresql_spec.rb +++ b/spec/classes/ec2api_db_postgresql_spec.rb @@ -36,7 +36,11 @@ describe 'ec2api::db::postgresql' do :concat_basedir => '/var/lib/puppet/concat' })) end - it_behaves_like 'ec2api::db::postgresql' + + # TODO(tkajinam): Remove this once puppet-postgresql supports CentOS 9 + unless facts[:osfamily] == 'RedHat' and facts[:operatingsystemmajrelease].to_i >= 9 + it_behaves_like 'ec2api::db::postgresql' + end end end