/[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 455 by misc, Wed Nov 24 15:22:14 2010 UTC revision 627 by misc, Wed Dec 15 12:56:33 2010 UTC
# Line 1  Line 1 
1  class transifex {  class transifex {
2    package { 'transifex':    
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      @@postgresql::user { 'transifex':
11            password => $pgsql_password,
12      }
13    
14      @@postgresql::database { 'transifex':
15            description => "Transifex database",
16            user => "transifex",
17            require => Postgresql::User['transifex']
18      }
19    
20    file { "20-engines.conf":    file { "20-engines.conf":
21      path => "/etc/transifex/20-engines.conf",      path => "/etc/transifex/20-engines.conf",
22      ensure => present,      ensure => present,
# Line 11  class transifex { Line 24  class transifex {
24      group => apache,      group => apache,
25      mode => 640,      mode => 640,
26      content => template("transifex/20-engines.conf"),      content => template("transifex/20-engines.conf"),
27      require => Package['transifex']      require => Package['transifex'],
28        notify => Service['apache']
29    }    }
30    
31    file { "30-site.conf":    file { "30-site.conf":
# Line 21  class transifex { Line 35  class transifex {
35      group => root,      group => root,
36      mode => 644,      mode => 644,
37      content => template("transifex/30-site.conf"),      content => template("transifex/30-site.conf"),
38      require => Package['transifex']      require => Package['transifex'],
39        notify => Service['apache']
40      }
41    
42      file { "40-apps.conf":
43        path => "/etc/transifex/40-apps.conf",
44        ensure => present,
45        owner => root,
46        group => root,
47        mode => 644,
48        content => template("transifex/40-apps.conf"),
49        require => Package['transifex'],
50        notify => Service['apache']
51      }
52    
53      file { "45-ldap.conf":
54        path => "/etc/transifex/45-ldap.conf",
55        ensure => present,
56        owner => root,
57        group => root,
58        mode => 644,
59        content => template("transifex/45-ldap.conf"),
60        require => Package['transifex'],
61        notify => Service['apache']
62      }
63    
64      file { "50-apps.conf":
65        path => "/etc/transifex/50-apps.conf",
66        ensure => present,
67        owner => root,
68        group => root,
69        mode => 644,
70        content => template("transifex/50-apps.conf"),
71        require => Package['transifex'],
72        notify => Service['apache']
73      }
74    
75      apache::vhost_django_app { "transifex.$domain":
76        module => "transifex",
77        use_ssl => true,
78        module_path => ["/usr/share/transifex","/usr/share"]
79    }    }
80    
81  #  apache::vhost_django_app { "transifex.$domain":    apache::vhost_redirect_ssl { "transifex.$domain": }
82  #    module => "transifex"    
 #  }    
83  }  }

Legend:
Removed from v.455  
changed lines
  Added in v.627

  ViewVC Help
Powered by ViewVC 1.1.30