Skip to content

Commit

Permalink
put test in workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
MozeBaltyk committed May 16, 2024
1 parent 36c2ad3 commit 61d1262
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 13 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/stage_airgap.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ jobs:
run: |
cd ./test
if [[ $BUCKET != "terraform-backend-github" ]]; then \
ANSIBLE_HOST_KEY_CHECKING=False ansible-playbook playbooks/hauler_build.yml -e dir_build="${MOUNT_POINT}" -e rancher="true" -e archive="false"; \
ANSIBLE_HOST_KEY_CHECKING=False ansible-playbook playbooks/hauler_build.yml -e dir_build="${MOUNT_POINT}" -e longhorn="true" -e archive="false"; \
fi
deploy:
Expand Down Expand Up @@ -233,9 +233,9 @@ jobs:
run: |
ANSIBLE_HOST_KEY_CHECKING=False ansible-playbook -u root --private-key .key playbooks/install.yml
- name: Run playbook rancher.yml
run: |
ANSIBLE_HOST_KEY_CHECKING=False ansible-playbook -u root --private-key .key playbooks/rancher.yml
#- name: Run playbook rancher.yml
# run: |
# ANSIBLE_HOST_KEY_CHECKING=False ansible-playbook -u root --private-key .key playbooks/rancher.yml

#- name: Run playbook longhorn.yml
# run: |
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ But the target to handle all the usecase below:
| OS | Versions | Method | CNI | Cloud providers | Extra Install |
|--------|-------------------------|----------------|--------|-----------------|-----------------|
| Rocky8 | Defined in collections | airgap tarball | Canal | Digital Ocean | Kubevip |
| Ubuntu | Stable channels | airgap rpm | Calico | AWS | Longhorn |
| Ubuntu | Stable channels | airgap rpm | | AWS | Longhorn |
| | Custom | online | | Azure | Rancher |
| | | | | | Neuvector |

Expand Down
1 change: 0 additions & 1 deletion roles/build_airgap_hauler/tasks/neuvector.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
ansible.builtin.shell:
cmd: |
set -o pipefail
helm repo update
helm template neuvector/core --version {{ neuvector_version }} | awk '$1 ~ /image:/ {print $2}' | sed s/\"//g
executable: /bin/bash
changed_when: false
Expand Down
7 changes: 0 additions & 7 deletions roles/build_airgap_hauler/tasks/rancher.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
ansible.builtin.shell:
cmd: |
set -o pipefail
helm repo update
helm template jetstack/cert-manager --version {{ cert_manager_version }} | awk '$1 ~ /image:/ {print $2}' | sed s/\"//g
executable: /bin/bash
changed_when: false
Expand All @@ -21,12 +20,6 @@
list_images_certmanager: "{{ certmanager_images['stdout'].splitlines() }}"

# Rancher
- name: Add Rancher helm repo
kubernetes.core.helm_repository:
name: rancher-latest
repo_url: "https://releases.rancher.com/server-charts/latest"
force_update: true

- name: Get Rancher images from URL
ansible.builtin.uri:
url: "https://github.com/rancher/rancher/releases/download/v{{ rancher_version }}/rancher-images.txt"
Expand Down

0 comments on commit 61d1262

Please sign in to comment.