aboutsummaryrefslogtreecommitdiffstats
path: root/modules/transifex/manifests/init.pp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/transifex/manifests/init.pp')
-rw-r--r--modules/transifex/manifests/init.pp15
1 files changed, 14 insertions, 1 deletions
diff --git a/modules/transifex/manifests/init.pp b/modules/transifex/manifests/init.pp
index e6894726..0df2d5df 100644
--- a/modules/transifex/manifests/init.pp
+++ b/modules/transifex/manifests/init.pp
@@ -1,9 +1,11 @@
class transifex {
- package { ['transifex','python-psycopg2']:
+
+ package { ['transifex','python-psycopg2','python-django-auth-ldap']:
ensure => installed
}
$password = extlookup("transifex_password",'x')
+ $ldap_password = extlookup("transifex_ldap",'x')
@@postgresql::user { 'transifex':
password => $password,
@@ -48,6 +50,17 @@ class transifex {
notify => Service['apache']
}
+ file { "45-ldap.conf":
+ path => "/etc/transifex/45-ldap.conf",
+ ensure => present,
+ owner => root,
+ group => root,
+ mode => 644,
+ content => template("transifex/45-ldap.conf"),
+ require => Package['transifex'],
+ notify => Service['apache']
+ }
+
apache::vhost_django_app { "transifex.$domain":
module => "transifex",
module_path => ["/usr/share/transifex","/usr/share"]