From 093caed88400682fc7790bc36b2793168ac5e181 Mon Sep 17 00:00:00 2001 From: Michal Nasiadka Date: Mon, 30 Jun 2025 07:55:10 +0000 Subject: [PATCH] Add cluster-wide pxc deployment --- ansible/inventory/group_vars/all/pxc | 1 + ansible/run.yml | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 ansible/inventory/group_vars/all/pxc diff --git a/ansible/inventory/group_vars/all/pxc b/ansible/inventory/group_vars/all/pxc new file mode 100644 index 0000000..1a3fed2 --- /dev/null +++ b/ansible/inventory/group_vars/all/pxc @@ -0,0 +1 @@ +zuul_operator_pxc_bundle_url: "https://raw.githubusercontent.com/percona/percona-xtradb-cluster-operator/refs/tags/v1.17.0/deploy/bundle.yaml" diff --git a/ansible/run.yml b/ansible/run.yml index ce42826..ce2c23e 100644 --- a/ansible/run.yml +++ b/ansible/run.yml @@ -4,6 +4,21 @@ hosts: localhost tasks: + - name: Ensure PXC namespace + kubernetes.core.k8s: + name: pxc + api_version: v1 + kind: Namespace + state: present + + - name: Ensure PXC bundle + kubernetes.core.k8s: + namespace: "zuul" + src: "{{ zuul_operator_pxc_bundle_url }}" + state: present + when: zuul_operator_pxc_bundle_url | length > 0 + tags: pxc + - name: Ensure Zuul namespace kubernetes.core.k8s: name: zuul