1 |
class epoll { |
class epoll { |
2 |
|
|
|
include apache::mod_fastcgi |
|
|
|
|
3 |
$vhost = "epoll.$domain" |
$vhost = "epoll.$domain" |
4 |
|
|
5 |
package { 'Epoll': |
package { 'Epoll': |
6 |
ensure => installed |
ensure => installed |
7 |
} |
} |
8 |
|
|
9 |
# add a apache vhost |
apache::vhost_catalyst_app { $vhost: |
10 |
file { "$vhost.conf": |
script => /usr/bin/epoll_fastcgi.pl |
|
path => "/etc/httpd/conf/vhosts.d/$vhost.conf", |
|
|
ensure => "present", |
|
|
owner => root, |
|
|
group => root, |
|
|
mode => 644, |
|
|
notify => Service['apache'], |
|
|
content => template("epoll/epoll_vhost.conf") |
|
11 |
} |
} |
12 |
|
|
13 |
$password = extlookup("epoll_password") |
$password = extlookup("epoll_password") |
14 |
|
|
15 |
file { "epoll.yml": |
file { "epoll.yml": |