openstack-helm-infra/roles/deploy-env/tasks/cilium.yaml
Vladimir Kozhukalov bc45596483 Add Cilium deployment to deploy-env role
Change-Id: I7cec2d3ff09ec3f85992162bbdb8c351660f7de8
2024-07-02 08:58:30 +00:00

23 lines
812 B
YAML

---
- name: Download Cilium
shell: |
CILIUM_CLI_VERSION=$(curl -s https://raw.githubusercontent.com/cilium/cilium-cli/main/stable.txt)
CLI_ARCH=amd64
curl -L --fail --remote-name-all https://github.com/cilium/cilium-cli/releases/download/${CILIUM_CLI_VERSION}/cilium-linux-${CLI_ARCH}.tar.gz{,.sha256sum}
sha256sum --check cilium-linux-${CLI_ARCH}.tar.gz.sha256sum
tar xzvfC cilium-linux-${CLI_ARCH}.tar.gz /usr/local/bin
rm cilium-linux-${CLI_ARCH}.tar.gz{,.sha256sum}
args:
executable: /bin/bash
chdir: /tmp
when: inventory_hostname in (groups['primary'] | default([]))
- name: Deploy Cilium
become: false
shell: |
cilium install --version {{ cilium_version }}
args:
executable: /bin/bash
when: inventory_hostname in (groups['primary'] | default([]))
...