Added xlogdir test to basic install/db creation validation test. Updated README

This commit is contained in:
Aaron Blew 2013-12-13 13:41:25 -08:00 committed by Marco Nenciarini
parent 2b81d5cb63
commit ce467633d1
2 changed files with 10 additions and 0 deletions

View file

@ -319,6 +319,9 @@ This setting can be used to override the default postgresql configuration direct
####`bindir`
This setting can be used to override the default postgresql binaries directory for the target platform. If not specified, the module will use whatever directory is the default for your OS distro.
####`xlogdir`
This setting can be used to override the default postgresql xlog directory. If not specified the module will use initdb's default path.
####`user`
This setting can be used to override the default postgresql super user and owner of postgresql related files in the file system. If not specified, the module will use the user name 'postgres'.

View file

@ -100,6 +100,7 @@ describe 'server without defaults:' do
manage_package_repo => true,
encoding => 'UTF8',
locale => 'en_US.UTF-8',
xlogdir => '/tmp/pg_xlogs',
}
class { "postgresql::server": }
postgresql::server::db { "postgresql_test_db":
@ -117,6 +118,12 @@ describe 'server without defaults:' do
r.exit_code.should == 0
end
shell 'test -d /tmp/pg_xlogs' do |r|
r.stdout.should be_empty
r.stderr.should be_empty
r.exit_code.should be_zero
end
psql('postgresql_test_db --command="select datname from pg_database limit 1"') do |r|
r.exit_code.should == 0
end