|
7 | 7 | - install_list.yaml
|
8 | 8 |
|
9 | 9 | tasks:
|
| 10 | + ####################### Architecture ####### |
| 11 | + - name: Gather architecture info |
| 12 | + setup: |
| 13 | + filter: ansible_architecture |
| 14 | + |
| 15 | + - name: Print system architecture |
| 16 | + debug: |
| 17 | + msg: "System architecture is: {{ ansible_architecture }}" |
| 18 | + |
| 19 | + - name: Set architecture-specific variables |
| 20 | + set_fact: |
| 21 | + arch_suffix: >- |
| 22 | + {{ 'amd64' if ansible_architecture == 'x86_64' else 'arm64' }} |
| 23 | +
|
| 24 | + - name: Print Ansible architecture designation |
| 25 | + debug: |
| 26 | + msg: "System architecture is: {{ ansible_architecture }}" |
| 27 | + |
10 | 28 | ####################### Helm ##############
|
| 29 | + - name: Set Helm checksum based on architecture |
| 30 | + set_fact: |
| 31 | + helm_checksum: >- |
| 32 | + {{ 'sha256:90c28792a1eb5fb0b50028e39ebf826531ebfcf73f599050dbd79bab2f277241' |
| 33 | + if arch_suffix == 'amd64' |
| 34 | + else 'sha256:d78d76ec7625a94991e887ac049d93f44bd70e4876200b945f813c9e1ed1df7c' }} |
| 35 | + when: helm == True |
| 36 | + |
11 | 37 | - name: Get helm installation file
|
12 | 38 | get_url:
|
13 |
| - url: "https://get.helm.sh/helm-v3.16.4-linux-amd64.tar.gz" |
14 |
| - dest: "/home/ubuntu/helm-v3.16.4-linux-amd64.tar.gz" |
15 |
| - checksum: sha256:fc307327959aa38ed8f9f7e66d45492bb022a66c3e5da6063958254b9767d179 |
| 39 | + url: "https://get.helm.sh/helm-v3.17.2-linux-{{ arch_suffix }}.tar.gz" |
| 40 | + dest: "/home/ubuntu/helm-v3.17.2-linux-{{ arch_suffix }}.tar.gz" |
| 41 | + checksum: "{{ helm_checksum }}" |
16 | 42 | when: helm == True
|
17 | 43 |
|
18 | 44 | - name: Extract helm
|
19 |
| - shell: tar xzvf /home/ubuntu/helm-v3.16.4-linux-amd64.tar.gz && sudo mv linux-amd64/helm /usr/local/bin/helm |
| 45 | + shell: tar xzvf /home/ubuntu/helm-v3.17.2-linux-{{ arch_suffix }}.tar.gz && sudo mv linux-{{ arch_suffix }}/helm /usr/local/bin/helm |
20 | 46 | args:
|
21 | 47 | executable: /bin/bash
|
22 | 48 | creates: /usr/local/bin/helm
|
|
27 | 53 | path: "{{ item }}"
|
28 | 54 | state: absent
|
29 | 55 | with_items:
|
30 |
| - - /home/ubuntu/linux-amd64 |
31 |
| - - /home/ubuntu/helm-v3.16.4-linux-amd64.tar.gz |
| 56 | + - /home/ubuntu/linux-{{ arch_suffix }} |
| 57 | + - /home/ubuntu/helm-v3.17.2-linux-{{ arch_suffix }}.tar.gz |
32 | 58 | when: helm == True
|
33 | 59 |
|
34 | 60 | ######################## K9S ##############
|
35 | 61 | - name: Get K9s installation file
|
36 | 62 | get_url:
|
37 |
| - url: "https://github.com/derailed/k9s/releases/download/v0.32.7/k9s_Linux_amd64.tar.gz" |
38 |
| - dest: "/home/ubuntu/k9s_Linux_amd64.tar.gz" |
39 |
| - checksum: sha256:https://github.com/derailed/k9s/releases/download/v0.32.7/checksums.sha256 |
| 63 | + url: "https://github.com/derailed/k9s/releases/download/v0.40.10/k9s_Linux_{{ arch_suffix }}.tar.gz" |
| 64 | + dest: "/home/ubuntu/k9s_Linux_{{ arch_suffix }}.tar.gz" |
| 65 | + checksum: sha256:https://github.com/derailed/k9s/releases/download/v0.40.10/checksums.sha256 |
40 | 66 | when: k9s == True
|
41 | 67 |
|
42 | 68 | - name: Extract k9s
|
43 |
| - command: sudo tar Cxzvf /usr/local/bin /home/ubuntu/k9s_Linux_amd64.tar.gz |
| 69 | + command: sudo tar Cxzvf /usr/local/bin /home/ubuntu/k9s_Linux_{{ arch_suffix }}.tar.gz |
44 | 70 | args:
|
45 | 71 | creates: /usr/local/bin/k9s
|
46 | 72 | when: k9s == True
|
47 | 73 |
|
48 | 74 | - name: Remove k9s tarball
|
49 | 75 | file:
|
50 |
| - path: /home/ubuntu/k9s_Linux_amd64.tar.gz |
| 76 | + path: /home/ubuntu/k9s_Linux_{{ arch_suffix }}.tar.gz |
51 | 77 | state: absent
|
52 | 78 | when: k9s == True
|
53 | 79 | ######################### MetalLB ##############
|
|
122 | 148 | ################### ROOK / CEPH #################
|
123 | 149 |
|
124 | 150 | - name: Install CertManager prerequisite
|
125 |
| - shell: kubectl apply -f https://github.com/cert-manager/cert-manager/releases/download/v1.16.2/cert-manager.yaml && sudo touch /etc/.certManagerInstalled |
| 151 | + shell: kubectl apply -f https://github.com/cert-manager/cert-manager/releases/download/v1.17.1/cert-manager.yaml && sudo touch /etc/.certManagerInstalled |
126 | 152 | args:
|
127 | 153 | creates: /etc/.certManagerInstalled
|
128 | 154 | executable: /bin/bash
|
|
324 | 350 |
|
325 | 351 | - name: Get 'istioctl' installation file
|
326 | 352 | get_url:
|
327 |
| - url: "https://github.com/istio/istio/releases/download/1.24.2/istio-1.24.2-linux-amd64.tar.gz" |
328 |
| - dest: "/home/ubuntu/istio-1.24.2-linux-amd64.tar.gz" |
329 |
| - checksum: sha256:https://github.com/istio/istio/releases/download/1.24.2/istio-1.24.2-linux-amd64.tar.gz.sha256 |
| 353 | + url: "https://github.com/istio/istio/releases/download/1.25.1/istio-1.25.1-linux-{{ arch_suffix }}.tar.gz" |
| 354 | + dest: "/home/ubuntu/istio-1.25.1-linux-{{ arch_suffix }}.tar.gz" |
| 355 | + checksum: sha256:https://github.com/istio/istio/releases/download/1.25.1/istio-1.25.1-linux-{{ arch_suffix }}.tar.gz.sha256 |
330 | 356 | when: istio == True
|
331 | 357 |
|
332 | 358 | - name: Extract istioctl
|
333 |
| - shell: tar xzvf /home/ubuntu/istio-1.24.2-linux-amd64.tar.gz && sudo mv istio-1.24.2/bin/istioctl /usr/local/bin/istioctl |
| 359 | + shell: tar xzvf /home/ubuntu/istio-1.25.1-linux-{{ arch_suffix }}.tar.gz && sudo mv istio-1.25.1/bin/istioctl /usr/local/bin/istioctl |
334 | 360 | args:
|
335 | 361 | executable: /bin/bash
|
336 | 362 | creates: /usr/local/bin/istioctl
|
337 | 363 | when: istio == True
|
338 | 364 |
|
339 | 365 | - name: Install istio
|
340 |
| - shell: istioctl install -f /home/ubuntu/istio-1.24.2/manifests/profiles/demo.yaml --skip-confirmation && sudo touch /etc/.istioInstalled |
| 366 | + shell: istioctl install -f /home/ubuntu/istio-1.25.1/manifests/profiles/demo.yaml --skip-confirmation && sudo touch /etc/.istioInstalled |
341 | 367 | args:
|
342 | 368 | executable: /bin/bash
|
343 | 369 | creates: /etc/.istioInstalled
|
|
357 | 383 | when: istio == True
|
358 | 384 |
|
359 | 385 | - name: Install Istio add-ons
|
360 |
| - shell: kubectl apply -n istio-system -f /home/ubuntu/istio-1.24.2/samples/addons && sudo touch /etc/.istioAddonsInstalled |
| 386 | + shell: kubectl apply -n istio-system -f /home/ubuntu/istio-1.25.1/samples/addons && sudo touch /etc/.istioAddonsInstalled |
361 | 387 | args:
|
362 | 388 | executable: /bin/bash
|
363 | 389 | creates: /etc/.istioAddonsInstalled
|
|
395 | 421 | path: "{{ item }}"
|
396 | 422 | state: absent
|
397 | 423 | with_items:
|
398 |
| - - /home/ubuntu/istio-1.24.2 |
399 |
| - - /home/ubuntu/istio-1.24.2-linux-amd64.tar.gz |
| 424 | + - /home/ubuntu/istio-1.25.1 |
| 425 | + - /home/ubuntu/istio-1.25.1-linux-{{ arch_suffix }}.tar.gz |
400 | 426 | - /home/ubuntu/patch-service.yaml
|
401 | 427 | when: istio == True
|
0 commit comments