diff --git a/README.md b/README.md index 528c695..83de4f6 100644 --- a/README.md +++ b/README.md @@ -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'. diff --git a/spec/system/server_spec.rb b/spec/system/server_spec.rb index a1d4883..a848d4c 100644 --- a/spec/system/server_spec.rb +++ b/spec/system/server_spec.rb @@ -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