summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvarac <varacanero@zeromail.org>2012-11-01 09:53:50 +0100
committervarac <varacanero@zeromail.org>2012-11-01 09:53:50 +0100
commit293e609c70157cbe73e9a7962b6bc9b5393b3778 (patch)
tree636c2e99e5f0353e8b1364de4b4991a8ef680635
parent8ccd0565c9afdee9dd9d916063a98c209940716d (diff)
provide path to ssl cert file definitions
-rw-r--r--manifests/ssl/deploy_cert.pp9
1 files changed, 6 insertions, 3 deletions
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',