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

fix/cluster longname #12

Merged
merged 2 commits into from
Jun 14, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,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 @@ -25,7 +25,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 }}