1 heat_template_version: pike
4 HAProxy deployment with TLS enabled, powered by certmonger
9 description: Dictionary packing service data
13 description: Mapping of service_name -> network name. Typically set
14 via parameter_defaults in the resource registry. This
15 mapping overrides those in ServiceNetMapDefaults.
22 description: Role name on which the service is applied
26 description: Parameters specific to the role
30 description: Mapping of service endpoint -> protocol. Typically set
31 via parameter_defaults in the resource registry.
40 # NOTE(jaosorior) Get unique network names to create
41 # certificates for those. We skip the tenant network since
42 # we don't need a certificate for that, and the external
43 # network will be handled in another template.
45 expression: list($.data.map.items().map($1[1])).distinct().where($ != external and $ != tenant)
48 get_param: ServiceNetMap
52 description: Role data for the HAProxy internal TLS via certmonger role.
54 service_name: haproxy_internal_tls_certmonger
56 generate_service_certificates: true
57 tripleo::haproxy::use_internal_certificates: true
58 tripleo::certmonger::haproxy_dirs::certificate_dir: '/etc/pki/tls/certs/haproxy'
59 tripleo::certmonger::haproxy_dirs::key_dir: '/etc/pki/tls/private/haproxy'
65 service_pem: '/etc/pki/tls/certs/haproxy/overcloud-haproxy-NETWORK.pem'
66 service_certificate: '/etc/pki/tls/certs/haproxy/overcloud-haproxy-NETWORK.crt'
67 service_key: '/etc/pki/tls/private/haproxy/overcloud-haproxy-NETWORK.key'
68 hostname: "%{hiera('cloud_name_NETWORK')}"
69 postsave_cmd: "" # TODO
70 principal: "haproxy/%{hiera('cloud_name_NETWORK')}"
72 NETWORK: {get_attr: [HAProxyNetworks, value]}
80 $NETWORK: {get_attr: [HAProxyNetworks, value]}