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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2457 by misc, Tue Mar 22 17:43:44 2011 UTC revision 2458 by misc, Mon Feb 20 18:34:19 2012 UTC
# Line 1  Line 1 
1  class epoll {  class epoll {
2    
3      $vhost = "epoll.$domain"      $vhost = "epoll.$::domain"
4    
5        package { 'Epoll': }
6    
     package { 'Epoll':  
         ensure => installed  
     }  
       
7      apache::vhost_catalyst_app { $vhost:      apache::vhost_catalyst_app { $vhost:
8          script => "/usr/bin/epoll_fastcgi.pl",          script  => '/usr/bin/epoll_fastcgi.pl',
9          use_ssl => true,          use_ssl => true,
10          require => Package['Epoll']          require => Package['Epoll']
11      }      }
12    
13      apache::vhost_redirect_ssl { $vhost: }      apache::vhost_redirect_ssl { $vhost: }
14        
15      $pgsql_password = extlookup("epoll_pgsql",'x')      $pgsql_password = extlookup('epoll_pgsql','x')
16    
17      postgresql::remote_db_and_user { 'epoll':      postgresql::remote_db_and_user { 'epoll':
18          description => "Epoll database",          description => 'Epoll database',
19          password => $pgsql_password,          password    => $pgsql_password,
20      }      }
21    
22        file { 'epoll.yml':
23      file { "epoll.yml":          path    => '/etc/epoll.yml',
24          path => "/etc/epoll.yml",              group   => 'apache',
25          ensure => "present",          mode    => '0640',
26          owner => root,          content => template('epoll/epoll.yml')
         group => apache,  
         mode => 640,  
         content => template("epoll/epoll.yml")  
27      }      }
   
28  }  }

Legend:
Removed from v.2457  
changed lines
  Added in v.2458

  ViewVC Help
Powered by ViewVC 1.1.30