Solace PubSub+ Ansible Collection

Using Solace PubSub+ Ansible Collection

  • Quickstart for Solace PubSub+ Ansible Collection
  • Installation
  • Tutorials & Projects for Solace PubSub+ Ansible Collection
  • Ansible Version Details

Guides

  • The Basics
  • Best Practices for Ansible-Solace Inventory Files
  • Tips & Tricks

Modules & Roles

  • Fact & General Modules
  • Solace Cloud Modules
  • Solace Configuration & Action Modules
    • Configuration Settings for Modules
    • Idempotency
    • Module Reference
      • solace_acl_client_connect_exception – client connect exception for acl profile
      • solace_acl_client_connect_exceptions – list of client connect address exceptions on an acl profile
      • solace_acl_profile – configure acl profile
      • solace_acl_publish_topic_exception – publish topic exception for acl profile
      • solace_acl_publish_topic_exceptions – list of publish topic exceptions on an acl profile
      • solace_acl_subscribe_share_name_exception – subscribe share name exception for acl profile
      • solace_acl_subscribe_share_name_exceptions – list of subscribe share name exceptions on an acl profile
      • solace_acl_subscribe_topic_exception – subscribe topic exception for acl profile
      • solace_acl_subscribe_topic_exceptions – list of subscribe topic exceptions on an acl profile
      • solace_authentication_oauth_provider – oauth provider
      • solace_authorization_group – authorization group
      • solace_bridge – bridge
      • solace_bridge_remote_subscription – remote subscription on a bridge
      • solace_bridge_remote_subscriptions – list of remote subscriptions on a bridge
      • solace_bridge_remote_vpn – bridge remote vpn
      • solace_bridge_trusted_cn – trusted common name for bridge
      • solace_cert_authority – certificate authority
      • solace_client_cert_authority – client certificate authority
      • solace_client_cert_authority_ocsp_trusted_cn – ocsp responder trusted common name
      • solace_client_profile – client profile for sempv2
      • solace_client_username – client username
      • solace_dmr_bridge – dmr bridge
      • solace_dmr_cluster – dmr cluster
      • solace_dmr_cluster_link – link on a dmr cluster
      • solace_dmr_cluster_link_remote_address – remote address for dmr cluster link
        • Examples
        • Notes
        • See Also
        • Parameters
        • Return Values
      • solace_dmr_cluster_link_trusted_cn – trusted common name for dmr cluster link
      • solace_domain_cert_authority – domain certificate authority
      • solace_jndi_connection_factory – JNDI connection-factory
      • solace_jndi_queue – jndi queue
      • solace_jndi_queues – manage a list of jndi queues
      • solace_jndi_topic – jndi topic
      • solace_jndi_topics – manage a list of jndi topics
      • solace_mqtt_session – mqtt session
      • solace_mqtt_session_subscription – subscription for mqtt session
      • solace_queue – queue
      • solace_queue_cancel_replay – cancel replay on queue
      • solace_queue_start_replay – start replay on queue
      • solace_queue_subscription – subscription on a queue
      • solace_queue_subscriptions – list of subscriptions on a queue
      • solace_queue_template – queue template
      • solace_rdp – rest delivery point
      • solace_rdp_queue_binding – queue bindining on rdp
      • solace_rdp_queue_binding_header – header on queue bindining on rdp
      • solace_rdp_queue_binding_protected_header – protected header on queue bindining on rdp
      • solace_rdp_rest_consumer – rest consumer on rdp
      • solace_rdp_rest_consumer_trusted_cn – trusted common name on rdp rest consumer
      • solace_replay_log – replay log
      • solace_replay_log_trim_logged_msgs – trim msgs on replay log
      • solace_replicated_topic – replicated topic on a MessageVpn’s replication
      • solace_replicated_topics – list of replicated topics on a MessageVpn’s replication
      • solace_service_authentication_ldap_profile – ldap profile
      • solace_topic_endpoint – topic endpoint
      • solace_vpn – vpn
  • Solace Get Object List Modules
  • Roles
Solace PubSub+ Ansible Collection
  • Solace Configuration & Action Modules
  • solace_dmr_cluster_link_remote_address – remote address for dmr cluster link
  • Edit on GitHub

solace_dmr_cluster_link_remote_address – remote address for dmr cluster link

Allows addition, removal and configuration of Remote Address Objects on a DRM Cluster Link.

Examples

