Skip to content

Commit

Permalink
fixes #16: Drop postgresql globals
Browse files Browse the repository at this point in the history
  • Loading branch information
ehelms committed Dec 9, 2019
1 parent 0b06117 commit de3564f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 13 deletions.
12 changes: 0 additions & 12 deletions manifests/database.pp
Original file line number Diff line number Diff line change
@@ -1,18 +1,6 @@
# Set up the PostgreSQL and Redis databases
# @api private
class pulpcore::database {

class { 'postgresql::globals':
version => '10',
client_package_name => 'rh-postgresql10-postgresql-syspaths',
server_package_name => 'rh-postgresql10-postgresql-server-syspaths',
contrib_package_name => 'rh-postgresql10-postgresql-contrib-syspaths',
service_name => 'postgresql',
datadir => '/var/lib/pgsql/data',
confdir => '/var/lib/pgsql/data',
bindir => '/usr/bin',
}

include postgresql::client
include postgresql::server
postgresql::server::db { $pulpcore::postgresql_db_name:
Expand Down
16 changes: 15 additions & 1 deletion spec/acceptance/basic_spec.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,21 @@
require 'spec_helper_acceptance'

describe 'basic installation' do
let(:pp) { 'include pulpcore' }
let(:pp) {
<<-PUPPET
class { 'postgresql::globals':
version => '10',
client_package_name => 'rh-postgresql10-postgresql-syspaths',
server_package_name => 'rh-postgresql10-postgresql-server-syspaths',
contrib_package_name => 'rh-postgresql10-postgresql-contrib-syspaths',
service_name => 'postgresql',
datadir => '/var/lib/pgsql/data',
confdir => '/var/lib/pgsql/data',
bindir => '/usr/bin',
}
include pulpcore
PUPPET
}

it_behaves_like 'a idempotent resource'

Expand Down

0 comments on commit de3564f

Please sign in to comment.