Skip to content

Commit

Permalink
Merge pull request #12 from stone-payments/feat/cluster-longname
Browse files Browse the repository at this point in the history
fix/cluster longname
  • Loading branch information
douglasquintanilha authored Jun 14, 2019
2 parents e5d0468 + e011e9f commit a3b5f7f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,14 @@ give some extra vars.
rabbitmq_clustering_enabled: true
rabbitmq_master_node: "your_master_node"
```
To create a cluster using FQDN for hosts, just set USE_LONGNAME.

```yaml
vars:
rabbitmq_conf_env:
USE_LONGNAME: "true"
```


Notice that the cookie is hash string that can be of any size. A good practice is
use a hash of 20 characters. This is the syncronization cookie used by erlang to
Expand Down
2 changes: 1 addition & 1 deletion defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ rabbitmq_enabled_plugins_file_group: rabbitmq
rabbitmq_enabled_plugins_file_mode: 0644

rabbitmq_config_file_path: "/etc/rabbitmq/rabbitmq.config"
rabbitmq_env_variables_file_path: "/etc/rabbitmq/rabbitmq-env.config"
rabbitmq_env_variables_file_path: "/etc/rabbitmq/rabbitmq-env.conf"
rabbitmq_config_file_owner: root
rabbitmq_config_file_group: rabbitmq
rabbitmq_config_file_mode: 0644
Expand Down
2 changes: 1 addition & 1 deletion templates/rabbitmq-env.conf.j2
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% for variable,value in rabbitmq_conf_env.iteritems() %}
{{ variable|upper() }}={{ value }}
{% endfor %}
NODENAME={{ inventory_hostname }}
NODENAME=rabbit@{{ inventory_hostname }}

0 comments on commit a3b5f7f

Please sign in to comment.