From 18de79c2b6ff1a36a4e7ea85489538e44529ff49 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Felix=20D=C3=B6rre?= Date: Tue, 9 Jan 2018 10:43:15 +0100 Subject: [PATCH] fix: postgres for quiz Change-Id: Ide5ec67d80adc016d7a7ae6a9ea0a417fc9af518 --- environments/production/manifests/quiz.pp | 5 +++++ modules/quiz/templates/sq_config.epp | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/environments/production/manifests/quiz.pp b/environments/production/manifests/quiz.pp index 5d5e3a0..23c6fdf 100644 --- a/environments/production/manifests/quiz.pp +++ b/environments/production/manifests/quiz.pp @@ -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', diff --git a/modules/quiz/templates/sq_config.epp b/modules/quiz/templates/sq_config.epp index 5d9fb89..30c0fda 100644 --- a/modules/quiz/templates/sq_config.epp +++ b/modules/quiz/templates/sq_config.epp @@ -1,6 +1,6 @@ /'; - $sq_hostname='localhost'; + $sq_hostname='<%=$ips[postgres]%>'; $sq_dbname='quiz'; $sq_dbusername='quiz'; $sq_dbpassword='<%=$passwords[postgres][quiz]%>'; -- 2.39.5