[Mageia-sysadm] [628] - add templating extraction logic to transifex

root at mageia.org root at mageia.org
Wed Dec 15 13:56:34 CET 2010


Revision: 628
Author:   misc
Date:     2010-12-15 13:56:34 +0100 (Wed, 15 Dec 2010)
Log Message:
-----------
- add templating extraction logic to transifex

Modified Paths:
--------------
    puppet/modules/transifex/manifests/init.pp
    puppet/modules/transifex/templates/50-project.conf

Modified: puppet/modules/transifex/manifests/init.pp
===================================================================
--- puppet/modules/transifex/manifests/init.pp	2010-12-15 12:56:33 UTC (rev 627)
+++ puppet/modules/transifex/manifests/init.pp	2010-12-15 12:56:34 UTC (rev 628)
@@ -7,6 +7,8 @@
   $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 @@
     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,

Modified: puppet/modules/transifex/templates/50-project.conf
===================================================================
--- puppet/modules/transifex/templates/50-project.conf	2010-12-15 12:56:33 UTC (rev 627)
+++ puppet/modules/transifex/templates/50-project.conf	2010-12-15 12:56:34 UTC (rev 628)
@@ -39,6 +39,7 @@
 ROOT_URLCONF = 'urls'
 
 TEMPLATE_DIRS = [
+    '<%= templates_dir %>',
     os.path.join(TX_ROOT, 'templates'),
 ]
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/mageia-sysadm/attachments/20101215/13102201/attachment.html>


More information about the Mageia-sysadm mailing list