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 |
} |
} |