octavia.common.jinja.haproxy package

octavia.common.jinja.haproxy package

Submodules

octavia.common.jinja.haproxy.jinja_cfg module

class JinjaTemplater(base_amp_path=None, base_crt_dir=None, haproxy_template=None, log_http=None, log_server=None, timeout_client=None, timeout_server=None, timeout_connect=None)[source]

Bases: object

build_config(host_amphora, listener, tls_cert, socket_path=None, user_group='nogroup')[source]

Convert a logical configuration to the HAProxy version

Parameters:
  • host_amphora – The Amphora this configuration is hosted on
  • listener – The listener configuration
  • tls_cert – The TLS certificates for the listener
  • socket_path – The socket path for Haproxy process
  • user_group – The user group
Returns:

Rendered configuration

render_loadbalancer_obj(host_amphora, listener, tls_cert=None, user_group='nogroup', socket_path=None)[source]

Renders a templated configuration from a load balancer object

Parameters:
  • host_amphora – The Amphora this configuration is hosted on
  • listener – The listener configuration
  • tls_cert – The TLS certificates for the listener
  • socket_path – The socket path for Haproxy process
  • user_group – The user group
Returns:

Rendered configuration

Module contents

Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.