/[adm]/puppet/modules/transifex/manifests/init.pp
ViewVC logotype

Diff of /puppet/modules/transifex/manifests/init.pp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 617 by misc, Wed Dec 15 01:39:33 2010 UTC revision 630 by misc, Wed Dec 15 15:13:18 2010 UTC
# Line 1  Line 1 
1  class transifex {  class transifex {
2    package { ['transifex','python-psycopg2']:    
3      package { ['transifex','python-psycopg2','python-django-auth-ldap']:
4      ensure => installed      ensure => installed
5    }    }
6    
7    $password = extlookup("transifex_password",'x')    $pgsql_password = extlookup("transifex_pgsql",'x')
8      $ldap_password = extlookup("transifex_ldap",'x')
9    
10      $templates_dir = "/var/lib/transifex/templates"
11    
12    @@postgresql::user { 'transifex':    @@postgresql::user { 'transifex':
13          password => $password,          password => $pgsql_password,
14    }    }
15    
16    @@postgresql::database { 'transifex':    @@postgresql::database { 'transifex':
# Line 48  class transifex { Line 52  class transifex {
52      notify => Service['apache']      notify => Service['apache']
53    }    }
54    
55      file { "45-ldap.conf":
56        path => "/etc/transifex/45-ldap.conf",
57        ensure => present,
58        owner => root,
59        group => root,
60        mode => 644,
61        content => template("transifex/45-ldap.conf"),
62        require => Package['transifex'],
63        notify => Service['apache']
64      }
65    
66      file { "50-project.conf":
67        path => "/etc/transifex/50-project.conf",
68        ensure => present,
69        owner => root,
70        group => root,
71        mode => 644,
72        content => template("transifex/50-project.conf"),
73        require => Package['transifex'],
74        notify => Service['apache']
75      }
76    
77      subversion::snapshot { $templates_dir:
78        source => "svn://svn.mageia.org/svn/web/templates/transifex/trunk"
79      }
80    
81    apache::vhost_django_app { "transifex.$domain":    apache::vhost_django_app { "transifex.$domain":
82      module => "transifex",      module => "transifex",
83        use_ssl => true,
84      module_path => ["/usr/share/transifex","/usr/share"]      module_path => ["/usr/share/transifex","/usr/share"]
85    }      }
86    
87      apache::vhost_redirect_ssl { "transifex.$domain": }
88      
89  }  }

Legend:
Removed from v.617  
changed lines
  Added in v.630

  ViewVC Help
Powered by ViewVC 1.1.30