summaryrefslogtreecommitdiff
path: root/puppet/modules/site_stunnel/manifests/setup.pp
blob: 92eeb4252f5b796a253b9741991b9d72d56434c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
class site_stunnel::setup ($cert_name, $key, $cert, $ca_name, $ca) {

  include site_stunnel

  x509::key {
    $cert_name:
      content => $key,
      notify  => Service['stunnel'];
  }

  x509::cert {
    $cert_name:
      content => $cert,
      notify  => Service['stunnel'];
  }

  x509::ca {
    $ca_name:
      content => $ca,
      notify  => Service['stunnel'];
  }

}