/[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 279 by boklm, Mon Nov 8 13:13:13 2010 UTC revision 280 by boklm, Thu Nov 18 15:55:02 2010 UTC
# Line 128  class apache { Line 128  class apache {
128              content => template("apache/django.wsgi")              content => template("apache/django.wsgi")
129          }          }
130      }      }
131    
132       define vhost_other_app($vhost_file) {
133            file { "$name.conf":
134                path => "/etc/httpd/conf/vhosts.d/$name.conf",
135                ensure => "present",
136                owner => root,
137                group => root,
138                mode => 644,
139                notify => Service['apache'],
140                content => template($vhost_file)
141            }
142       }
143    
144       define webapp_other($webapp_file) {
145            $webappname = $name
146            file { "webapp_$name.conf":
147                path => "/etc/httpd/conf/webapps.d/$webappname.conf",
148                ensure => "present",
149                owner => root,
150                group => root,
151                mode => 644,
152                notify => Service['apache'],
153                content => template($webapp_file)
154            }
155       }
156  }  }

Legend:
Removed from v.279  
changed lines
  Added in v.280

  ViewVC Help
Powered by ViewVC 1.1.30