Skip to content
Snippets Groups Projects
Commit 48b4b158 authored by Davanum Srinivas's avatar Davanum Srinivas
Browse files

Avoid _ in rabbitmq_clusterer.config

Trying to use ConfigMap's in Kubernetes leads to an interesting
problem. We use the file name as the key and the contents of the
file as the text value. The ConfigMap is mounted on the container
as a volume and the key is then used as the name of the file. The
problem is that kubernetes has a limitation on the name of the
key

https://github.com/kubernetes/kubernetes/blob/release-1.2/docs/design/identifiers.md

Which means we cannot use '_' in the name of the file.

Closes-Bug: #1581162
Change-Id: I2d9ec80f989c30893b019954fe18b3623d27a076
parent 0977601e
No related branches found
No related tags found
No related merge requests found
......@@ -21,4 +21,4 @@
with_items:
- "rabbitmq-env.conf"
- "rabbitmq.config"
- "rabbitmq_clusterer.config"
- "rabbitmq-clusterer.config"
......@@ -18,6 +18,6 @@
{port, {{ rabbitmq_management_port }}}
]}
]},
{rabbitmq_clusterer, [{config, "/etc/rabbitmq/rabbitmq_clusterer.config"}]}
{rabbitmq_clusterer, [{config, "/etc/rabbitmq/rabbitmq-clusterer.config"}]}
].
% EOF
......@@ -14,8 +14,8 @@
"perm": "0600"
},
{
"source": "{{ container_config_directory }}/rabbitmq_clusterer.config",
"dest": "/etc/rabbitmq/rabbitmq_clusterer.config",
"source": "{{ container_config_directory }}/rabbitmq-clusterer.config",
"dest": "/etc/rabbitmq/rabbitmq-clusterer.config",
"owner": "rabbitmq",
"perm": "0600"
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment