Puppet Class: crane::apache

Defined in:
manifests/apache.pp

Overview

Sets up Apache for Crane



2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# File 'manifests/apache.pp', line 2

class crane::apache {

  include ::apache
  include ::apache::mod::headers
  include ::apache::mod::proxy
  include ::apache::mod::proxy_http

  apache::vhost { 'crane':
    servername          => $crane::fqdn,
    docroot             => '/usr/share/crane/',
    wsgi_script_aliases =>
                          {
                            '/' => '/usr/share/crane/crane.wsgi',
                          },
    port                => $crane::port,
    priority            => '03',
    ssl                 => true,
    ssl_cert            => $crane::cert,
    ssl_key             => $crane::key,
    ssl_ca              => $crane::ca_cert,
    ssl_chain           => $crane::ca_cert,
    ssl_verify_client   => 'optional',
    ssl_options         => '+StdEnvVars +ExportCertData +FakeBasicAuth',
    ssl_verify_depth    => '3',
    ssl_proxyengine     => true,
  }
}