From 7f4995817b5a7645ab95fd86338d09dd84b66199 Mon Sep 17 00:00:00 2001 From: Ian Fijolek Date: Tue, 30 Aug 2022 16:15:12 -0700 Subject: [PATCH] Use default arch maps where possible --- setup-cluster.yml | 24 +++++------------------- 1 file changed, 5 insertions(+), 19 deletions(-) diff --git a/setup-cluster.yml b/setup-cluster.yml index b620b4f..16cc01d 100644 --- a/setup-cluster.yml +++ b/setup-cluster.yml @@ -22,11 +22,6 @@ consul_group: bin consul_manage_group: true - consul_architecture_map: - x86_64: amd64 - armhfv6: arm - armv7l: arm - # consul_tls_enable: true consul_connect_enabled: true consul_ports_grpc: 8502 @@ -247,8 +242,11 @@ hosts: nomad_instances become: true vars: - deb_arch: "{% if ansible_architecture == 'x86_64' %}amd64{% elif ansible_architecture == 'armv7l' %}armhf{% elif ansible_architecture == 'aarch64' %}arm64{% endif %}" - docker_apt_arch: "{{ deb_arch }}" + docker_architecture_map: + x86_64: amd64 + armv7l: armhf + aarch64: arm64 + docker_apt_arch: "{{ docker_architecture_map[ansible_architecture] }}" docker_compose_arch: "{{ (ansible_architecture == 'armv7l') | ternary('armv7', ansible_architecture) }}" roles: - geerlingguy.docker @@ -302,18 +300,6 @@ nomad_bin_dir: /usr/bin nomad_install_from_repo: true - # nomad_user: root - # nomad_manage_user: true - # nomad_group: bin - # nomad_manage_group: true - - # Properly map install arch - nomad_architecture_map: - x86_64: amd64 - armhfv6: arm - armv7l: arm - aarch64: arm64 - nomad_autopilot: true nomad_encrypt_enable: true # nomad_use_consul: true