File: main.yml

package info (click to toggle)
crmsh 5.0.0~rc1-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 7,752 kB
  • sloc: python: 50,224; sh: 1,204; makefile: 254; xml: 243; exp: 234; awk: 22
file content (37 lines) | stat: -rw-r--r-- 893 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
version: 2.2
category: Server
shortdesc: HAProxy
longdesc: |
  HAProxy is a free, very fast and reliable solution offering
  high availability, load balancing, and proxying for TCP and
  HTTP-based applications. It is particularly suited for very
  high traffic web sites and powers quite a number of the
  world's most visited ones.

  NOTE: Installs a basic haproxy.cfg configuration file.
  This will overwrite any existing haproxy.cfg.

include:
  - agent: systemd:haproxy
    name: haproxy
    ops: |
      op monitor interval=10s

parameters:
  - name: install
    type: boolean
    value: false
    shortdesc: Install and configure HAProxy packages

actions:
  - install: haproxy
    nodes: all
    when: install
  - service: "haproxy:disable"
    nodes: all
    when: install
  - copy: haproxy.cfg
    to: /etc/haproxy/haproxy.cfg
    nodes: all
    when: install
  - include: haproxy