hosts: all
gather_facts: no
any_errors_fatal: true
collections:
- solace.pubsub_plus
module_defaults:
  solace_dmr_cluster_link_remote_address:
    host: "{{ sempv2_host }}"
    port: "{{ sempv2_port }}"
    secure_connection: "{{ sempv2_is_secure_connection }}"
    username: "{{ sempv2_username }}"
    password: "{{ sempv2_password }}"
    timeout: "{{ sempv2_timeout }}"
tasks:
  - name: Remove 'remoteNode' DMR Link Remote address
    solace_dmr_cluster_link_remote_address:
      name: 192.168.0.34
      remote_node_name: remoteNode
      dmr_cluster_name: foo
      state: absent

  - name: Add 'remoteNode' DMR Link Remote address
    solace_dmr_cluster_link_remote_address:
      name: 192.168.0.34
      remote_node_name: remoteNode
      dmr_cluster_name: foo
      state: present

Notes

Note

  • Module Sempv2 Config: https://docs.solace.com/API-Developer-Online-Ref-Documentation/swagger-ui/config/index.html#/dmrCluster/createDmrClusterLinkRemoteAddress

  • Sempv2 Config Reference: https://docs.solace.com/API-Developer-Online-Ref-Documentation/swagger-ui/config/index.html#/

  • Sempv2 Monitor Reference: https://docs.solace.com/API-Developer-Online-Ref-Documentation/swagger-ui/monitor/index.html#/

  • Sempv2 Action Reference: https://docs.solace.com/API-Developer-Online-Ref-Documentation/swagger-ui/action/index.html#/

See Also

See also

  • solace_dmr_cluster – dmr cluster

  • solace_dmr_cluster_link – link on a dmr cluster

  • solace_get_dmr_cluster_link_remote_addresses – get list of remote addresses on a dmr cluster link

Parameters

dmr_cluster_name (required)

The name of the DMR cluster. Maps to ‘dmrClusterName’ in the API.

type: str
host (optional)

Hostname of Solace Broker.

type: str
default: localhost
name (required)

The FQDN or IP address (and optional port) of the remote node. Maps to ‘remoteAddress’ in the API.

type: str
aliases: remote_address
password (optional)

Administrator password for Solace Broker.

type: str
default: admin
port (optional)

Management port of Solace Broker.

type: int
default: 8080
remote_node_name (required)

The name of the remote node. Maps to ‘remoteNodeName’ in the API.

type: str
reverse_proxy (optional)

Use a reverse proxy / api gateway. Note: Experimental. Not permitted for Solace Cloud API.

type: dict
headers (optional)

Additional headers to add to the http call. Example: ‘apiKey: {my-api-key}’.

type: dict
x-asc-module (optional)

Flag for the module to add the header ‘x-asc-module:{module-name}’ to the http call with it’s module name.

type: bool
default: False
x-asc-module-op (optional)

Flag for the module to add the header ‘x-asc-module-op:{module operation}’ to the http call with the module’s operation.

type: bool
default: False
query_params (optional)

Additional query paramters to add to the URL. Example: ‘apiCode: {my-api-code}’.

type: dict
semp_base_path (optional)

Base path prepended to all SEMP calls. Example: ‘my/base/path’. Resulting URL will be: http(s)://{host}:{port}/{semp_base_path}/{module-semp-call-path}

type: str
use_basic_auth (optional)

Flag to use basic authentication in the http(s) call or not. Uses ‘username’/’password’.

type: bool
default: False
secure_connection (optional)

If true, use https rather than http.

type: bool
default: False
sempv2_settings (optional)

JSON dictionary of additional configuration for the SEMP V2 API. See Reference documentation.

type: dict
aliases: settings
state (optional)

Target state.

type: str
default: present
choices: present, absent
timeout (optional)

Connection timeout in seconds for the http request.

type: int
default: 10
username (optional)

Administrator username for Solace Broker.

type: str
default: admin
validate_certs (optional)

Flag to switch validation of client certificates on/off when using a secure connection.

type: bool
default: True
x_broker (optional)

Custom HTTP header with the broker virtual router id, if using a SEMPv2 Proxy/agent infrastructure.

type: str

Return Values

response

The response from the Solace Sempv2 request.

returned: success
type: dict
msg

The response from the HTTP call in case of error.

returned: error
type: dict
rc

Return code. rc=0 on success, rc=1 on error.

returned: always
type: int
sample:
  {
  "error": {
    "rc": 1
  },
  "success": {
    "rc": 0
  }
}
Previous Next

© Copyright 2022, Solace Corporation, Ricardo Gomez-Ulmke, <ricardo.gomez-ulmke@solace.com>. Last updated on 04 Apr 2023 at 11:46.

Built with Sphinx using a theme provided by Read the Docs.