summaryrefslogtreecommitdiff
path: root/puppet/modules/site_config/manifests/x509.pp
blob: 879285dd4cb9b8897bb6170c0592ba496fd629e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
class site_config::x509 {

  $x509      = hiera('x509')
  $key       = $x509['key']
  $cert      = $x509['cert']
  $ca        = $x509['ca_cert']

  x509::key { $site_config::params::cert_name:
    content => $key
  }

  x509::cert { $site_config::params::cert_name:
    content => $cert
  }

  x509::ca { $site_config::params::ca_name:
    content => $ca
  }
}