aboutsummaryrefslogtreecommitdiffstats
path: root/modules/transifex/manifests/init.pp
diff options
context:
space:
mode:
authorMichael Scherer <misc@mageia.org>2010-12-15 01:39:35 +0000
committerMichael Scherer <misc@mageia.org>2010-12-15 01:39:35 +0000
commitb55448b4973a73b831871e09a1b0af82874abb24 (patch)
treed0783765b2b37a1eb1a05bcdd80a8db7f80b3ab6 /modules/transifex/manifests/init.pp
parent3e5f72b5d819a37cd9111a723d241b02ae4da6c6 (diff)
downloadpuppet-b55448b4973a73b831871e09a1b0af82874abb24.tar
puppet-b55448b4973a73b831871e09a1b0af82874abb24.tar.gz
puppet-b55448b4973a73b831871e09a1b0af82874abb24.tar.bz2
puppet-b55448b4973a73b831871e09a1b0af82874abb24.tar.xz
puppet-b55448b4973a73b831871e09a1b0af82874abb24.zip
- add ldap authentication to transifex, so far for sysadmin only ( for
testing purposes )
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"]