aboutsummaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorMichael Scherer <misc@mageia.org>2010-12-15 12:56:34 +0000
committerMichael Scherer <misc@mageia.org>2010-12-15 12:56:34 +0000
commitef601ae468224114a149e0490f3589e3ecd11cda (patch)
tree1e12e7890c58b3de650903529cbd8d3d0ff4c3e4 /modules
parentc5aa7b184ddf38c29687d8bf1b6e9d71423f209a (diff)
downloadpuppet-ef601ae468224114a149e0490f3589e3ecd11cda.tar
puppet-ef601ae468224114a149e0490f3589e3ecd11cda.tar.gz
puppet-ef601ae468224114a149e0490f3589e3ecd11cda.tar.bz2
puppet-ef601ae468224114a149e0490f3589e3ecd11cda.tar.xz
puppet-ef601ae468224114a149e0490f3589e3ecd11cda.zip
- add templating extraction logic to transifex
Diffstat (limited to 'modules')
-rw-r--r--modules/transifex/manifests/init.pp6
-rw-r--r--modules/transifex/templates/50-project.conf1
2 files changed, 7 insertions, 0 deletions
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'),
]