summaryrefslogtreecommitdiff
path: root/puppet/modules/site_couchdb/manifests
diff options
context:
space:
mode:
Diffstat (limited to 'puppet/modules/site_couchdb/manifests')
-rw-r--r--puppet/modules/site_couchdb/manifests/init.pp10
1 files changed, 9 insertions, 1 deletions
diff --git a/puppet/modules/site_couchdb/manifests/init.pp b/puppet/modules/site_couchdb/manifests/init.pp
index 8865bde8..f1cca46f 100644
--- a/puppet/modules/site_couchdb/manifests/init.pp
+++ b/puppet/modules/site_couchdb/manifests/init.pp
@@ -1,11 +1,19 @@
class site_couchdb {
+ $couchdb_config = hiera('couchdb')
+ $key = $couchdb_config['key']
+ $cert = $couchdb_config['crt']
+
# 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::ssl::deploy_certs
+
+ couchdb::ssl::deploy_cert { 'cert':
+ key => $key,
+ cert => $cert,
+ }
include couchdb::deploy_config
}