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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 614 - (hide annotations) (download)
Wed Dec 15 01:39:30 2010 UTC (13 years, 4 months ago) by misc
File size: 959 byte(s)
create the database and user in postgresql
1 dmorgan 177 class transifex {
2 misc 613 package { ['transifex','python-psycopg2']:
3 dmorgan 177 ensure => installed
4     }
5 dmorgan 240
6 misc 378 $password = extlookup("transifex_password",'x')
7 misc 614
8     @@postgresql::user { 'transifex':
9     password => $password,
10     }
11    
12     @@postgresql::database { 'transifex':
13     description => "Transifex database",
14     user => "transifex",
15     require => Postgresql::User['transifex']
16     }
17    
18 misc 191 file { "20-engines.conf":
19 dmorgan 177 path => "/etc/transifex/20-engines.conf",
20     ensure => present,
21     owner => root,
22 misc 340 group => apache,
23     mode => 640,
24 misc 455 content => template("transifex/20-engines.conf"),
25     require => Package['transifex']
26 dmorgan 177 }
27 misc 265
28 dmorgan 295 file { "30-site.conf":
29     path => "/etc/transifex/30-site.conf",
30     ensure => present,
31     owner => root,
32     group => root,
33 misc 340 mode => 644,
34 misc 455 content => template("transifex/30-site.conf"),
35     require => Package['transifex']
36 dmorgan 295 }
37    
38 misc 270 # apache::vhost_django_app { "transifex.$domain":
39     # module => "transifex"
40     # }
41 dmorgan 177 }

  ViewVC Help
Powered by ViewVC 1.1.30