/[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 2693 by misc, Sun Mar 25 12:47:29 2012 UTC revision 2694 by misc, Sun Mar 25 13:22:05 2012 UTC
# Line 9  class apache { Line 9  class apache {
9          }          }
10      }      }
11    
     define vhost_django_app($module = false, $module_path = false, $use_ssl = false, $aliases= {}) {  
         include apache::mod::wsgi  
         apache::vhost::base { $name:  
             use_ssl => $use_ssl,  
             content => template("apache/vhost_django_app.conf"),  
             aliases => $aliases,  
         }  
           
         # module is a ruby reserved keyword, cannot be used in templates  
         $django_module = $module  
         file { "$name.wsgi":  
             path => "/usr/local/lib/wsgi/$name.wsgi",  
             mode => 755,  
             notify => Service['apache'],  
             content => template("apache/django.wsgi"),  
         }  
     }  
   
    define vhost_other_app($vhost_file) {  
         include apache::base  
         apache::config { "/etc/httpd/conf/vhosts.d/$name.conf":  
             content => template($vhost_file),  
         }  
    }  
   
12      define vhost_simple($location) {      define vhost_simple($location) {
13          include apache::base          include apache::base
14          apache::vhost::base { $name:          apache::vhost::base { $name:

Legend:
Removed from v.2693  
changed lines
  Added in v.2694

  ViewVC Help
Powered by ViewVC 1.1.28