From 6f30aa865e63b86c64a6c7a06e04bafeb1cf1b35 Mon Sep 17 00:00:00 2001 From: Vitaliy Kukharik Date: Fri, 13 Dec 2024 18:52:05 +0500 Subject: [PATCH 01/13] amazon.aws 9.1.0 --- automation/requirements.yml | 2 +- automation/roles/cloud-resources/tasks/aws.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/automation/requirements.yml b/automation/requirements.yml index 18f8c6e74..6d7a91009 100644 --- a/automation/requirements.yml +++ b/automation/requirements.yml @@ -1,7 +1,7 @@ --- collections: - name: amazon.aws - version: "==8.1.0" + version: "==9.1.0" - name: google.cloud version: "==1.3.0" - name: azure.azcollection diff --git a/automation/roles/cloud-resources/tasks/aws.yml b/automation/roles/cloud-resources/tasks/aws.yml index a71810094..d8b334107 100644 --- a/automation/roles/cloud-resources/tasks/aws.yml +++ b/automation/roles/cloud-resources/tasks/aws.yml @@ -208,7 +208,7 @@ region: "{{ server_location }}" security_groups: "{{ ([] if not cloud_firewall | bool else [patroni_cluster_name + '-security-group']) }}" vpc_subnet_id: "{{ server_network }}" - network: + network_interfaces: assign_public_ip: true delete_on_termination: true volumes: From 433d48d6dc2b1e4127e0baa40f32d9710cd0ab47 Mon Sep 17 00:00:00 2001 From: Vitaliy Kukharik Date: Fri, 13 Dec 2024 18:57:47 +0500 Subject: [PATCH 02/13] google.cloud 1.4.1 --- README.md | 2 +- automation/add_pgnode.yml | 2 +- automation/config_pgcluster.yml | 2 +- automation/deploy_pgcluster.yml | 2 +- automation/requirements.yml | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 28cc23836..af4d729b3 100644 --- a/README.md +++ b/README.md @@ -121,7 +121,7 @@ _Table of results of daily automated testing of cluster deployment:_ | AlmaLinux 9 | [![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/vitabaks/autobase/schedule_pg_almalinux9.yml?branch=master)](https://github.com/vitabaks/autobase/actions/workflows/schedule_pg_almalinux9.yml) | ###### Ansible version -Minimum supported Ansible version: 8.0.0 (ansible-core 2.15.0) +Minimum supported Ansible version: 9.0.0 (ansible-core 2.16.0) ## Requirements diff --git a/automation/add_pgnode.yml b/automation/add_pgnode.yml index 15d301160..08127325c 100644 --- a/automation/add_pgnode.yml +++ b/automation/add_pgnode.yml @@ -118,7 +118,7 @@ - role: pre-checks vars: - minimal_ansible_version: 2.11.0 + minimal_ansible_version: 2.16.0 timescale_minimal_pg_version: 12 # if enable_timescale is defined tags: always diff --git a/automation/config_pgcluster.yml b/automation/config_pgcluster.yml index 106b0713f..10f39d2b7 100644 --- a/automation/config_pgcluster.yml +++ b/automation/config_pgcluster.yml @@ -106,7 +106,7 @@ roles: - role: pre-checks vars: - minimal_ansible_version: 2.15.0 + minimal_ansible_version: 2.16.0 timescale_minimal_pg_version: 12 # if enable_timescale is defined tags: - always diff --git a/automation/deploy_pgcluster.yml b/automation/deploy_pgcluster.yml index ebe7f530e..0968f1fa6 100644 --- a/automation/deploy_pgcluster.yml +++ b/automation/deploy_pgcluster.yml @@ -90,7 +90,7 @@ - role: pre-checks vars: - minimal_ansible_version: 2.15.0 + minimal_ansible_version: 2.16.0 timescale_minimal_pg_version: 12 # if enable_timescale is defined tags: always diff --git a/automation/requirements.yml b/automation/requirements.yml index 6d7a91009..f3db49bd5 100644 --- a/automation/requirements.yml +++ b/automation/requirements.yml @@ -3,7 +3,7 @@ collections: - name: amazon.aws version: "==9.1.0" - name: google.cloud - version: "==1.3.0" + version: "==1.4.1" - name: azure.azcollection version: "==2.6.0" - name: community.digitalocean From 4c26158949856b079f34a06b9f125fe77fc43314 Mon Sep 17 00:00:00 2001 From: Vitaliy Kukharik Date: Fri, 13 Dec 2024 19:02:51 +0500 Subject: [PATCH 03/13] azure.azcollection 3.1.0 --- automation/requirements.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/automation/requirements.yml b/automation/requirements.yml index f3db49bd5..82c9a0112 100644 --- a/automation/requirements.yml +++ b/automation/requirements.yml @@ -5,7 +5,7 @@ collections: - name: google.cloud version: "==1.4.1" - name: azure.azcollection - version: "==2.6.0" + version: "==3.1.0" - name: community.digitalocean version: "==1.26.0" - name: hetzner.hcloud From b572156a061b65698870c648368526af03296fe1 Mon Sep 17 00:00:00 2001 From: Vitaliy Kukharik Date: Fri, 13 Dec 2024 19:04:38 +0500 Subject: [PATCH 04/13] community.digitalocean 1.27.0 --- automation/requirements.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/automation/requirements.yml b/automation/requirements.yml index 82c9a0112..25c955df3 100644 --- a/automation/requirements.yml +++ b/automation/requirements.yml @@ -7,6 +7,6 @@ collections: - name: azure.azcollection version: "==3.1.0" - name: community.digitalocean - version: "==1.26.0" + version: "==1.27.0" - name: hetzner.hcloud version: "==4.1.0" From 2f0053fd017d506f53b0fe89d8aaa0c1429199c1 Mon Sep 17 00:00:00 2001 From: Vitaliy Kukharik Date: Fri, 13 Dec 2024 19:06:10 +0500 Subject: [PATCH 05/13] hetzner.hcloud 4.2.2 --- automation/requirements.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/automation/requirements.yml b/automation/requirements.yml index 25c955df3..4f39f7091 100644 --- a/automation/requirements.yml +++ b/automation/requirements.yml @@ -9,4 +9,4 @@ collections: - name: community.digitalocean version: "==1.27.0" - name: hetzner.hcloud - version: "==4.1.0" + version: "==4.2.2" From af853c3ad1421441577bb23d5d0943677e43b74e Mon Sep 17 00:00:00 2001 From: Vitaliy Kukharik Date: Fri, 13 Dec 2024 19:10:48 +0500 Subject: [PATCH 06/13] ansible 10.7.0 --- automation/requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/automation/requirements.txt b/automation/requirements.txt index a5d641bae..20832684d 100644 --- a/automation/requirements.txt +++ b/automation/requirements.txt @@ -1,4 +1,4 @@ -ansible==9.8.0 +ansible==10.7.0 boto3==1.34.158 dopy==0.3.7 google-auth==2.33.0 From da5e212046102954dfb8c59d68b65e851716a6c4 Mon Sep 17 00:00:00 2001 From: Vitaliy Kukharik Date: Fri, 13 Dec 2024 19:12:28 +0500 Subject: [PATCH 07/13] boto3 1.35.80 --- automation/requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/automation/requirements.txt b/automation/requirements.txt index 20832684d..89dfc0892 100644 --- a/automation/requirements.txt +++ b/automation/requirements.txt @@ -1,5 +1,5 @@ ansible==10.7.0 -boto3==1.34.158 +boto3==1.35.80 dopy==0.3.7 google-auth==2.33.0 hcloud==2.2.0 From 2f67ddf4ba7a3cdc92c3d4d25ef63b680188bb4e Mon Sep 17 00:00:00 2001 From: Vitaliy Kukharik Date: Fri, 13 Dec 2024 19:13:03 +0500 Subject: [PATCH 08/13] google-auth 2.37.0 --- automation/requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/automation/requirements.txt b/automation/requirements.txt index 89dfc0892..c58fdf6ab 100644 --- a/automation/requirements.txt +++ b/automation/requirements.txt @@ -1,5 +1,5 @@ ansible==10.7.0 boto3==1.35.80 dopy==0.3.7 -google-auth==2.33.0 +google-auth==2.37.0 hcloud==2.2.0 From 1b9e7df27040b5022e66e728d221c709482972f5 Mon Sep 17 00:00:00 2001 From: Vitaliy Kukharik Date: Fri, 13 Dec 2024 19:13:31 +0500 Subject: [PATCH 09/13] hcloud 2.3.0 --- automation/requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/automation/requirements.txt b/automation/requirements.txt index c58fdf6ab..1c4a59f38 100644 --- a/automation/requirements.txt +++ b/automation/requirements.txt @@ -2,4 +2,4 @@ ansible==10.7.0 boto3==1.35.80 dopy==0.3.7 google-auth==2.37.0 -hcloud==2.2.0 +hcloud==2.3.0 From d3c666e49ee971b470073118e771106626604428 Mon Sep 17 00:00:00 2001 From: Vitaliy Kukharik Date: Fri, 13 Dec 2024 14:34:48 +0000 Subject: [PATCH 10/13] Update dev requirements --- .config/python/dev/requirements.txt | 60 ++++++++++++++--------------- 1 file changed, 30 insertions(+), 30 deletions(-) diff --git a/.config/python/dev/requirements.txt b/.config/python/dev/requirements.txt index 66994e4a6..39154f02e 100644 --- a/.config/python/dev/requirements.txt +++ b/.config/python/dev/requirements.txt @@ -1,42 +1,42 @@ -requests==2.31.0 -docker==6.1.3 -molecule==6.0.3 +requests==2.32.3 +docker==7.1.0 +molecule==24.12.0 molecule-plugins==23.5.3 -ansible-lint==24.2.0 +ansible-lint==24.12.2 yamllint==1.35.1 -attrs==23.2.0 -black==24.3.0 -bracex==2.4 -cffi==1.16.0 +attrs==24.2.0 +black==24.10.0 +bracex==2.5.post1 +cffi==1.17.1 click==8.1.7 -cryptography==42.0.4 -filelock==3.13.1 -flake8==7.0.0 +cryptography==44.0.0 +filelock==3.16.1 +flake8==7.1.1 Jinja2==3.1.4 -jsonschema==4.21.1 -jsonschema-specifications==2023.12.1 +jsonschema==4.23.0 +jsonschema-specifications==2024.10.1 markdown-it-py==3.0.0 -MarkupSafe==2.1.5 +MarkupSafe==3.0.2 mccabe==0.7.0 mdurl==0.1.2 mypy-extensions==1.0.0 -packaging==23.2 +packaging==24.2 pathspec==0.12.1 -platformdirs==4.2.0 -pycodestyle==2.11.1 -pycparser==2.21 +platformdirs==4.3.6 +pycodestyle==2.12.1 +pycparser==2.22 pyflakes==3.2.0 -Pygments==2.17.2 -PyYAML==6.0.1 -referencing==0.33.0 +Pygments==2.18.0 +PyYAML==6.0.2 +referencing==0.35.1 resolvelib==1.0.1 -rich==13.7.0 -rpds-py==0.18.0 -ruamel.yaml==0.18.6 +rich==13.9.4 +rpds-py==0.22.3 +ruamel.yaml==0.17.40 ruamel.yaml.clib==0.2.8 -setuptools==69.1.0 -subprocess-tee==0.4.1 -tomli==2.0.1 -typing_extensions==4.9.0 -wcmatch==8.5 -wheel==0.42.0 +setuptools==75.6.0 +subprocess-tee==0.4.2 +tomli==2.2.1 +typing_extensions==4.12.2 +wcmatch==10.0 +wheel==0.45.1 From 637f7c73102289e3e181ab942a9f00f8752bad87 Mon Sep 17 00:00:00 2001 From: Vitaliy Kukharik Date: Fri, 13 Dec 2024 19:38:38 +0500 Subject: [PATCH 11/13] Update ruamel.yaml --- .config/python/dev/requirements.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.config/python/dev/requirements.txt b/.config/python/dev/requirements.txt index 39154f02e..9e81e9f13 100644 --- a/.config/python/dev/requirements.txt +++ b/.config/python/dev/requirements.txt @@ -32,8 +32,8 @@ referencing==0.35.1 resolvelib==1.0.1 rich==13.9.4 rpds-py==0.22.3 -ruamel.yaml==0.17.40 -ruamel.yaml.clib==0.2.8 +ruamel.yaml==0.18.6 +ruamel.yaml.clib==0.2.12 setuptools==75.6.0 subprocess-tee==0.4.2 tomli==2.2.1 From 2b5538cd38e73b03173b654f67e2c6d7f6cf0bb8 Mon Sep 17 00:00:00 2001 From: Vitaliy Kukharik <37010174+vitabaks@users.noreply.github.com> Date: Fri, 13 Dec 2024 21:23:19 +0500 Subject: [PATCH 12/13] ansible 9.13.0 --- automation/requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/automation/requirements.txt b/automation/requirements.txt index 1c4a59f38..8daa2caff 100644 --- a/automation/requirements.txt +++ b/automation/requirements.txt @@ -1,4 +1,4 @@ -ansible==10.7.0 +ansible==9.13.0 boto3==1.35.80 dopy==0.3.7 google-auth==2.37.0 From 574245100e93f641e69bc8e25497cdcb83a0a354 Mon Sep 17 00:00:00 2001 From: Vitaliy Kukharik Date: Fri, 13 Dec 2024 23:50:44 +0500 Subject: [PATCH 13/13] Fix "free-form" (ansible-lint) --- automation/roles/ansible-role-firewall/tasks/main.yml | 6 +++--- automation/roles/swap/tasks/main.yml | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/automation/roles/ansible-role-firewall/tasks/main.yml b/automation/roles/ansible-role-firewall/tasks/main.yml index f12619dd9..2c6b44769 100644 --- a/automation/roles/ansible-role-firewall/tasks/main.yml +++ b/automation/roles/ansible-role-firewall/tasks/main.yml @@ -10,9 +10,9 @@ retries: 3 - name: Flush iptables the first time playbook runs. - ansible.builtin.command: > - iptables -F - creates=/etc/firewall.bash + ansible.builtin.command: + cmd: iptables -F + creates: /etc/firewall.bash - name: Copy firewall script into place. ansible.builtin.template: diff --git a/automation/roles/swap/tasks/main.yml b/automation/roles/swap/tasks/main.yml index ef5a387ee..6787d57c3 100644 --- a/automation/roles/swap/tasks/main.yml +++ b/automation/roles/swap/tasks/main.yml @@ -37,9 +37,9 @@ # if the swap does not exist - block: - name: Create swap file - ansible.builtin.command: > - dd if=/dev/zero of={{ swap_file_path }} bs=1M count={{ swap_file_size_mb }} - creates='{{ swap_file_path }}' + ansible.builtin.command: + cmd: dd if=/dev/zero of={{ swap_file_path }} bs=1M count={{ swap_file_size_mb }} + creates: "{{ swap_file_path }}" - name: Set permissions on swap file ansible.builtin.file: