ansible-collections / ansible-consul

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

Wrong value in config.son for grpc_tls parameter #605

Open garry-t opened 2 hours ago

garry-t commented 2 hours ago
SUMMARY

Upgrade from consul 13.x.x to 14.x.x failed due issue in config.json file

ISSUE TYPE
COMPONENT NAME

config.json

ANSIBLE VERSION
ansible [core 2.15.12]
executable location = /opt/homebrew/bin/ansible
  python version = 3.11.8 (main, Feb  6 2024, 21:21:21) [Clang 15.0.0 (clang-1500.1.0.2.5)] (/opt/homebrew/opt/python@3.11/bin/python3.11)
  jinja version = 3.1.
COLLECTION VERSION

No need it is role issue, wrong parameter reference

CONFIGURATION

n/a

OS / ENVIRONMENT

Ubuntu 22.04 and 18.04

STEPS TO REPRODUCE

Just run current role with default parameters with consul version 14.x.x

EXPECTED RESULTS

grpc_tls port has proper value

ACTUAL RESULTS
"ports": {
        "dns": 8600,
        "grpc": -1,
        "grpc_tls": "127.0.0.1",
        "http": 8500,
        "https": 8501,
        "serf_lan": 8301,
        "serf_wan": 8302,
        "server": 8300
    },
garry-t commented 2 hours ago

PR with fix https://github.com/ansible-collections/ansible-consul/pull/606