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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 615 - (show annotations) (download)
Wed Dec 15 01:39:31 2010 UTC (11 years, 1 month ago) by misc
File size: 1025 byte(s)
reload apache when transifex configuration is changed
1 class transifex {
2 package { ['transifex','python-psycopg2']:
3 ensure => installed
4 }
5
6 $password = extlookup("transifex_password",'x')
7
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 file { "20-engines.conf":
19 path => "/etc/transifex/20-engines.conf",
20 ensure => present,
21 owner => root,
22 group => apache,
23 mode => 640,
24 content => template("transifex/20-engines.conf"),
25 require => Package['transifex'],
26 notify => Service['apache']
27 }
28
29 file { "30-site.conf":
30 path => "/etc/transifex/30-site.conf",
31 ensure => present,
32 owner => root,
33 group => root,
34 mode => 644,
35 content => template("transifex/30-site.conf"),
36 require => Package['transifex'],
37 notify => Service['apache']
38 }
39
40 # apache::vhost_django_app { "transifex.$domain":
41 # module => "transifex"
42 # }
43 }

  ViewVC Help
Powered by ViewVC 1.1.28