Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Select the VM arch based on the Ansible architecture value #98

Closed
Nuttymoon opened this issue Oct 16, 2023 · 0 comments · Fixed by #101
Closed

Select the VM arch based on the Ansible architecture value #98

Nuttymoon opened this issue Oct 16, 2023 · 0 comments · Fixed by #101

Comments

@Nuttymoon
Copy link
Contributor

Currently, the arch used to install VMs is hardcoded to amd64:

avalanchego_vm_binary_filename: "{{ vm_name }}_{{ vm_version }}_linux_amd64.tar.gz"

We should use a similar mechanism than for AvalancheGo and Ash CLI:

avalanchego_binary_name: "avalanchego-linux-{{ avalanchego_binary_arch }}-v{{ avalanchego_version }}.tar.gz"

- name: Set avalanchego_binary_arch according to ansible_architecture
set_fact:
avalanchego_binary_arch: "{{ 'amd64' if ansible_architecture == 'x86_64' else 'arm64' if ansible_architecture == 'aarch64' else avalanchego_binary_arch }}"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant