summaryrefslogtreecommitdiff
path: root/puppet/modules/site_couchdb/manifests/apache_ssl_proxy.pp
blob: 7739473ecb952d633bc1df16e5338ff17a75e846 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
define site_couchdb::apache_ssl_proxy ($key, $cert) {

  $apache_no_default_site = true
  include apache
  apache::module {
    'proxy':        ensure => present;
    'proxy_http':   ensure => present;
    'rewrite':      ensure => present;
    'ssl':          ensure => present;
  }
  apache::vhost::file { 'couchdb_proxy': }

  x509::key {
    'leap_couchdb':
      content => $key,
      notify  => Service[apache];
  }

  x509::cert {
    'leap_couchdb':
      content => $cert,
      notify  => Service[apache];
  }

}