7 |
$pgsql_password = extlookup("transifex_pgsql",'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 => $pgsql_password, |
password => $pgsql_password, |
14 |
} |
} |
63 |
notify => Service['apache'] |
notify => Service['apache'] |
64 |
} |
} |
65 |
|
|
66 |
|
file { "50-apps.conf": |
67 |
|
path => "/etc/transifex/50-apps.conf", |
68 |
|
ensure => present, |
69 |
|
owner => root, |
70 |
|
group => root, |
71 |
|
mode => 644, |
72 |
|
content => template("transifex/50-apps.conf"), |
73 |
|
require => Package['transifex'], |
74 |
|
notify => Service['apache'] |
75 |
|
} |
76 |
|
|
77 |
|
svn::snapshot { $templates_dir: |
78 |
|
source => "svn://svn.mageia.org/svn/web/templates/transifex/trunk" |
79 |
|
} |
80 |
|
|
81 |
apache::vhost_django_app { "transifex.$domain": |
apache::vhost_django_app { "transifex.$domain": |
82 |
module => "transifex", |
module => "transifex", |
83 |
use_ssl => true, |
use_ssl => true, |