[Mageia-sysadm] [177] Add puppet conf for transifex
root at mageia.org
root at mageia.org
Sat Nov 6 12:18:39 CET 2010
Revision: 177
Author: dmorgan
Date: 2010-11-06 12:18:39 +0100 (Sat, 06 Nov 2010)
Log Message:
-----------
Add puppet conf for transifex
Added Paths:
-----------
puppet/modules/transifex/
puppet/modules/transifex/manifests/
puppet/modules/transifex/manifests/init.pp
puppet/modules/transifex/templates/
puppet/modules/transifex/templates/20-engines.conf
Added: puppet/modules/transifex/manifests/init.pp
===================================================================
--- puppet/modules/transifex/manifests/init.pp (rev 0)
+++ puppet/modules/transifex/manifests/init.pp 2010-11-06 11:18:39 UTC (rev 177)
@@ -0,0 +1,17 @@
+class transifex {
+ package { 'transifex':
+ ensure => installed
+ }
+ package { 'postfix':
+ ensure => installed
+ }
+
+ file { "check_new-blog-post":
+ path => "/etc/transifex/20-engines.conf",
+ ensure => present,
+ owner => root,
+ group => root,
+ mode => 755,
+ content => template("transifex/20-engines.conf")
+ }
+}
Added: puppet/modules/transifex/templates/20-engines.conf
===================================================================
--- puppet/modules/transifex/templates/20-engines.conf (rev 0)
+++ puppet/modules/transifex/templates/20-engines.conf 2010-11-06 11:18:39 UTC (rev 177)
@@ -0,0 +1,33 @@
+### ENGINE CONFIGURATION
+# Database and caching
+
+## Database configuration
+
+# http://docs.djangoproject.com/en/dev/ref/settings/#database-engine
+DATABASE_ENGINE = 'postgresql_psycopg2'
+# Use file path for sqlite3
+DATABASE_NAME = 'transifex'
+# The following are not used for sqlite3
+DATABASE_USER = 'transifex'
+DATABASE_PASSWORD = 'transifex'
+DATABASE_HOST = 'pgsql.mageia.org' # Set to empty string for local socket
+DATABASE_PORT = '' # Set to empty string for default
+
+## Caching (optional)
+
+CACHE_BACKEND = 'locmem://'
+# For memcached: CACHE_BACKEND = 'memcached://127.0.0.1:11211/'
+# No caching: CACHE_BACKEND = 'dummy://'
+
+CACHE_MIDDLEWARE_SECONDS = 3600
+CACHE_MIDDLEWARE_KEY_PREFIX = 'tx'
+CACHE_MIDDLEWARE_ANONYMOUS_ONLY = True
+
+# Note: Additional caching configuration takes place in 50-project.conf in the
+# MIDDLEWARE_CLASSES option.
+
+# Database settings for unittests
+TEST_CHARSET = "utf8"
+TEST_COLLATION = "utf8_general_ci"
+TEST_DATABASE_CHARSET = TEST_CHARSET
+TEST_DATABASE_COLLATION = TEST_COLLATION
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/mageia-sysadm/attachments/20101106/ca6f3397/attachment.html>
More information about the Mageia-sysadm
mailing list