summaryrefslogtreecommitdiff
path: root/puppet/modules/site_couchdb
diff options
context:
space:
mode:
authorvarac <varacanero@zeromail.org>2012-11-03 12:16:22 +0100
committervarac <varacanero@zeromail.org>2012-11-03 12:16:22 +0100
commitb7d3bd9c119ce70f1823ffd06567a127c390c4f0 (patch)
tree4213fd9094300ce2c8e117ed1a5117127e9090ec /puppet/modules/site_couchdb
parent5981a73edce0a64f26bb8abb799c180b856abbbd (diff)
deploy server_cert.pem + server_key.pem, notify apache
Diffstat (limited to 'puppet/modules/site_couchdb')
-rw-r--r--puppet/modules/site_couchdb/manifests/init.pp23
1 files changed, 17 insertions, 6 deletions
diff --git a/puppet/modules/site_couchdb/manifests/init.pp b/puppet/modules/site_couchdb/manifests/init.pp
index 4c923b35..04b46bf6 100644
--- a/puppet/modules/site_couchdb/manifests/init.pp
+++ b/puppet/modules/site_couchdb/manifests/init.pp
@@ -11,12 +11,6 @@ class site_couchdb {
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;
@@ -32,4 +26,21 @@ class site_couchdb {
owner => 'root',
group => 'root',
}
+
+ file { '/etc/couchdb/server_cert.pem':
+ mode => '0644',
+ owner => 'couchdb',
+ group => 'couchdb',
+ content => $cert,
+ notify => Service[apache],
+ }
+
+ file { '/etc/couchdb/server_key.pem':
+ mode => '0600',
+ owner => 'couchdb',
+ group => 'couchdb',
+ content => $key,
+ notify => Service[apache],
+ }
+
}