Puppet Class: pulp::crane::apache

Defined in:
manifests/crane/apache.pp

Overview

Sets up Apache for Crane



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
29
30
31
32
33
34
# File 'manifests/crane/apache.pp', line 3

class pulp::crane::apache {

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

  # For backwards compatiblity, we still need to default ssl_chain to ca_cert...
  $ssl_chain = pick($pulp::crane::ssl_chain, $pulp::crane::ca_cert)

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