/[adm]/puppet/modules/epoll/manifests/init.pp
ViewVC logotype

Contents of /puppet/modules/epoll/manifests/init.pp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1356 - (show annotations) (download)
Tue Mar 22 17:43:44 2011 UTC (13 years, 1 month ago) by misc
File size: 716 byte(s)
use the new type for user and database declaration ( will be used later for pg access list )
1 class epoll {
2
3 $vhost = "epoll.$domain"
4
5 package { 'Epoll':
6 ensure => installed
7 }
8
9 apache::vhost_catalyst_app { $vhost:
10 script => "/usr/bin/epoll_fastcgi.pl",
11 use_ssl => true,
12 require => Package['Epoll']
13 }
14
15 apache::vhost_redirect_ssl { $vhost: }
16
17 $pgsql_password = extlookup("epoll_pgsql",'x')
18
19 postgresql::remote_db_and_user { 'epoll':
20 description => "Epoll database",
21 password => $pgsql_password,
22 }
23
24
25 file { "epoll.yml":
26 path => "/etc/epoll.yml",
27 ensure => "present",
28 owner => root,
29 group => apache,
30 mode => 640,
31 content => template("epoll/epoll.yml")
32 }
33
34 }

  ViewVC Help
Powered by ViewVC 1.1.30