projects
/
mirror
/
dsa-puppet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9c48266
)
Add key + cert in a single file to /etc/ssl/private
author
Tollef Fog Heen
<tfheen@err.no>
Tue, 10 Jan 2017 20:13:43 +0000
(21:13 +0100)
committer
Tollef Fog Heen
<tfheen@err.no>
Tue, 10 Jan 2017 20:15:19 +0000
(21:15 +0100)
Hitch and HAProxy both need this, so let's just do it for all keys and
certs.
modules/ssl/manifests/service.pp
patch
|
blob
|
history
diff --git
a/modules/ssl/manifests/service.pp
b/modules/ssl/manifests/service.pp
index
711f755
..
f01a75c
100644
(file)
--- a/
modules/ssl/manifests/service.pp
+++ b/
modules/ssl/manifests/service.pp
@@
-35,6
+35,15
@@
define ssl::service($ensure = present, $tlsaport = 443, $notify = [], $key = fal
notify => [ $notify ],
links => follow,
}
+
+ file { "/etc/ssl/private/$name.key-certchain":
+ ensure => $ssl_ensure,
+ mode => '0440',
+ group => 'ssl-cert',
+ content => template('ssl/key-chained.erb'),
+ notify => [ $notify ],
+ links => follow,
+ }
}
if (size($tlsaports) > 0 and $ssl_ensure == "present") {