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

  # CA bundle -- we want to have the possibility of allowing multiple CAs.
  # For now, the reason is to transition to using client CA. In the future,
  # we will want to be able to smoothly phase out one CA and phase in another.
  # I tried "--capath" for this, but it did not work.

  include ::site_config::params

  $x509      = hiera('x509')
  $ca        = $x509['ca_cert']
  $client_ca = $x509['client_ca_cert']

  x509::ca { $site_config::params::ca_bundle_name:
    content => "${ca}${client_ca}"
  }
}