summaryrefslogtreecommitdiff
path: root/puppet/modules/site_couchdb/manifests/init.pp
blob: b296279c7549d72b6937b78778c3c1487705245e (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
26
27
class site_couchdb {

  $x509 = hiera('x509')
  $key  = $x509['key']
  $cert = $x509['cert']

  # install couchdb package first, then configure it
  Class['site_couchdb::package'] -> Class['site_couchdb::configure']

  include site_couchdb::package
  include site_couchdb::configure
  include couchdb::deploy_config


  #couchdb::ssl::deploy_cert { 'cert':
  #  key  => $key,
  #  cert => $cert,
  #}
  
  include apache::ssl
  apache::module { 
    'rewrite': ensure => present;
    'proxy':   ensure => present; 
    'proxy_http':   ensure => present; 
   }
  apache::vhost::file { 'couchdb_proxy': }
}