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

New parameter infinispan_jgroups_cluster_nodes to explicitly set initial nodes #43

Merged

Conversation

guidograzioli
Copy link
Member

@guidograzioli guidograzioli commented Feb 27, 2024

When infinispan_jgroups_discovery is TCPPING, the cluster initial node list is pre-configured automatically using the hostvars included in the ansible_play_hosts. This new parameter allows to override the behaviour, explicitly setting all needed jgroups parameters.

Variable Description Default
infinispan_jgroups_cluster_nodes List of node definitions for jgroups cluster, read below for the format []

The infinispan_jgroups_cluster_nodes parameter, when empty, tell the collection to geenrate the list from the hosts variables in ansible_play_hosts;
otherwise, it can be passed-in using the following dictionary format:

infinispan_jgroups_cluster_nodes:
  - address: 10.0.0.175
    inventory_host: '10.0.0.175[7800]'
    name: us-east-2-datagrid-1
    port: 7800
    site: us-east-2
    value: 'tcp://10.0.0.175:7800'
  - address: 10.0.0.179
    inventory_host: "10.0.0.179[7800]"
    name: us-east-2-datagrid-2
    port: 7800
    site: us-east-2
    value: 'tcp://10.0.0.179:7800'

where address, port, and inventory_host are connection details; name is the name of the host in the cluster, site is the name of the cluster in the xsite configuration,
and value is explicit connection string.

@guidograzioli guidograzioli changed the title Xsite relay list incorrect Add parameter infinispan_jgroups_cluster_nodes to explicitly set the node connection config Feb 27, 2024
@guidograzioli guidograzioli added the minor_changes New parameters added to modules, or non-breaking behavior changes to existing parameters; no bugfix label Feb 27, 2024
@guidograzioli guidograzioli merged commit a8f1706 into ansible-middleware:main Feb 27, 2024
8 checks passed
@guidograzioli guidograzioli changed the title Add parameter infinispan_jgroups_cluster_nodes to explicitly set the node connection config New parameter infinispan_jgroups_cluster_nodes to explicitly set initial nodes Feb 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
minor_changes New parameters added to modules, or non-breaking behavior changes to existing parameters; no bugfix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant