From c38e4092b2155ead1a75033968ef8398674a6e92 Mon Sep 17 00:00:00 2001 From: Jenkins ConfDroid Date: Sat, 8 Feb 2025 13:53:47 +0100 Subject: [PATCH] recommit for updates in build 204 --- .../cd_haproxy_3A_3Aserver_3A_3Aproxy.html | 59 ++++++++++++++++--- 1 file changed, 50 insertions(+), 9 deletions(-) diff --git a/doc/puppet_defined_types/cd_haproxy_3A_3Aserver_3A_3Aproxy.html b/doc/puppet_defined_types/cd_haproxy_3A_3Aserver_3A_3Aproxy.html index 648d009..139f552 100644 --- a/doc/puppet_defined_types/cd_haproxy_3A_3Aserver_3A_3Aproxy.html +++ b/doc/puppet_defined_types/cd_haproxy_3A_3Aserver_3A_3Aproxy.html @@ -418,6 +418,19 @@ instance configuration.

+
  • + + backend_configs + + + (Any) + + + (defaults to: []) + + +
  • + @@ -485,7 +498,21 @@ instance configuration.

    77 78 79 -80 +80 +81 +82 +83 +84 +85 +86 +87 +88 +89 +90 +91 +92 +93 +94
    # File 'manifests/server/proxy.pp', line 24
    @@ -511,6 +538,8 @@ define cd_haproxy::server::proxy (
       $be_option        = '',
       $fe_tcp_request   = '',
       $fe_http_request  = '',
    +  $backend_configs  = [],
    +
     
     ) {
     
    @@ -534,18 +563,30 @@ define cd_haproxy::server::proxy (
     
       # create frontend section
       concat::fragment { "frontend_${name}":
    -    target  =>  $hy_main_config,
    -    content =>  template($hy_frontendrule),
    -    order   =>  $frontend_order,
    +    target      =>  $hy_main_config,
    +    content     =>  template($hy_frontendrule),
    +    order       =>  $frontend_order,
       }
     
    -  # create backend section
    -  concat::fragment { "backend_${name}":
    -    target  =>  $hy_main_config,
    -    content =>  template($hy_backendrule),
    -    order   =>  $backend_order,
    +
    +  # Create backend sections dynamically based on $backend_configs
    +  $backend_configs.each |$index, $backend_config| {
    +    concat::fragment { "backend_${name}_${index}":
    +      target    =>  $hy_main_config,
    +      content   =>  template($hy_backendrule),
    +      order     =>  $backend_order,
    +      # Use variables from the backend config for each backend
    +      variables => $backend_config,
    +    }
       }
     
    +#  # create backend section
    +#  concat::fragment { "backend_${name}":
    +#    target  =>  $hy_main_config,
    +#    content =>  template($hy_backendrule),
    +#    order   =>  $backend_order,
    +#  }
    +
     }