From 293e609c70157cbe73e9a7962b6bc9b5393b3778 Mon Sep 17 00:00:00 2001 From: varac Date: Thu, 1 Nov 2012 09:53:50 +0100 Subject: provide path to ssl cert file definitions --- manifests/ssl/deploy_cert.pp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'manifests') diff --git a/manifests/ssl/deploy_cert.pp b/manifests/ssl/deploy_cert.pp index 4bb4365..cca5b21 100644 --- a/manifests/ssl/deploy_cert.pp +++ b/manifests/ssl/deploy_cert.pp @@ -1,20 +1,23 @@ define couchdb::ssl::deploy_cert ($cert, $key) { - file { $couchdb::cert_path: + file { 'couchdb_cert_directory': + path => "$couchdb::cert_path:", ensure => 'directory', mode => '0600', owner => 'couchdb', group => 'couchdb'; } - file { "$couchdb::cert_path/server_cert.pem": + file { 'couchdb_cert"': + path => "$couchdb::cert_path/server_cert.pem", mode => '0644', owner => 'couchdb', group => 'couchdb', content => $cert } - file { "$couchdb::cert_path/server_key.pem": + file { 'couchdb_key': + path => "$couchdb::cert_path/server_key.pem", mode => '0600', owner => 'couchdb', group => 'couchdb', -- cgit v1.2.3