]> WPIA git - infra.git/commitdiff
fix: postgres for quiz
authorFelix Dörre <felix@dogcraft.de>
Tue, 9 Jan 2018 09:43:15 +0000 (10:43 +0100)
committerFelix Dörre <felix@dogcraft.de>
Tue, 9 Jan 2018 09:43:15 +0000 (10:43 +0100)
Change-Id: Ide5ec67d80adc016d7a7ae6a9ea0a417fc9af518

environments/production/manifests/quiz.pp
modules/quiz/templates/sq_config.epp

index 5d5e3a0804f4fd21da29c4d6ba22d1808b4539b3..23c6fdf8f0296a0cc3087665fafe825b2acfcc1d 100644 (file)
@@ -51,6 +51,11 @@ define teracara_quiz (){
     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',
index 5d9fb89bf0415bebc8c56655f4f7024ae4fe4525..30c0fda6c055525501f471293d117df644416976 100644 (file)
@@ -1,6 +1,6 @@
 <?php
                 $sq_base_url='//quiz.<%=$systemDomain%>/';
-                $sq_hostname='localhost';
+                $sq_hostname='<%=$ips[postgres]%>';
                 $sq_dbname='quiz';
                 $sq_dbusername='quiz';
                 $sq_dbpassword='<%=$passwords[postgres][quiz]%>';