aboutsummaryrefslogtreecommitdiffstats
path: root/modules/epoll/manifests/init.pp
blob: 7d8420c0df12b38ae767f0c174f63779df2fae9c (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
class epoll {

    $vhost = "epoll.$::domain"

    package { 'Epoll': }

    apache::vhost_catalyst_app { $vhost:
        script  => '/usr/bin/epoll_fastcgi.pl',
        use_ssl => true,
        require => Package['Epoll']
    }

    apache::vhost::redirect_ssl { $vhost: }

    $pgsql_password = extlookup('epoll_pgsql','x')

    postgresql::remote_db_and_user { 'epoll':
        description => 'Epoll database',
        password    => $pgsql_password,
    }

    file { 'epoll.yml':
        path    => '/etc/epoll.yml',
        group   => 'apache',
        mode    => '0640',
        content => template('epoll/epoll.yml')
    }
}