main.yml 1.71 KB
Newer Older
EKbfh's avatar
EKbfh committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
---

cluster_config: ""
nats_servers: ""
nats_connect_port: 4222
nats_srv_list: "{% for n in groups[ 'svc-nats-exec' ] %}nats://{{ hostvars[n].ansible_host }}:{{ nats_connect_port }} {% endfor %}"

## Config
config:
  host: "{{ ansible_host }}"
  data:
    dir: "{{ liftbridge_data_path }}"
  logging:
    level: "{{ liftbridge_loglevel }}"
    raft: true
  streams:
EKbfh's avatar
EKbfh committed
17
    compact.enabled: false
EKbfh's avatar
EKbfh committed
18
    retention.max:
EKbfh's avatar
EKbfh committed
19
20
21
      age: 3h
    segment.max:
      age: 20m
EKbfh's avatar
EKbfh committed
22
23
  clustering: "{{ cluster_config }}"
  nats.servers: "{{ nats_servers }}"
EKbfh's avatar
EKbfh committed
24
25
26
  cursors:
    stream.auto.pause.time: 0
    stream.partitions: 1
EKbfh's avatar
EKbfh committed
27
28
29
30

liftbridge_isr_count: 1

## Package
31
liftbridge_version: "1.7.0"
EKbfh's avatar
EKbfh committed
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
liftbridge_tar_gz_url: "https://github.com/liftbridge-io/liftbridge/releases/download/v{{ liftbridge_version }}/liftbridge_{{ liftbridge_version }}_linux_amd64.tar.gz"
liftbridge_checksum_file_url: "https://github.com/liftbridge-io/liftbridge/releases/download/v{{ liftbridge_version }}/checksums.txt"
liftbridge_temp_file_checksum: "{{ tower_dist_dir }}/{{ liftbridge_version }}.checksums.txt"
liftbridge_temp_file: "{{ tower_dist_dir }}/{{ liftbridge_pkg }}"
liftbridge_temp_unarchive: "/tmp/liftbridge/{{ liftbridge_version }}"
liftbridge_pkg: "liftbridge_{{ liftbridge_version }}_linux_amd64.tar.gz"

## Paths
liftbridge_data: "/var/liftbridge"
liftbridge_bin_path: "/bin"
liftbridge_data_path: "/var/lib/liftbridge"
liftbridge_log_path: "/var/log/liftbridge"
liftbridge_run_path: "/var/run/liftbridge"
liftbridge_pid_path: "{{ liftbridge_run_path }}/liftbridge.pid"
liftbridge_home: "/home/{{ liftbridge_user }}"
liftbridge_config_path: "{{ etc_prefix }}/liftbridge"

## System user and group
liftbridge_user: "liftbridge"
liftbridge_group: "bin"

## Defaults
liftbridge_loglevel: info