class site_config::x509::cert {

  include ::site_config::params

  $x509      = hiera('x509')
  $cert      = $x509['cert']

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

}