1 |
class epoll { |
2 |
|
3 |
$vhost = "epoll.$::domain" |
4 |
|
5 |
package { 'Epoll': } |
6 |
|
7 |
apache::vhost_catalyst_app { $vhost: |
8 |
script => '/usr/bin/epoll_fastcgi.pl', |
9 |
use_ssl => true, |
10 |
require => Package['Epoll'] |
11 |
} |
12 |
|
13 |
apache::vhost_redirect_ssl { $vhost: } |
14 |
|
15 |
$pgsql_password = extlookup('epoll_pgsql','x') |
16 |
|
17 |
postgresql::remote_db_and_user { 'epoll': |
18 |
description => 'Epoll database', |
19 |
password => $pgsql_password, |
20 |
} |
21 |
|
22 |
file { 'epoll.yml': |
23 |
path => '/etc/epoll.yml', |
24 |
group => 'apache', |
25 |
mode => '0640', |
26 |
content => template('epoll/epoll.yml') |
27 |
} |
28 |
} |