feat: automatic replication mode for garage
This commit is contained in:
@@ -20,5 +20,8 @@
|
||||
template:
|
||||
src: garage.toml.j2
|
||||
dest: /etc/garage.toml
|
||||
vars:
|
||||
cluster_group: "{{ group_names | map('regex_search', '.+_cluster') | select('string') | first }}"
|
||||
garage_replication_mode: "{{ groups[cluster_group] | length if (groups[cluster_group]|length) <=3 else 3 }}"
|
||||
notify:
|
||||
- restart garage
|
||||
|
Reference in New Issue
Block a user