/[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 624 - (hide annotations) (download)
Wed Dec 15 12:24:46 2010 UTC (13 years, 4 months ago) by misc
File size: 819 byte(s)
uniformisation of the name of variable used for password, so we know if this is ldap or postgresql at the first glance
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     apache::vhost_redirect_ssl { $vhost: }
16 misc 168
17 misc 624 $pgsql_password = extlookup("epoll_pgsql",'x')
18 misc 528
19     @@postgresql::user { 'epoll':
20 misc 624 password => $pgsql_password,
21 misc 528 }
22    
23 nanardon 118
24     file { "epoll.yml":
25     path => "/etc/epoll.yml",
26     ensure => "present",
27 misc 340 owner => root,
28 nanardon 118 group => apache,
29 misc 340 mode => 640,
30 nanardon 118 content => template("epoll/epoll.yml")
31     }
32 misc 528
33     @@postgresql::database { 'epoll':
34     description => "Epoll database",
35     user => "epoll",
36     require => Postgresql::User['epoll']
37     }
38    
39 nanardon 118 }

  ViewVC Help
Powered by ViewVC 1.1.30