1 |
class transifex { |
2 |
package { ['transifex','python-psycopg2']: |
3 |
ensure => installed |
4 |
} |
5 |
|
6 |
$password = extlookup("transifex_password",'x') |
7 |
file { "20-engines.conf": |
8 |
path => "/etc/transifex/20-engines.conf", |
9 |
ensure => present, |
10 |
owner => root, |
11 |
group => apache, |
12 |
mode => 640, |
13 |
content => template("transifex/20-engines.conf"), |
14 |
require => Package['transifex'] |
15 |
} |
16 |
|
17 |
file { "30-site.conf": |
18 |
path => "/etc/transifex/30-site.conf", |
19 |
ensure => present, |
20 |
owner => root, |
21 |
group => root, |
22 |
mode => 644, |
23 |
content => template("transifex/30-site.conf"), |
24 |
require => Package['transifex'] |
25 |
} |
26 |
|
27 |
# apache::vhost_django_app { "transifex.$domain": |
28 |
# module => "transifex" |
29 |
# } |
30 |
} |