From ef601ae468224114a149e0490f3589e3ecd11cda Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Wed, 15 Dec 2010 12:56:34 +0000 Subject: - add templating extraction logic to transifex --- modules/transifex/manifests/init.pp | 6 ++++++ modules/transifex/templates/50-project.conf | 1 + 2 files changed, 7 insertions(+) (limited to 'modules/transifex') diff --git a/modules/transifex/manifests/init.pp b/modules/transifex/manifests/init.pp index 575872f8..4f186c03 100644 --- a/modules/transifex/manifests/init.pp +++ b/modules/transifex/manifests/init.pp @@ -7,6 +7,8 @@ class transifex { $pgsql_password = extlookup("transifex_pgsql",'x') $ldap_password = extlookup("transifex_ldap",'x') + $templates_dir = "/var/lib/transifex/templates" + @@postgresql::user { 'transifex': password => $pgsql_password, } @@ -72,6 +74,10 @@ class transifex { notify => Service['apache'] } + svn::snapshot { $templates_dir: + source => "svn://svn.mageia.org/svn/web/templates/transifex/trunk" + } + apache::vhost_django_app { "transifex.$domain": module => "transifex", use_ssl => true, diff --git a/modules/transifex/templates/50-project.conf b/modules/transifex/templates/50-project.conf index 24b4f291..707e3113 100644 --- a/modules/transifex/templates/50-project.conf +++ b/modules/transifex/templates/50-project.conf @@ -39,6 +39,7 @@ MIDDLEWARE_CLASSES = [ ROOT_URLCONF = 'urls' TEMPLATE_DIRS = [ + '<%= templates_dir %>', os.path.join(TX_ROOT, 'templates'), ] -- cgit v1.2.1