Role - kubeinit_haproxy

Role Documentation

Please, refer to the kubeinit_haproxy role official docs for further information.

Role Defaults

This section highlights all of the defaults and variables set within the “kubeinit_haproxy” role.

# All variables intended for modification should be placed in this file.

# All variables within this role should have a prefix of "kubeinit_haproxy_"
kubeinit_haproxy_debug: '{{ (ansible_verbosity | int) >= 2 | bool }}'
kubeinit_haproxy_hide_sensitive_logs: true

kubeinit_haproxy_service_name: kubeinit-haproxy

kubeinit_haproxy_directory: /var/kubeinit/haproxy
kubeinit_haproxy_directory_conf: '{{ kubeinit_haproxy_directory }}/conf'
kubeinit_haproxy_directory_lib: '{{ kubeinit_haproxy_directory }}/lib'

kubeinit_haproxy_directories:
- '{{ kubeinit_haproxy_directory_conf }}'
- '{{ kubeinit_haproxy_directory_lib }}'

kubeinit_haproxy_config_file: '{{ kubeinit_haproxy_directory_conf }}/haproxy.cfg'

kubeinit_haproxy_global_maxconn: 20000
kubeinit_haproxy_global_log: stdout format raw local0 info
kubeinit_haproxy_defaults_timeout_client: 300s
kubeinit_haproxy_defaults_timeout_server: 300s
kubeinit_haproxy_defaults_maxconn: 20000
kubeinit_haproxy_listen_stats_bind: 9000

Molecule Scenarios

Molecule is being used to test the “kubeinit_haproxy” role. The following section highlights the drivers in service and provides an example playbook showing how the role is leveraged.

Scenario: default

Driver: docker
Example default playbook
- name: Converge
  hosts: all
  # roles:
  #   - role: "kubeinit_haproxy"
  tasks:
  - name: Message for "kubeinit_haproxy"
    ansible.builtin.debug:
      msg: Finishing molecule for "kubeinit_haproxy"