salt.states.rabbitmq_cluster

Manage RabbitMQ Clusters

范例:

rabbit@rabbit.example.com:
  rabbitmq_cluster.join:
    - user: rabbit
    - host: rabbit.example.com
salt.states.rabbitmq_cluster.join(name, host, user='rabbit', ram_node=None, runas='root')

This function is an alias of joined.

Ensure the current node joined to a cluster with node user@host

name
Irrelevant, not used (recommended: user@host)
user
The user of node to join to (default: rabbit)
host
The host of node to join to
ram_node
Join node as a RAM node
runas
The user to run the rabbitmq command as
salt.states.rabbitmq_cluster.joined(name, host, user='rabbit', ram_node=None, runas='root')

Ensure the current node joined to a cluster with node user@host

name
Irrelevant, not used (recommended: user@host)
user
The user of node to join to (default: rabbit)
host
The host of node to join to
ram_node
Join node as a RAM node
runas
The user to run the rabbitmq command as