aboutsummaryrefslogtreecommitdiffstats
path: root/modules/transifex
diff options
context:
space:
mode:
Diffstat (limited to 'modules/transifex')
-rw-r--r--modules/transifex/manifests/init.pp3
-rw-r--r--modules/transifex/templates/20-engines.conf2
2 files changed, 3 insertions, 2 deletions
diff --git a/modules/transifex/manifests/init.pp b/modules/transifex/manifests/init.pp
index 99331921..9485a6b7 100644
--- a/modules/transifex/manifests/init.pp
+++ b/modules/transifex/manifests/init.pp
@@ -2,7 +2,8 @@ class transifex {
package { 'transifex':
ensure => installed
}
-
+
+ $password = extlookup("transifex_password")
file { "20-engines.conf":
path => "/etc/transifex/20-engines.conf",
ensure => present,
diff --git a/modules/transifex/templates/20-engines.conf b/modules/transifex/templates/20-engines.conf
index ac59cb45..ed826902 100644
--- a/modules/transifex/templates/20-engines.conf
+++ b/modules/transifex/templates/20-engines.conf
@@ -9,7 +9,7 @@ DATABASE_ENGINE = 'postgresql_psycopg2'
DATABASE_NAME = 'transifex'
# The following are not used for sqlite3
DATABASE_USER = 'transifex'
-DATABASE_PASSWORD = 'transifex'
+DATABASE_PASSWORD = '<%= password %>'
DATABASE_HOST = 'pgsql.mageia.org' # Set to empty string for local socket
DATABASE_PORT = '' # Set to empty string for default