diff options
Diffstat (limited to 'manifests/ssl/deploy_cert.pp')
-rw-r--r-- | manifests/ssl/deploy_cert.pp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/manifests/ssl/deploy_cert.pp b/manifests/ssl/deploy_cert.pp index 4e9c158..d3e743f 100644 --- a/manifests/ssl/deploy_cert.pp +++ b/manifests/ssl/deploy_cert.pp @@ -1,15 +1,17 @@ define couchdb::ssl::deploy_cert ($cert, $key) { -include couchdb::params + + include couchdb::params + file { 'couchdb_cert_directory': - path => "$couchdb::params::cert_path", ensure => 'directory', + path => $couchdb::params::cert_path, mode => '0600', owner => 'couchdb', group => 'couchdb'; } - file { 'couchdb_cert"': - path => "$couchdb::params::cert_path/server_cert.pem", + file { 'couchdb_cert': + path => "${couchdb::params::cert_path}/server_cert.pem", mode => '0644', owner => 'couchdb', group => 'couchdb', @@ -17,12 +19,10 @@ include couchdb::params } file { 'couchdb_key': - path => "$couchdb::params::cert_path/server_key.pem", + path => "${couchdb::params::cert_path}/server_key.pem", mode => '0600', owner => 'couchdb', group => 'couchdb', content => $key } - - } |