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

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

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

revision 194 by misc, Mon Nov 8 00:18:44 2010 UTC revision 201 by misc, Mon Nov 8 01:12:49 2010 UTC
# Line 1  Line 1 
1  class apache {  class apache {
2    
     $vhost_dir = "/etc/httpd/conf/vhosts.d"  
     $wsgi_dir = "/usr/local/lib/wsgi"  
   
3      class base {      class base {
4          package { "apache-mpm-prefork":          package { "apache-mpm-prefork":
5              alias => apache,              alias => apache,
# Line 62  class apache { Line 59  class apache {
59              ensure => installed              ensure => installed
60          }          }
61    
62          file { $wsgi_dir:          file { "/usr/local/lib/wsgi":
63              ensure => directory,              ensure => directory,
64              owner => root,              owner => root,
65              group => root,              group => root,
# Line 72  class apache { Line 69  class apache {
69    
70      define vhost_redirect_ssl() {      define vhost_redirect_ssl() {
71          file { "redirect_ssl_$name.conf":          file { "redirect_ssl_$name.conf":
72              path => "$vhost_dir/redirect_ssl_$name.conf",              path => "/etc/httpd/conf/vhosts.d/redirect_ssl_$name.conf",
73              ensure => "present",              ensure => "present",
74              owner => root,              owner => root,
75              group => root,              group => root,
# Line 87  class apache { Line 84  class apache {
84          include apache::mod_fastcgi          include apache::mod_fastcgi
85    
86          file { "$name.conf":          file { "$name.conf":
87              path => "$vhost_dir/$name.conf",              path => "/etc/httpd/conf/vhosts.d/$name.conf",
88              ensure => "present",              ensure => "present",
89              owner => root,              owner => root,
90              group => root,              group => root,
# Line 101  class apache { Line 98  class apache {
98          include apache::mod_wsgi          include apache::mod_wsgi
99    
100          file { "$name.conf":          file { "$name.conf":
101              path => "$vhost_dir/$name.conf",              path => "/etc/httpd/conf/vhosts.d/$name.conf",
102              ensure => "present",              ensure => "present",
103              owner => root,              owner => root,
104              group => root,              group => root,
# Line 112  class apache { Line 109  class apache {
109    
110          # fichier django wsgi          # fichier django wsgi
111          file { "$name.wsgi":          file { "$name.wsgi":
112              path => "$wsgi_dir/$name.wsgi",              path => "/usr/local/lib/wsgi/$name.wsgi",
113              ensure => "present",              ensure => "present",
114              owner => root,              owner => root,
115              group => root,              group => root,

Legend:
Removed from v.194  
changed lines
  Added in v.201

  ViewVC Help
Powered by ViewVC 1.1.30