فهرست منبع

install ad482 scripts and fix ad482 script templates

Grega Bremec 1 هفته پیش
والد
کامیت
fc5289eb85
2فایلهای تغییر یافته به همراه21 افزوده شده و 0 حذف شده
  1. 7 0
      files/template-patch.j2
  2. 14 0
      pre-flight.yml

+ 7 - 0
files/template-patch.j2

@@ -0,0 +1,7 @@
+--- foo.orig        2025-09-22 12:44:12.777989128 -0400
++++ foo.yaml        2025-09-22 12:44:10.974838659 -0400
+@@ -1,4 +1,4 @@
+-apiVersion: v1
++apiVersion: template.openshift.io/v1
+ kind: Template
+ metadata:

+ 14 - 0
pre-flight.yml

@@ -36,5 +36,19 @@
         loop_var: role
       tags: deploy
 
+    - name: Install AD482 labs
+      ansible.builtin.command:
+        cmd: lab install ad482 --version=1.8.6
+        creates: /home/student/.local/lib/python3.11/site-packages/ad482
+
+    - name: Patch API version of some templates
+      ansible.posix.patch:
+        dest: /home/student/.local/lib/python3.11/site-packages/ad482/common/kubefiles/templates/{{ item }}
+        src: files/template-patch.j2
+      loop:
+        - cluster.yaml
+        - connect-cluster.yaml
+        - elasticsearch.yaml
+
   # TODO: deploy vscode / codium ?
 ...