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