From bfa8633fcf6f628722aa9aaa1c1efce33cf72ce7 Mon Sep 17 00:00:00 2001 From: Ian Fijolek Date: Tue, 27 Sep 2022 21:27:34 -0700 Subject: [PATCH] Remove some hosts --- nomad/ansible_hosts.yml | 15 ++++++++------- nomad/setup-cluster.yml | 2 +- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/nomad/ansible_hosts.yml b/nomad/ansible_hosts.yml index 6b82681..267e3ac 100644 --- a/nomad/ansible_hosts.yml +++ b/nomad/ansible_hosts.yml @@ -20,6 +20,7 @@ all: mode: "0755" read_only: false n2.thefij: + nomad_node_class: ingress nomad_node_role: both nomad_unique_host_volumes: - name: nextcloud-data @@ -40,13 +41,13 @@ all: group: "bin" mode: "0755" read_only: false - n3.thefij: - nomad_node_class: ingress - nomad_node_role: both - pi4: - nomad_node_role: client - pi3: - nomad_node_role: client + # n3.thefij: + # nomad_node_class: ingress + # nomad_node_role: both + # pi3: + # nomad_node_role: client + # pi4: + # nomad_node_role: client consul_instances: children: diff --git a/nomad/setup-cluster.yml b/nomad/setup-cluster.yml index 7d43bf1..c13ed95 100644 --- a/nomad/setup-cluster.yml +++ b/nomad/setup-cluster.yml @@ -16,7 +16,7 @@ consul_node_role: server consul_bootstrap_expect: true - consul_bootstrap_expect_value: 3 + consul_bootstrap_expect_value: "{{ [(play_hosts | length), 3] | min }}" consul_user: consul consul_manage_user: true