Fix selinux permissions for fedora tests

Signed-off-by: Ken Barber <ken@bob.sh>
This commit is contained in:
Ken Barber 2013-09-18 13:40:15 +01:00
parent a8f86f9df1
commit 5370fbeb10

View file

@ -18,13 +18,16 @@ describe 'common patterns:' do
it "should support an 'include' directive at the end of postgresql.conf" do
pending('no support for include directive with centos 5/postgresql 8.1',
:if => (node.facts['osfamily'] == 'RedHat' and node.facts['lsbmajdistrelease'] == '5'))
pp = <<-EOS
class { 'postgresql::server': }
$extras = "/tmp/include.conf"
$extras = "/etc/postgresql-include.conf"
file { $extras:
content => 'max_connections = 123',
seltype => 'postgresql_db_t',
seluser => 'system_u',
notify => Class['postgresql::server::service'],
}