Skip to content

Commit

Permalink
Update WAL-G to v3.0.0 (#629)
Browse files Browse the repository at this point in the history
  • Loading branch information
vitabaks authored Apr 16, 2024
1 parent 7ea77c8 commit 8e7151c
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 14 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ RedHat and Debian based distros (x86_64)

###### Supported Linux Distributions:
- **Debian**: 10, 11, 12
- **Ubuntu**: 18.04, 20.04, 22.04
- **Ubuntu**: 20.04, 22.04
- **CentOS**: 7, 8
- **CentOS Stream**: 8, 9
- **Oracle Linux**: 7, 8, 9
Expand Down
16 changes: 5 additions & 11 deletions roles/wal-g/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
- wal_g_installed_version.stdout == wal_g_version
tags: wal-g, wal_g, wal_g_install

# Install WAL-G from a precompiled binary for Ubuntu 18.04 and 20.04
# Install WAL-G from a precompiled binary for Ubuntu 20.04
- block:
- name: "Download WAL-G v{{ wal_g_version }} binary"
ansible.builtin.get_url:
Expand All @@ -48,11 +48,8 @@
when:
- installation_method == "repo"
- wal_g_version is version('1.0', '>=')
- (wal_g_installed_version.stderr is search("command not found") or
wal_g_installed_version.stdout != wal_g_version)
- (ansible_distribution == 'Ubuntu' and
(ansible_distribution_version is version('18.04', '==') or
ansible_distribution_version is version('20.04', '==')))
- (wal_g_installed_version.stderr is search("command not found") or wal_g_installed_version.stdout != wal_g_version)
- (ansible_distribution == 'Ubuntu' and ansible_distribution_version == '20.04')
tags: wal-g, wal_g, wal_g_install

# Build WAL-G from source code for other Linux distributions
Expand Down Expand Up @@ -165,11 +162,8 @@
when:
- installation_method == "repo"
- wal_g_version is version('1.0', '>=')
- (wal_g_installed_version.stderr is search("command not found") or
wal_g_installed_version.stdout != wal_g_version)
- not (ansible_distribution == 'Ubuntu' and
(ansible_distribution_version is version('18.04', '==') or
ansible_distribution_version is version('20.04', '==')))
- (wal_g_installed_version.stderr is search("command not found") or wal_g_installed_version.stdout != wal_g_version)
- not (ansible_distribution == 'Ubuntu' and ansible_distribution_version == '20.04')
tags: wal-g, wal_g, wal_g_install

# older versions of WAL-G (for compatibility)
Expand Down
1 change: 0 additions & 1 deletion vars/Debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ vip_manager_package_repo:
haproxy_installation_method: "deb" # (default)"deb" or "src"
haproxy_install_repo: true # or 'false'
# for Debian 10 the haproxy version 1.8 (LTS) will be installed from the haproxy.debian.net repository.
# for Ubuntu 18.04 the haproxy version 1.8 (LTS) will be installed from the ppa:vbernat/haproxy-1.8 repository.
# you can preload the haproxy deb packages to your APT repository (in this case specify "haproxy_install_repo: false").
confd_package_repo: "https://github.com/kelseyhightower/confd/releases/download/v0.16.0/confd-0.16.0-linux-amd64"

Expand Down
2 changes: 1 addition & 1 deletion vars/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ pg_probackup_patroni_cluster_bootstrap_command: "{{ pg_probackup_command_parts |

# WAL-G
wal_g_install: false # or 'true'
wal_g_version: "2.0.1"
wal_g_version: "3.0.0"
wal_g_json: # config https://github.com/wal-g/wal-g#configuration
- { option: "AWS_ACCESS_KEY_ID", value: "{{ AWS_ACCESS_KEY_ID | default('') }}" } # define values or pass via --extra-vars
- { option: "AWS_SECRET_ACCESS_KEY", value: "{{ AWS_SECRET_ACCESS_KEY | default('') }}" } # define values or pass via --extra-vars
Expand Down

0 comments on commit 8e7151c

Please sign in to comment.