/[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 622 by misc, Wed Dec 15 03:11:53 2010 UTC revision 632 by misc, Wed Dec 15 21:24:26 2010 UTC
# Line 4  class transifex { Line 4  class transifex {
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')    $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 61  class transifex { Line 63  class transifex {
63      notify => Service['apache']      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      file { "custom_backend.py":
78        path => "/usr/local/lib/custom_backend.py",
79        ensure => present,
80        owner => root,
81        group => root,
82        mode => 644,
83        source => "puppet:///modules/transifex/custom_backend.py",
84        notify => Service['apache']
85      }
86    
87      subversion::snapshot { $templates_dir:
88        source => "svn://svn.mageia.org/svn/web/templates/transifex/trunk"
89      }
90    
91    apache::vhost_django_app { "transifex.$domain":    apache::vhost_django_app { "transifex.$domain":
92      module => "transifex",      module => "transifex",
93      use_ssl => true,      use_ssl => true,
94      module_path => ["/usr/share/transifex","/usr/share"]      module_path => ["/usr/share/transifex","/usr/share","/usr/local/lib/"]
95    }    }
96    
97    apache::vhost_redirect_ssl { "transifex.$domain": }    apache::vhost_redirect_ssl { "transifex.$domain": }

Legend:
Removed from v.622  
changed lines
  Added in v.632

  ViewVC Help
Powered by ViewVC 1.1.30