system-config/playbooks/zuul/templates/group_vars/zuul-lb.yaml.j2
Ian Wienand 29202eba1a zuul-lb : issue HEAD / checks
As found in Ie5d55b2a2d96a78b34d23cc6fbac62900a23fc37, the default for
this is to issue "OPTIONS /" which is kind of a weird request.  The
Zuul hosts currently seem to return the main page content in response
to a OPTIONS request, which probably isn't right.

Make this more robust by just using "HEAD /" request.

Change-Id: Ibbd32ae744af9c33aedd087a8146195844814b3f
2022-03-08 10:24:03 +11:00

26 lines
889 B
Django/Jinja

zuul_lb_listeners:
- name: balance_zuul_http
bind:
- ":::80"
check_option: "httpchk HEAD /"
servers:
- name: "zuul02.opendev.org"
address: "{{ (hostvars['zuul02.opendev.org'] | default({})).get('nodepool', {}).get('public_ipv4', '') }}:80"
check_method: "check"
- name: balance_zuul_https
bind:
- ":::443"
check_option: "httpchk"
servers:
- name: "zuul02.opendev.org"
address: "{{ (hostvars['zuul02.opendev.org'] | default({})).get('nodepool', {}).get('public_ipv4', '') }}:443"
check_method: 'check check-ssl verify none'
- name: balance_zuul_finger
bind:
- ":::79"
check_option: "tcp-check"
servers:
- name: "zuul02.opendev.org"
address: "{{ (hostvars['zuul02.opendev.org'] | default({})).get('nodepool', {}).get('public_ipv4', '') }}:79"
check_method: "check"