ansible-collections / ansible-consul

:satellite: Ansible role for Hashicorp Consul clusters
https://galaxy.ansible.com/ansible-community/consul/
BSD 2-Clause "Simplified" License
456 stars 316 forks source link

Nodes are not joining automatically #363

Open MartinAhrer opened 4 years ago

MartinAhrer commented 4 years ago

I'm setting up a consul cluster with 3 nodes. Each node has the following ansible variables set

consul_bootstrap_expect: true
consul_bootstrap_expect_value: 3
consul_iface: eth1
consul_node_role: server

I already had to explicitly set consul_bootstrap_expect_value: 3 which is supposed to be calculated from the provisioned nodes?

Also the nodes don't join. The generated /etc/consul/config.json has "retry_join": [] The playbook is as follows:

- name: Assemble Consul cluster
  hosts: consul_nodes
  any_errors_fatal: true
  become: true
  become_user: root
  roles:
      - role: brianshumate.consul
        vars:
            consul_group_name: "consul_nodes"

The inventory is:

all:
    hosts:
    children:
        consul_nodes:
            hosts:
                consul0:
                consul1:
                consul2:

Am I missing some variable to set?

ahgraber commented 3 years ago

I am also having this problem -- have you found any solution?