aboutsummaryrefslogtreecommitdiffstats
path: root/modules/epoll/manifests/init.pp
blob: 40acc331debb61b29f1ce394c22beb777998b6e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
class epoll {

    include apache::mod_fcgid

    $vhost = "epoll.$domain"
    package { 'Epoll':
        ensure => installed
    }

    # add a apache vhost
    file { "$vhost.conf":
        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")
    }
 
    $password = extlookup("epoll_password")
 
    file { "epoll.yml": 
        path => "/etc/epoll.yml",    
        ensure => "present",
        owner => apache,
        group => apache,
        mode => 600,
        content => template("epoll/epoll.yml")
    }
}