1 |
class epoll { |
2 |
|
3 |
include apache::mod_fcgid |
4 |
|
5 |
package { 'Epoll': |
6 |
ensure => installed |
7 |
} |
8 |
|
9 |
# add a apache vhost |
10 |
file { "epoll.$domain.conf": |
11 |
path => "/etc/httpd/conf/vhosts.d/$name.$domain.conf", |
12 |
ensure => "present", |
13 |
owner => root, |
14 |
group => root, |
15 |
mode => 644, |
16 |
notify => Service['apache'], |
17 |
content => template("epoll/epoll_vhost.conf") |
18 |
} |
19 |
|
20 |
$password = extlookup("epoll_password") |
21 |
|
22 |
file { "epoll.yml": |
23 |
path => "/etc/epoll.yml", |
24 |
ensure => "present", |
25 |
owner => apache, |
26 |
group => apache, |
27 |
mode => 600, |
28 |
content => template("epoll/epoll.yml") |
29 |
} |
30 |
} |