
In anticipation of puppet 4, start trying to deal with puppet 4 things that can be helpfully predicted by puppet lint plugins. Also fix errors caught by the puppet-lint-unquoted_string-check and puppet-lint-absolute_classname-check gems. Change-Id: I9d74d25d2f2c95ec52a6db3bf070903240e1b933
29 lines
905 B
Plaintext
29 lines
905 B
Plaintext
NameVirtualHost <%= @vhost_name %>:<%= @port %>
|
|
<VirtualHost <%= @vhost_name %>:<%= @port %>>
|
|
<% if @ssl == true %>
|
|
SSLEngine on
|
|
SSLCertificateFile <%= @ssl_path %>/certs/pl.cert
|
|
SSLCertificateKeyFile <%= @ssl_path %>/private/pl.key
|
|
<% end %>
|
|
ServerName <%= @srvname %>
|
|
<% if @serveraliases.is_a? Array %>
|
|
<% @serveraliases.each do |name| %><%= " ServerAlias #{name}\n" %><% end %>
|
|
<% elsif @serveraliases != nil %>
|
|
<%= " ServerAlias #{@serveraliases}" %>
|
|
<% end %>
|
|
ProxyRequests Off
|
|
<Proxy *>
|
|
Order deny,allow
|
|
Allow from all
|
|
</Proxy>
|
|
ProxyPass / <%= @dest %>/
|
|
ProxyPassReverse / <%= @dest %>/
|
|
ProxyPreserveHost On
|
|
|
|
ErrorLog /var/log/<%= scope.lookupvar("httpd::params::apache_name") %>/<%= @name %>_error.log
|
|
LogLevel warn
|
|
CustomLog /var/log/<%= scope.lookupvar("httpd::params::apache_name") %>/<%= @name %>_access.log combined
|
|
|
|
</VirtualHost>
|
|
|