]> git.donarmstrong.com Git - dsa-puppet.git/commitdiff
create a concatenated ssl cert (end-entity cert + intermediate cert)
authorLuca Filipozzi <lfilipoz@emyr.net>
Sun, 12 Jan 2014 09:17:24 +0000 (09:17 +0000)
committerLuca Filipozzi <lfilipoz@emyr.net>
Sun, 12 Jan 2014 09:17:24 +0000 (09:17 +0000)
modules/roles/manifests/sip.pp

index ed7aefca2b2559e2cd44d193ca41d694c032bdc5..3a7c1491c2939dfc2c9852ee387373d7592e175e 100644 (file)
@@ -1,6 +1,23 @@
 class roles::sip {
+       include concat::setup
+
        ssl::service { 'www.debian.org':
        }
+
+       concat { '/etc/ssl/debian/certs/www.debian.org-chained.crt':
+               ensure      => present,
+       }
+       concat::fragment { '/etc/ssl/debian/certs/www.debian.org.crt':
+               target      => '/etc/ssl/debian/certs/www.debian.org-chained.crt',
+               source      => 'file:///etc/ssl/debian/certs/www.debian.org.crt',
+               order       => 00,
+       }
+       concat::fragment { '/etc/ssl/debian/certs/www.debian.org.crt-chain':
+               target      => '/etc/ssl/debian/certs/www.debian.org-chained.crt',
+               source      => 'file:///etc/ssl/debian/certs/www.debian.org.crt-chain',
+               order       => 99,
+       }
+
        @ferm::rule { 'dsa-sip-ws-ip4':
                domain      => 'ip',
                description => 'SIP connections (WebSocket; for WebRTC)',