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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 563 - (hide annotations) (download)
Thu Dec 9 12:34:30 2010 UTC (13 years, 4 months ago) by misc
File size: 898 byte(s)
add epoll selfsigned certificate
1 nanardon 118 class epoll {
2    
3 misc 168 $vhost = "epoll.$domain"
4 nanardon 118
5     package { 'Epoll':
6     ensure => installed
7     }
8 misc 168
9     apache::vhost_catalyst_app { $vhost:
10 misc 455 script => "/usr/bin/epoll_fastcgi.pl",
11 misc 482 use_ssl => true,
12 misc 455 require => Package['Epoll']
13 nanardon 118 }
14 misc 482
15 misc 563 openssl::self_signed_cert{ "$vhost":
16     directory => "/etc/ssl/apache/"
17     }
18    
19 misc 482 apache::vhost_redirect_ssl { $vhost: }
20 misc 168
21 misc 378 $password = extlookup("epoll_password",'x')
22 misc 528
23     @@postgresql::user { 'epoll':
24     password => $password,
25     }
26    
27 nanardon 118
28     file { "epoll.yml":
29     path => "/etc/epoll.yml",
30     ensure => "present",
31 misc 340 owner => root,
32 nanardon 118 group => apache,
33 misc 340 mode => 640,
34 nanardon 118 content => template("epoll/epoll.yml")
35     }
36 misc 528
37     @@postgresql::database { 'epoll':
38     description => "Epoll database",
39     user => "epoll",
40     require => Postgresql::User['epoll']
41     }
42    
43 nanardon 118 }

  ViewVC Help
Powered by ViewVC 1.1.30