164 |
} |
} |
165 |
} |
} |
166 |
|
|
167 |
|
define vhost_simple($location) { |
168 |
|
include apache::base |
169 |
|
file { "$name.conf": |
170 |
|
path => "/etc/httpd/conf/vhosts.d/$name.conf", |
171 |
|
ensure => "present", |
172 |
|
owner => root, |
173 |
|
group => root, |
174 |
|
mode => 644, |
175 |
|
notify => Service['apache'], |
176 |
|
content => template("apache/vhost_simple.conf") |
177 |
|
} |
178 |
|
} |
179 |
|
|
180 |
define webapp_other($webapp_file) { |
define webapp_other($webapp_file) { |
181 |
include apache::base |
include apache::base |
182 |
$webappname = $name |
$webappname = $name |