Change-Id: Ide5ec67d80adc016d7a7ae6a9ea0a417fc9af518
require => [Package['teracara-quiz'], Class['postgresql::client']],
before => File['/etc/apache2/sites-available/000-default.conf']
}
+ package{'php-pgsql':
+ ensure => 'installed',
+ before => File['/etc/apache2/sites-available/000-default.conf'],
+ notify => Service['apache2'],
+ }
file {'/etc/apache2/sites-available/000-default.conf':
require => Package['apache2'],
ensure => 'file',
<?php
$sq_base_url='//quiz.<%=$systemDomain%>/';
- $sq_hostname='localhost';
+ $sq_hostname='<%=$ips[postgres]%>';
$sq_dbname='quiz';
$sq_dbusername='quiz';
$sq_dbpassword='<%=$passwords[postgres][quiz]%>';